Package hudson.slaves
Class RetentionStrategy.Always
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RetentionStrategy<?>>
-
- hudson.slaves.RetentionStrategy<SlaveComputer>
-
- hudson.slaves.RetentionStrategy.Always
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RetentionStrategy<?>>
- Enclosing class:
- RetentionStrategy<T extends Computer>
public static class RetentionStrategy.Always extends RetentionStrategy<SlaveComputer>
RetentionStrategy
that tries to keep the node online all the time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RetentionStrategy.Always.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.slaves.RetentionStrategy
RetentionStrategy.Always, RetentionStrategy.Demand
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.slaves.RetentionStrategy
INSTANCE, LIST, NOOP
-
-
Constructor Summary
Constructors Constructor Description Always()
Constructs a new Always.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
check(SlaveComputer c)
This method will be called periodically to allow this strategy to decide what to do with its owning agent.-
Methods inherited from class hudson.slaves.RetentionStrategy
all, isAcceptingTasks, isManualLaunchAllowed, start
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
check
public long check(SlaveComputer c)
Description copied from class:RetentionStrategy
This method will be called periodically to allow this strategy to decide what to do with its owning agent.- Specified by:
check
in classRetentionStrategy<SlaveComputer>
- Parameters:
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.- Returns:
- The number of minutes after which the strategy would like to be checked again. The strategy may be rechecked earlier or later than this!
-
-