public static class RetentionStrategy.Demand extends RetentionStrategy<SlaveComputer>
RetentionStrategy that tries to keep the node offline when not in use.| Modifier and Type | Class and Description |
|---|---|
static class |
RetentionStrategy.Demand.DescriptorImpl |
RetentionStrategy.Always, RetentionStrategy.DemandExtensionPoint.LegacyInstancesAreScopedToHudsonINSTANCE, LIST, NOOP| Constructor and Description |
|---|
Demand(long inDemandDelay,
long idleDelay) |
| Modifier and Type | Method and Description |
|---|---|
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'.
|
all, isAcceptingTasks, isManualLaunchAllowed, startgetDescriptorpublic long getInDemandDelay()
public long getIdleDelay()
public long check(SlaveComputer c)
RetentionStrategycheck in class RetentionStrategy<SlaveComputer>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.Copyright © 2019. All rights reserved.