Class ContainerIdleRetentionStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RetentionStrategy<?>>
-
- hudson.slaves.RetentionStrategy<AbstractCloudComputer>
-
- hudson.slaves.CloudRetentionStrategy
-
- com.microsoft.jenkins.containeragents.strategy.ContainerIdleRetentionStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RetentionStrategy<?>>
public class ContainerIdleRetentionStrategy extends CloudRetentionStrategy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContainerIdleRetentionStrategy.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 Modifier and Type Field Description static ContainerIdleRetentionStrategy.DescriptorImpl
DESCRIPTOR
-
Fields inherited from class hudson.slaves.CloudRetentionStrategy
disabled
-
Fields inherited from class hudson.slaves.RetentionStrategy
INSTANCE, LIST, NOOP
-
-
Constructor Summary
Constructors Constructor Description ContainerIdleRetentionStrategy(int idleMinutes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
check(AbstractCloudComputer c)
ContainerIdleRetentionStrategy.DescriptorImpl
getDescriptor()
int
getIdleMinutes()
-
Methods inherited from class hudson.slaves.CloudRetentionStrategy
start
-
Methods inherited from class hudson.slaves.RetentionStrategy
all, isAcceptingTasks, isManualLaunchAllowed
-
-
-
-
Field Detail
-
DESCRIPTOR
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public static final ContainerIdleRetentionStrategy.DescriptorImpl DESCRIPTOR
-
-
Method Detail
-
check
@GuardedBy("hudson.model.Queue.lock") public long check(AbstractCloudComputer c)
- Overrides:
check
in classCloudRetentionStrategy
-
getIdleMinutes
public int getIdleMinutes()
-
getDescriptor
public ContainerIdleRetentionStrategy.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<RetentionStrategy<?>>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<RetentionStrategy<?>>
-
-