Class ContainerOnceRetentionStrategy
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RetentionStrategy<?>>
-
- hudson.slaves.RetentionStrategy<AbstractCloudComputer>
-
- hudson.slaves.CloudRetentionStrategy
-
- com.microsoft.jenkins.containeragents.strategy.ContainerOnceRetentionStrategy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RetentionStrategy<?>>
,ExecutorListener
public class ContainerOnceRetentionStrategy extends CloudRetentionStrategy implements ExecutorListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContainerOnceRetentionStrategy.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 ContainerOnceRetentionStrategy.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 ContainerOnceRetentionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
check(AbstractCloudComputer c)
ContainerOnceRetentionStrategy.DescriptorImpl
getDescriptor()
int
getIdleMinutes()
void
start(AbstractCloudComputer c)
void
taskAccepted(Executor executor, Queue.Task task)
void
taskCompleted(Executor executor, Queue.Task task, long durationMS)
void
taskCompletedWithProblems(Executor executor, Queue.Task task, long durationMS, Throwable problems)
-
Methods inherited from class hudson.slaves.RetentionStrategy
all, isAcceptingTasks, isManualLaunchAllowed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.ExecutorListener
taskStarted
-
-
-
-
Field Detail
-
DESCRIPTOR
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public static final ContainerOnceRetentionStrategy.DescriptorImpl DESCRIPTOR
-
-
Method Detail
-
getIdleMinutes
public int getIdleMinutes()
-
check
public long check(AbstractCloudComputer c)
- Overrides:
check
in classCloudRetentionStrategy
-
start
public void start(AbstractCloudComputer c)
- Overrides:
start
in classCloudRetentionStrategy
-
taskAccepted
public void taskAccepted(Executor executor, Queue.Task task)
- Specified by:
taskAccepted
in interfaceExecutorListener
-
taskCompleted
public void taskCompleted(Executor executor, Queue.Task task, long durationMS)
- Specified by:
taskCompleted
in interfaceExecutorListener
-
taskCompletedWithProblems
public void taskCompletedWithProblems(Executor executor, Queue.Task task, long durationMS, Throwable problems)
- Specified by:
taskCompletedWithProblems
in interfaceExecutorListener
-
getDescriptor
public ContainerOnceRetentionStrategy.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<RetentionStrategy<?>>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<RetentionStrategy<?>>
-
-