public class SimpleScheduledRetentionStrategy extends RetentionStrategy<SlaveComputer>
RetentionStrategy that controls the slave based on a schedule.| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleScheduledRetentionStrategy.DescriptorImpl |
RetentionStrategy.Always, RetentionStrategy.DemandExtensionPoint.LegacyInstancesAreScopedToHudsonINSTANCE, LIST, NOOP| Constructor and Description |
|---|
SimpleScheduledRetentionStrategy(String startTimeSpec,
int upTimeMins,
boolean keepUpWhenActive) |
| 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.
|
String |
getStartTimeSpec() |
int |
getUpTimeMins() |
boolean |
isKeepUpWhenActive() |
boolean |
isManualLaunchAllowed(SlaveComputer c)
This method is called to determine whether manual launching of the slave is allowed at this point in time.
|
protected Object |
readResolve() |
all, isAcceptingTasks, startgetDescriptor@DataBoundConstructor public SimpleScheduledRetentionStrategy(String startTimeSpec, int upTimeMins, boolean keepUpWhenActive) throws antlr.ANTLRException
antlr.ANTLRExceptionpublic int getUpTimeMins()
public boolean isKeepUpWhenActive()
public String getStartTimeSpec()
protected Object readResolve() throws ObjectStreamException
ObjectStreamExceptionpublic boolean isManualLaunchAllowed(SlaveComputer c)
RetentionStrategyisManualLaunchAllowed 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 if manual launching is
allowed at this time.true if manual launching of the slave is allowed at this point in time.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.