public abstract class AsyncPeriodicWork
extends hudson.model.PeriodicWork
doRun() from INFO to
FINEST so the logs are not spamed.
All other functionality is exactly the same as in the original class.| Modifier | Constructor and Description |
|---|---|
protected |
AsyncPeriodicWork(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected hudson.util.StreamTaskListener |
createListener() |
void |
doRun()
Schedules this periodic work now in a new thread, if one isn't already running.
|
protected abstract void |
execute(hudson.model.TaskListener listener)
Executes the task.
|
protected File |
getLogFile()
Determines the log file that records the result of this task.
|
all, getInitialDelay, getRecurrencePeriod, initcancel, scheduledExecutionTimepublic final String name
protected AsyncPeriodicWork(String name)
public final void doRun()
doRun in class hudson.triggers.SafeTimerTaskprotected hudson.util.StreamTaskListener createListener()
protected File getLogFile()
protected abstract void execute(hudson.model.TaskListener listener)
throws IOException,
InterruptedException
listener - Output sent will be reported to the users. (this work is TBD.)InterruptedException - The caller will record the exception and moves on.IOException - The caller will record the exception and moves on.Copyright © 2016. All rights reserved.