hudson.model
Class AsyncAperiodicWork
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.AperiodicWork
hudson.model.AsyncAperiodicWork
- All Implemented Interfaces:
- ExtensionPoint, Runnable
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.
- Since:
- 1.410
- Author:
- vjuranek
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
public final String name
- Name of the work.
AsyncAperiodicWork
protected AsyncAperiodicWork(String name)
doAperiodicRun
public final void doAperiodicRun()
- Schedules this periodic work now in a new thread, if one isn't already running.
- Specified by:
doAperiodicRun in class AperiodicWork
createListener
protected StreamTaskListener createListener()
getLogFile
protected File getLogFile()
- Determines the log file that records the result of this task.
execute
protected abstract void execute(TaskListener listener)
throws IOException,
InterruptedException
- Executes the task.
- Parameters:
listener - Output sent will be reported to the users. (this work is TBD.)
- Throws:
InterruptedException - The caller will record the exception and moves on.
IOException - The caller will record the exception and moves on.
Copyright © 2004-2013. All Rights Reserved.