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
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Gets new instance of task to be executed.long
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
-
Constructor Details
-
Schedule
public Schedule()
-
-
Method Details
-
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
-