public class EC2RetentionStrategy extends RetentionStrategy<SlaveComputer> implements ExecutorListener
EC2FleetCloud
RetentionStrategy.Always, RetentionStrategy.Demand
ExtensionPoint.LegacyInstancesAreScopedToHudson
INSTANCE, LIST, NOOP
Constructor and Description |
---|
EC2RetentionStrategy() |
Modifier and Type | Method and Description |
---|---|
long |
check(SlaveComputer computer)
Will be called under
Queue.withLock(Runnable) |
void |
start(SlaveComputer 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(SlaveComputer computer)
Queue.withLock(Runnable)
check
in class RetentionStrategy<SlaveComputer>
computer
- computerpublic void start(SlaveComputer c)
start
in class RetentionStrategy<SlaveComputer>
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–2022. All rights reserved.