hudson.slaves
Class RetentionStrategy.Demand
java.lang.Object
hudson.model.AbstractDescribableImpl<RetentionStrategy<?>>
hudson.slaves.RetentionStrategy<SlaveComputer>
hudson.slaves.RetentionStrategy.Demand
- All Implemented Interfaces:
- ExtensionPoint, Describable<RetentionStrategy<?>>
- Enclosing class:
- RetentionStrategy<T extends Computer>
public static class RetentionStrategy.Demand
- extends RetentionStrategy<SlaveComputer>
RetentionStrategy
that tries to keep the node offline when not in use.
Method Summary |
long |
check(SlaveComputer c)
This method will be called periodically to allow this strategy to decide what to do with it's owning slave. |
long |
getIdleDelay()
Getter for property 'idleDelay'. |
long |
getInDemandDelay()
Getter for property 'inDemandDelay'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RetentionStrategy.Demand
@DataBoundConstructor
public RetentionStrategy.Demand(long inDemandDelay,
long idleDelay)
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
public long check(SlaveComputer c)
- Description copied from class:
RetentionStrategy
- This method will be called periodically to allow this strategy to decide what to do with it's owning slave.
- Specified by:
check
in class RetentionStrategy<SlaveComputer>
- Parameters:
c
- Computer
for 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 that this!
Copyright © 2004-2013. All Rights Reserved.