Skip to content

Commit

Permalink
Merge pull request jenkinsci#112 from jglick/transient-lastFetchInstance
Browse files Browse the repository at this point in the history
[JENKINS-24938] Various fields should be transient
  • Loading branch information
francisu committed Oct 27, 2014
2 parents 7ebb488 + 53d3950 commit d823b5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/hudson/plugins/ec2/EC2AbstractSlave.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ public abstract class EC2AbstractSlave extends Slave {
public AMITypeData amiType;

// Temporary stuff that is obtained live from EC2
public String publicDNS;
public String privateDNS;
public transient String publicDNS;
public transient String privateDNS;

/* The last instance data to be fetched for the slave */
protected Instance lastFetchInstance = null;
protected transient Instance lastFetchInstance = null;

/* The time at which we fetched the last instance data */
protected long lastFetchTime = 0;
protected transient long lastFetchTime;

/* The time (in milliseconds) after which we will always re-fetch externally changeable EC2 data when we are asked for it */
protected static final long MIN_FETCH_TIME = 20 * 1000;
Expand Down

0 comments on commit d823b5e

Please sign in to comment.