|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.util.Watchdog
Generalization of ExecuteWatchdog
ExecuteWatchdog
Constructor Summary | |
Watchdog(long timeout)
Constructor for Watchdog. |
Method Summary | |
void |
addTimeoutObserver(TimeoutObserver to)
Add a timeout observer. |
protected void |
fireTimeoutOccured()
Inform the observers that a timeout has occured. |
void |
removeTimeoutObserver(TimeoutObserver to)
Remove a timeout observer. |
void |
run()
The run method of the watch dog thread. |
void |
start()
Start the watch dog. |
void |
stop()
Stop the watch dog. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Watchdog(long timeout)
timeout
- the timeout to use in milliseconds (must be >= 1).Method Detail |
public void addTimeoutObserver(TimeoutObserver to)
to
- the timeout observer to add.public void removeTimeoutObserver(TimeoutObserver to)
to
- the timeout observer to remove.protected final void fireTimeoutOccured()
public void start()
public void stop()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |