@Extension public static final class DownloadSettings.DailyCheck extends AsyncPeriodicWork
ExtensionPoint.LegacyInstancesAreScopedToHudson
name
DAY, HOUR, logger, MIN
Constructor and Description |
---|
DailyCheck() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(TaskListener listener)
Executes the task.
|
long |
getInitialDelay()
Gets the number of milliseconds til the first execution.
|
long |
getRecurrencePeriod()
Gets the number of milliseconds between successive executions.
|
createListener, doRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevel
all, init
run
cancel, scheduledExecutionTime
public long getRecurrencePeriod()
PeriodicWork
Hudson 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 PeriodicWork
public long getInitialDelay()
PeriodicWork
By default it chooses the value randomly between 0 and PeriodicWork.getRecurrencePeriod()
getInitialDelay
in class PeriodicWork
protected void execute(TaskListener listener) throws IOException, InterruptedException
AsyncPeriodicWork
execute
in class AsyncPeriodicWork
listener
- 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.Copyright © 2015. All rights reserved.