Package io.jenkins.plugins.swarmcloud
Class SwarmRetentionStrategy
java.lang.Object
hudson.slaves.RetentionStrategy<AbstractCloudComputer>
hudson.slaves.CloudRetentionStrategy
io.jenkins.plugins.swarmcloud.SwarmRetentionStrategy
- All Implemented Interfaces:
ExtensionPoint,Describable<RetentionStrategy<?>>
Retention strategy for Docker Swarm agents.
Terminates agents after they've been idle for a configurable period.
Uses the built-in CloudRetentionStrategy which handles idle timeout.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.slaves.RetentionStrategy
RetentionStrategy.Always, RetentionStrategy.DemandNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.slaves.CloudRetentionStrategy
disabledFields inherited from class hudson.slaves.RetentionStrategy
INSTANCE, LIST, NOOP -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.slaves.CloudRetentionStrategy
check, startMethods inherited from class hudson.slaves.RetentionStrategy
all, isAcceptingTasks, isManualLaunchAllowedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
SwarmRetentionStrategy
@DataBoundConstructor public SwarmRetentionStrategy(int idleMinutes) -
SwarmRetentionStrategy
public SwarmRetentionStrategy()
-
-
Method Details
-
getIdleMinutes
public int getIdleMinutes()
-