com.elasticbox.jenkins
Class ElasticBoxSlaveHandler

java.lang.Object
  extended by java.util.TimerTask
      extended by hudson.triggers.SafeTimerTask
          extended by hudson.model.PeriodicWork
              extended by hudson.model.AsyncPeriodicWork
                  extended by com.elasticbox.jenkins.ElasticBoxSlaveHandler
All Implemented Interfaces:
hudson.ExtensionPoint, Runnable

@Extension
public class ElasticBoxSlaveHandler
extends hudson.model.AsyncPeriodicWork

Author:
Phong Nguyen Le

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static int TIMEOUT_MINUTES
           
 
Fields inherited from class hudson.model.AsyncPeriodicWork
name
 
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN
 
Constructor Summary
ElasticBoxSlaveHandler()
           
 
Method Summary
static void addToTerminatedQueue(ElasticBoxSlave slave)
           
static int countInstances()
           
protected  void execute(hudson.model.TaskListener listener)
           
 long getRecurrencePeriod()
           
static boolean isSubmitted(ElasticBoxSlave slave)
           
static IProgressMonitor submit(ElasticBoxSlave slave)
           
 
Methods inherited from class hudson.model.AsyncPeriodicWork
createListener, doRun, getLogFile
 
Methods inherited from class hudson.model.PeriodicWork
all, getInitialDelay
 
Methods inherited from class hudson.triggers.SafeTimerTask
run
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMEOUT_MINUTES

public static final int TIMEOUT_MINUTES
See Also:
Constant Field Values
Constructor Detail

ElasticBoxSlaveHandler

public ElasticBoxSlaveHandler()
Method Detail

submit

public static final IProgressMonitor submit(ElasticBoxSlave slave)

isSubmitted

public static final boolean isSubmitted(ElasticBoxSlave slave)

addToTerminatedQueue

public static final void addToTerminatedQueue(ElasticBoxSlave slave)

countInstances

public static int countInstances()
                          throws IOException
Throws:
IOException

execute

protected void execute(hudson.model.TaskListener listener)
                throws IOException,
                       InterruptedException
Specified by:
execute in class hudson.model.AsyncPeriodicWork
Throws:
IOException
InterruptedException

getRecurrencePeriod

public long getRecurrencePeriod()
Specified by:
getRecurrencePeriod in class hudson.model.PeriodicWork


Copyright © 2004-2014. All Rights Reserved.