Package hudson.slaves
Class CloudRetentionStrategy
- All Implemented Interfaces:
- ExtensionPoint,- Describable<RetentionStrategy<?>>
RetentionStrategy implementation for AbstractCloudComputer that terminates
 it if it remains idle for X minutes.- Since:
- 1.382
- Author:
- Kohsuke Kawaguchi
- 
Nested Class SummaryNested classes/interfaces inherited from class hudson.slaves.RetentionStrategyRetentionStrategy.Always, RetentionStrategy.DemandNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFieldsFields inherited from class hudson.slaves.RetentionStrategyINSTANCE, LIST, NOOP
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongThis method will be called periodically to allow this strategy to decide what to do with its owning agent.voidTry to connect to it ASAP.Methods inherited from class hudson.slaves.RetentionStrategyall, isAcceptingTasks, isManualLaunchAllowedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.DescribablegetDescriptor
- 
Field Details- 
disabledpublic static boolean disabled
 
- 
- 
Constructor Details- 
CloudRetentionStrategypublic CloudRetentionStrategy(int idleMinutes) 
 
- 
- 
Method Details- 
checkDescription copied from class:RetentionStrategyThis method will be called periodically to allow this strategy to decide what to do with its owning agent.- Specified by:
- checkin class- RetentionStrategy<AbstractCloudComputer>
- Parameters:
- c-- 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.
- Returns:
- The number of minutes after which the strategy would like to be checked again. The strategy may be rechecked earlier or later than this!
 
- 
startTry to connect to it ASAP.- Overrides:
- startin class- RetentionStrategy<AbstractCloudComputer>
- Parameters:
- c- Computer instance
 
 
-