public abstract class AsyncAperiodicWork extends AperiodicWork
AperiodicWork that takes a long time to run. Similar to AsyncPeriodicWork, see AsyncPeriodicWork for
details and AperiodicWork for differences between AperiodicWork and PeriodicWork.ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
String |
name
Name of the work.
|
logger| Modifier | Constructor and Description |
|---|---|
protected |
AsyncAperiodicWork(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected StreamTaskListener |
createListener() |
void |
doAperiodicRun()
Schedules this periodic work now in a new thread, if one isn't already running.
|
protected abstract void |
execute(TaskListener listener)
Executes the task.
|
protected File |
getLogFile()
Determines the log file that records the result of this task.
|
all, doRun, getInitialDelay, getNewInstance, getRecurrencePeriod, initruncancel, scheduledExecutionTimepublic final String name
protected AsyncAperiodicWork(String name)
public final void doAperiodicRun()
doAperiodicRun in class AperiodicWorkprotected StreamTaskListener createListener()
protected File getLogFile()
protected abstract void execute(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 © 2015. All rights reserved.