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.Demand
ExtensionPoint.LegacyInstancesAreScopedToHudson
INSTANCE, 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 its owning agent.
|
long |
getIdleDelay()
Getter for property 'idleDelay'.
|
long |
getInDemandDelay()
Getter for property 'inDemandDelay'.
|
all, isAcceptingTasks, isManualLaunchAllowed, start
getDescriptor
public long getInDemandDelay()
public long getIdleDelay()
public long check(SlaveComputer c)
RetentionStrategy
check
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 © 2004–2021. All rights reserved.