org.jenkinsci.plugins.mesos
Class MesosRetentionStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.slaves.RetentionStrategy<?>>
hudson.slaves.RetentionStrategy<MesosComputer>
org.jenkinsci.plugins.mesos.MesosRetentionStrategy
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.slaves.RetentionStrategy<?>>
public class MesosRetentionStrategy
- extends hudson.slaves.RetentionStrategy<MesosComputer>
This is inspired by CloudRetentionStrategy.
| Nested classes/interfaces inherited from class hudson.slaves.RetentionStrategy |
hudson.slaves.RetentionStrategy.Always, hudson.slaves.RetentionStrategy.Demand |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Field Summary |
int |
idleTerminationMinutes
Number of minutes of idleness before an instance should be terminated. |
| Fields inherited from class hudson.slaves.RetentionStrategy |
INSTANCE, LIST, NOOP |
| Methods inherited from class hudson.slaves.RetentionStrategy |
all, 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 |
idleTerminationMinutes
public final int idleTerminationMinutes
- Number of minutes of idleness before an instance should be terminated. A
value of zero indicates that the instance should never be automatically
terminated.
MesosRetentionStrategy
public MesosRetentionStrategy(int idleTerminationMinutes)
check
public long check(MesosComputer c)
- Specified by:
check in class hudson.slaves.RetentionStrategy<MesosComputer>
start
public void start(MesosComputer c)
- Try to connect to it ASAP to launch the slave agent.
- Overrides:
start in class hudson.slaves.RetentionStrategy<MesosComputer>
Copyright © 2004-2014. All Rights Reserved.