Class ComputeEngineRetentionStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<RetentionStrategy<?>>
hudson.slaves.RetentionStrategy<ComputeEngineComputer>
com.google.jenkins.plugins.computeengine.ComputeEngineRetentionStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<RetentionStrategy<?>>
,ExecutorListener
public class ComputeEngineRetentionStrategy
extends RetentionStrategy<ComputeEngineComputer>
implements ExecutorListener
A strategy that allows: - setting one shot instances
OnceRetentionStrategy
- in case of
preemption of GCP instance to restart preempted tasks-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.slaves.RetentionStrategy
RetentionStrategy.Always, RetentionStrategy.Demand
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.slaves.RetentionStrategy
INSTANCE, LIST, NOOP
-
Method Summary
Modifier and TypeMethodDescriptionlong
void
void
taskAccepted
(Executor executor, Queue.Task task) void
taskCompleted
(Executor executor, Queue.Task task, long durationMS) void
taskCompletedWithProblems
(Executor executor, Queue.Task task, long durationMS, Throwable problems) Methods inherited from class hudson.slaves.RetentionStrategy
all, isAcceptingTasks, isManualLaunchAllowed
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.ExecutorListener
taskStarted
-
Method Details
-
check
- Specified by:
check
in classRetentionStrategy<ComputeEngineComputer>
-
start
- Overrides:
start
in classRetentionStrategy<ComputeEngineComputer>
-
taskAccepted
- Specified by:
taskAccepted
in interfaceExecutorListener
-
taskCompleted
- Specified by:
taskCompleted
in interfaceExecutorListener
-
taskCompletedWithProblems
public void taskCompletedWithProblems(Executor executor, Queue.Task task, long durationMS, Throwable problems) - Specified by:
taskCompletedWithProblems
in interfaceExecutorListener
-