public final class SharedOnceRetentionStrategy
extends hudson.slaves.CloudRetentionStrategy
implements hudson.model.ExecutorListener
| Constructor and Description |
|---|
SharedOnceRetentionStrategy(int idleMinutes)
Creates the retention strategy.
|
| Modifier and Type | Method and Description |
|---|---|
long |
check(hudson.slaves.AbstractCloudComputer c) |
void |
done(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 SharedOnceRetentionStrategy(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.ExecutorListenerpublic void done(hudson.slaves.AbstractCloudComputer<?> c)
Copyright © 2016–2020. All rights reserved.