public class CloudRetentionStrategy extends RetentionStrategy<AbstractCloudComputer>
RetentionStrategy implementation for AbstractCloudComputer that terminates
it if it remains idle for X minutes.RetentionStrategy.Always, RetentionStrategy.DemandExtensionPoint.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 it's owning slave.
|
void |
start(AbstractCloudComputer c)
Try to connect to it ASAP.
|
all, isAcceptingTasks, isManualLaunchAllowedgetDescriptorpublic long check(AbstractCloudComputer c)
RetentionStrategycheck 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>Copyright © 2019. All rights reserved.