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.Demand
ExtensionPoint.LegacyInstancesAreScopedToHudson
INSTANCE, 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, start
getDescriptor
@DataBoundConstructor public SimpleScheduledRetentionStrategy(String startTimeSpec, int upTimeMins, boolean keepUpWhenActive) throws antlr.ANTLRException
antlr.ANTLRException
public int getUpTimeMins()
public boolean isKeepUpWhenActive()
public String getStartTimeSpec()
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
public boolean isManualLaunchAllowed(SlaveComputer c)
RetentionStrategy
isManualLaunchAllowed
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)
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 © 2015. All rights reserved.