public class EC2RetentionStrategy extends RetentionStrategy<EC2FleetNodeComputer> implements ExecutorListener
EC2RetentionStrategy
controls when to take EC2FleetNodeComputer
offline, bring it back online, or even to destroy it.RetentionStrategy.Always, RetentionStrategy.Demand
ExtensionPoint.LegacyInstancesAreScopedToHudson
INSTANCE, LIST, NOOP
Constructor and Description |
---|
EC2RetentionStrategy() |
Modifier and Type | Method and Description |
---|---|
long |
check(EC2FleetNodeComputer fc)
Will be called under
Queue.withLock(Runnable) |
void |
start(EC2FleetNodeComputer c) |
void |
taskAccepted(Executor executor,
Queue.Task task) |
void |
taskCompleted(Executor executor,
Queue.Task task,
long l) |
void |
taskCompletedWithProblems(Executor executor,
Queue.Task task,
long l,
Throwable throwable) |
all, isAcceptingTasks, isManualLaunchAllowed
getDescriptor
public long check(EC2FleetNodeComputer fc)
Queue.withLock(Runnable)
check
in class RetentionStrategy<EC2FleetNodeComputer>
fc
- EC2FleetNodeComputerpublic void start(EC2FleetNodeComputer c)
start
in class RetentionStrategy<EC2FleetNodeComputer>
public void taskAccepted(Executor executor, Queue.Task task)
taskAccepted
in interface ExecutorListener
public void taskCompleted(Executor executor, Queue.Task task, long l)
taskCompleted
in interface ExecutorListener
public void taskCompletedWithProblems(Executor executor, Queue.Task task, long l, Throwable throwable)
taskCompletedWithProblems
in interface ExecutorListener
Copyright © 2016–2023. All rights reserved.