@Extension public class OutOfOrderBuildDetector extends AsyncPeriodicWork
Problems periodically in the background and
pass them on to OutOfOrderBuildMonitor.ExtensionPoint.LegacyInstancesAreScopedToHudsonnameDAY, HOUR, logger, MIN| Constructor and Description |
|---|
OutOfOrderBuildDetector() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(TaskListener listener)
Executes the task.
|
void |
execute(TaskListener listener,
int delay)
Performs the check synchronously.
|
long |
getRecurrencePeriod()
Gets the number of milliseconds between successive executions.
|
createListener, doRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevelall, getInitialDelay, initruncancel, scheduledExecutionTimeprotected void execute(TaskListener listener) throws IOException, InterruptedException
AsyncPeriodicWorkexecute in class AsyncPeriodicWorklistener - Output sent will be reported to the users. (this work is TBD.)IOException - The caller will record the exception and moves on.InterruptedException - The caller will record the exception and moves on.public void execute(TaskListener listener, int delay) throws InterruptedException
delay - delay in the number of milli-seconds to reduce the load on I/O.InterruptedExceptionpublic long getRecurrencePeriod()
PeriodicWorkHudson calls this method once to set up a recurring timer, instead of calling this each time after the previous execution completed. So this class cannot be used to implement a non-regular recurring timer.
IOW, the method should always return the same value.
getRecurrencePeriod in class PeriodicWorkCopyright © 2014. All rights reserved.