Class BaremetalCloudRetentionStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<RetentionStrategy<?>>
hudson.slaves.RetentionStrategy<AbstractCloudComputer>
hudson.slaves.CloudRetentionStrategy
com.oracle.cloud.baremetal.jenkins.BaremetalCloudRetentionStrategy
- All Implemented Interfaces:
ExtensionPoint,Describable<RetentionStrategy<?>>,ExecutorListener
public class BaremetalCloudRetentionStrategy
extends CloudRetentionStrategy
implements ExecutorListener
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.slaves.RetentionStrategy
RetentionStrategy.Always, RetentionStrategy.DemandNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.slaves.CloudRetentionStrategy
disabledFields inherited from class hudson.slaves.RetentionStrategy
INSTANCE, LIST, NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongPreventCloudRetentionStrategyfrom terminating the Computer if it is in offline state set by user (e.g.voidtaskAccepted(Executor executor, Queue.Task task) voidtaskCompleted(Executor executor, Queue.Task task, long durationMS) voidtaskCompletedWithProblems(Executor executor, Queue.Task task, long durationMS, Throwable problems) Methods inherited from class hudson.slaves.CloudRetentionStrategy
startMethods inherited from class hudson.slaves.RetentionStrategy
all, isAcceptingTasks, isManualLaunchAllowedMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.ExecutorListener
taskStarted
-
Constructor Details
-
BaremetalCloudRetentionStrategy
public BaremetalCloudRetentionStrategy(int idleMinutes)
-
-
Method Details
-
check
PreventCloudRetentionStrategyfrom terminating the Computer if it is in offline state set by user (e.g. from Web UI) or by another plugin. Also prevent idle termination when idleMinutes is 0 (keep-forever mode).- Overrides:
checkin classCloudRetentionStrategy
-
taskAccepted
- Specified by:
taskAcceptedin interfaceExecutorListener
-
taskCompleted
- Specified by:
taskCompletedin interfaceExecutorListener
-
taskCompletedWithProblems
public void taskCompletedWithProblems(Executor executor, Queue.Task task, long durationMS, Throwable problems) - Specified by:
taskCompletedWithProblemsin interfaceExecutorListener
-