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 Logger |
logger |
Constructor and Description |
---|
RunOnceCloudRetentionStrategy(int idleMinutes) |
Modifier and Type | Method and Description |
---|---|
long |
check(hudson.slaves.AbstractCloudComputer c) |
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) |
public static final Logger logger
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final RunOnceCloudRetentionStrategy.DescriptorImpl DESCRIPTOR
@DataBoundConstructor public RunOnceCloudRetentionStrategy(int idleMinutes)
public int getIdleMinutes()
public long check(hudson.slaves.AbstractCloudComputer c)
check
in class hudson.slaves.CloudRetentionStrategy
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–2018. All rights reserved.