hudson.triggers
Class SafeTimerTask

java.lang.Object
  extended by java.util.TimerTask
      extended by 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

Constructor Summary
SafeTimerTask()
           
 
Method Summary
protected abstract  void doRun()
           
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SafeTimerTask

public SafeTimerTask()
Method Detail

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.