public class CloudRetentionStrategy extends RetentionStrategy<AbstractCloudComputer>
RetentionStrategy
implementation for AbstractCloudComputer
that terminates
it if it remains idle for X minutes.RetentionStrategy.Always, RetentionStrategy.Demand
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static boolean |
disabled |
INSTANCE, LIST, NOOP
Constructor and Description |
---|
CloudRetentionStrategy(int idleMinutes) |
Modifier and Type | Method and Description |
---|---|
long |
check(AbstractCloudComputer c)
This method will be called periodically to allow this strategy to decide what to do with its owning agent.
|
void |
start(AbstractCloudComputer c)
Try to connect to it ASAP.
|
all, isAcceptingTasks, isManualLaunchAllowed
getDescriptor
public long check(AbstractCloudComputer c)
RetentionStrategy
check
in class RetentionStrategy<AbstractCloudComputer>
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.public void start(AbstractCloudComputer c)
start
in class RetentionStrategy<AbstractCloudComputer>
c
- Computer instanceCopyright © 2004–2021. All rights reserved.