Package hudson.util
Class DoubleLaunchChecker.Schedule
- java.lang.Object
-
- java.util.TimerTask
-
- hudson.triggers.SafeTimerTask
-
- hudson.model.AperiodicWork
-
- hudson.util.DoubleLaunchChecker.Schedule
-
- All Implemented Interfaces:
ExtensionPoint
,Runnable
- Enclosing class:
- DoubleLaunchChecker
@Extension public static final class DoubleLaunchChecker.Schedule extends AperiodicWork
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnable
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.AperiodicWork
logger
-
-
Constructor Summary
Constructors Constructor Description Schedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doAperiodicRun()
AperiodicWork
getNewInstance()
Gets new instance of task to be executed.long
getRecurrencePeriod()
Gets the number of milliseconds between successive executions.-
Methods inherited from class hudson.model.AperiodicWork
all, doRun, getInitialDelay, init
-
Methods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, run
-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Method Detail
-
getNewInstance
public AperiodicWork getNewInstance()
Description copied from class:AperiodicWork
Gets new instance of task to be executed. Method should return new instance each time, as there no check, if previously scheduled task already finished. Returning same instance could lead to throwingIllegalStateException
(especially in case ofAsyncAperiodicWork
) and therefore scheduling of next tasks will be broken.- Specified by:
getNewInstance
in classAperiodicWork
- Returns:
- AperiodicWork - timer task instance to be executed
-
getRecurrencePeriod
public long getRecurrencePeriod()
Description copied from class:AperiodicWork
Gets the number of milliseconds between successive executions.Jenkins calls this method every time the timer task is scheduled.
- Specified by:
getRecurrencePeriod
in classAperiodicWork
-
doAperiodicRun
protected void doAperiodicRun()
- Specified by:
doAperiodicRun
in classAperiodicWork
-
-