org.jenkinsci.plugins.mesos
Class MesosRetentionStrategy

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.slaves.RetentionStrategy<?>>
      extended by hudson.slaves.RetentionStrategy<MesosComputer>
          extended by 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 Class Summary
static class MesosRetentionStrategy.DescriptorImpl
          No registration since this retention strategy is used only for Mesos nodes that we provision automatically.
 
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
 
Constructor Summary
MesosRetentionStrategy(int idleTerminationMinutes)
           
 
Method Summary
 long check(MesosComputer c)
           
 void start(MesosComputer c)
          Try to connect to it ASAP to launch the slave agent.
 
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
 

Field Detail

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.

Constructor Detail

MesosRetentionStrategy

public MesosRetentionStrategy(int idleTerminationMinutes)
Method Detail

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.