org.jenkins.ci.plugins
Class PersistentBuildQueuePeriodicWork

java.lang.Object
  extended by java.util.TimerTask
      extended by hudson.triggers.SafeTimerTask
          extended by hudson.model.PeriodicWork
              extended by org.jenkins.ci.plugins.PersistentBuildQueuePeriodicWork
All Implemented Interfaces:
hudson.ExtensionPoint, java.lang.Runnable

@Extension
public final class PersistentBuildQueuePeriodicWork
extends hudson.model.PeriodicWork

A very simple PeriodicWork which requests PersistentBuildQueue to schedule persisted jobs. It is up to PersistentBuildQueue not to do this more than once per Jenkins restart.

Since:
1.0
Author:
Jesse Farinacci

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN
 
Constructor Summary
PersistentBuildQueuePeriodicWork()
           
 
Method Summary
protected  void doRun()
           
 long getInitialDelay()
           
 long getRecurrencePeriod()
           
 
Methods inherited from class hudson.model.PeriodicWork
all
 
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
 

Constructor Detail

PersistentBuildQueuePeriodicWork

public PersistentBuildQueuePeriodicWork()
Method Detail

doRun

protected void doRun()
              throws java.lang.Exception
Specified by:
doRun in class hudson.triggers.SafeTimerTask
Throws:
java.lang.Exception

getInitialDelay

public long getInitialDelay()
Overrides:
getInitialDelay in class hudson.model.PeriodicWork

getRecurrencePeriod

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


Copyright © 2004-2011. All Rights Reserved.