public final class OnceRetentionStrategy
extends hudson.slaves.CloudRetentionStrategy
implements hudson.model.ExecutorListener
ContinuableExecutable does not trigger termination.| Constructor and Description |
|---|
OnceRetentionStrategy(int idleMinutes)
Creates the retention strategy.
|
| Modifier and Type | Method and Description |
|---|---|
long |
check(hudson.slaves.AbstractCloudComputer c) |
void |
start(hudson.slaves.AbstractCloudComputer c) |
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 OnceRetentionStrategy(int idleMinutes)
idleMinutes - number of minutes of idleness after which to kill the slave; serves a backup in case the strategy fails to detect the end of a taskpublic long check(hudson.slaves.AbstractCloudComputer c)
check in class hudson.slaves.CloudRetentionStrategypublic void start(hudson.slaves.AbstractCloudComputer c)
start in class hudson.slaves.CloudRetentionStrategypublic void taskAccepted(hudson.model.Executor executor,
hudson.model.Queue.Task task)
taskAccepted in interface hudson.model.ExecutorListenerpublic void taskCompleted(hudson.model.Executor executor,
hudson.model.Queue.Task task,
long durationMS)
taskCompleted in interface hudson.model.ExecutorListenerpublic void taskCompletedWithProblems(hudson.model.Executor executor,
hudson.model.Queue.Task task,
long durationMS,
Throwable problems)
taskCompletedWithProblems in interface hudson.model.ExecutorListenerCopyright © 2016–2017. All rights reserved.