public class RunOnceCloudRetentionStrategy extends CloudRetentionStrategy implements ExecutorListener
Modifier and Type | Class and Description |
---|---|
static class |
RunOnceCloudRetentionStrategy.DescriptorImpl |
static class |
RunOnceCloudRetentionStrategy.DescriptorVisibilityFilterImpl |
RetentionStrategy.Always, RetentionStrategy.Demand
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static RunOnceCloudRetentionStrategy.DescriptorImpl |
DESCRIPTOR |
disabled
INSTANCE, LIST, NOOP
Constructor and Description |
---|
RunOnceCloudRetentionStrategy(int idleMinutes) |
Modifier and Type | Method and Description |
---|---|
long |
check(AbstractCloudComputer c) |
RunOnceCloudRetentionStrategy.DescriptorImpl |
getDescriptor() |
int |
getIdleMinutes() |
boolean |
isAcceptingTasks(AbstractCloudComputer c) |
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) |
all, isManualLaunchAllowed
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public static final RunOnceCloudRetentionStrategy.DescriptorImpl DESCRIPTOR
@DataBoundConstructor public RunOnceCloudRetentionStrategy(int idleMinutes)
public int getIdleMinutes()
public long check(AbstractCloudComputer c)
check
in class CloudRetentionStrategy
public void start(AbstractCloudComputer c)
start
in class CloudRetentionStrategy
public void taskAccepted(Executor executor, Queue.Task task)
taskAccepted
in interface ExecutorListener
public void taskCompleted(Executor executor, Queue.Task task, long durationMS)
taskCompleted
in interface ExecutorListener
public void taskCompletedWithProblems(Executor executor, Queue.Task task, long durationMS, Throwable problems)
taskCompletedWithProblems
in interface ExecutorListener
public boolean isAcceptingTasks(AbstractCloudComputer c)
isAcceptingTasks
in class RetentionStrategy<AbstractCloudComputer>
public RunOnceCloudRetentionStrategy.DescriptorImpl getDescriptor()
getDescriptor
in interface Describable<RetentionStrategy<?>>
getDescriptor
in class AbstractDescribableImpl<RetentionStrategy<?>>
Copyright © 2016–2022. All rights reserved.