hudson.triggers
Class SafeTimerTask
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- AperiodicWork, LoadMonitorImpl, PeriodicWork
public abstract class SafeTimerTask
- extends TimerTask
Timer
wrapper so that a fatal error in TimerTask
won't terminate the timer.
Trigger.timer
is a shared timer instance that can be used inside Hudson to
schedule a recurring work.
- Since:
- 1.124
- Author:
- Kohsuke Kawaguchi
- See Also:
Trigger.timer
Method Summary |
protected abstract void |
doRun()
|
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SafeTimerTask
public SafeTimerTask()
run
public final void run()
- Specified by:
run
in interface Runnable
- Specified by:
run
in class TimerTask
doRun
protected abstract void doRun()
throws Exception
- Throws:
Exception
Copyright © 2004-2013. All Rights Reserved.