Package hudson.slaves
Class RetentionStrategy.Demand
- All Implemented Interfaces:
ExtensionPoint,Describable<RetentionStrategy<?>>
- Enclosing class:
RetentionStrategy<T extends Computer>
RetentionStrategy that tries to keep the node offline when not in use.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.slaves.RetentionStrategy
RetentionStrategy.Always, RetentionStrategy.DemandNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.slaves.RetentionStrategy
INSTANCE, LIST, NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongThis method will be called periodically to allow this strategy to decide what to do with its owning agent.longGetter for property 'idleDelay'.longGetter for property 'inDemandDelay'.Methods inherited from class hudson.slaves.RetentionStrategy
all, isAcceptingTasks, isManualLaunchAllowed, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
Demand
@DataBoundConstructor public Demand(long inDemandDelay, long idleDelay)
-
-
Method Details
-
getInDemandDelay
public long getInDemandDelay()Getter for property 'inDemandDelay'.- Returns:
- Value for property 'inDemandDelay'.
-
getIdleDelay
public long getIdleDelay()Getter for property 'idleDelay'.- Returns:
- Value for property 'idleDelay'.
-
check
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:
checkin classRetentionStrategy<SlaveComputer>- 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!
-