public class RunOnceCloudRetentionStrategy
extends hudson.slaves.CloudRetentionStrategy
implements hudson.model.ExecutorListener
Modifier and Type | Class and Description |
---|---|
static class |
RunOnceCloudRetentionStrategy.DescriptorImpl |
Modifier and Type | Field and Description |
---|---|
static RunOnceCloudRetentionStrategy.DescriptorImpl |
DESCRIPTOR |
static int |
RECOMMENDED_MIN_IDLE |
Constructor and Description |
---|
RunOnceCloudRetentionStrategy(int idleMinutes) |
Modifier and Type | Method and Description |
---|---|
RunOnceCloudRetentionStrategy.DescriptorImpl |
getDescriptor() |
int |
getIdleMinutes() |
void |
taskAccepted(hudson.model.Executor executor,
hudson.model.Queue.Task task) |
void |
taskCompleted(hudson.model.Executor executor,
hudson.model.Queue.Task task,
long durationMS) |
void |
taskCompletedWithProblems(hudson.model.Executor executor,
hudson.model.Queue.Task task,
long durationMS,
Throwable problems) |
String |
toString() |
public static final int RECOMMENDED_MIN_IDLE
@Extension public static final RunOnceCloudRetentionStrategy.DescriptorImpl DESCRIPTOR
@DataBoundConstructor public RunOnceCloudRetentionStrategy(int idleMinutes)
public int getIdleMinutes()
public void taskAccepted(hudson.model.Executor executor, hudson.model.Queue.Task task)
taskAccepted
in interface hudson.model.ExecutorListener
public void taskCompleted(hudson.model.Executor executor, hudson.model.Queue.Task task, long durationMS)
taskCompleted
in interface hudson.model.ExecutorListener
public void taskCompletedWithProblems(hudson.model.Executor executor, hudson.model.Queue.Task task, long durationMS, Throwable problems)
taskCompletedWithProblems
in interface hudson.model.ExecutorListener
public RunOnceCloudRetentionStrategy.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.slaves.RetentionStrategy<?>>
getDescriptor
in class hudson.model.AbstractDescribableImpl<hudson.slaves.RetentionStrategy<?>>
Copyright © 2016–2024. All rights reserved.