public class CloudRetentionStrategy extends RetentionStrategy<AbstractCloudComputer>
AbstractCloudComputerthat terminates it if it remains idle for X minutes.
- Kohsuke Kawaguchi
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
check(AbstractCloudComputer c)This method will be called periodically to allow this strategy to decide what to do with its owning agent.
start(AbstractCloudComputer c)Try to connect to it ASAP.
Methods inherited from class hudson.slaves.RetentionStrategy
all, isAcceptingTasks, isManualLaunchAllowed
public long check(AbstractCloudComputer c)Description copied from class:
RetentionStrategyThis method will be called periodically to allow this strategy to decide what to do with its owning agent.
- Specified by:
Computerfor which this strategy is assigned. This computer may be online or offline. This object also exposes a bunch of properties that the callee can use to decide what action to take.
- The number of minutes after which the strategy would like to be checked again. The strategy may be rechecked earlier or later than this!