org.apache.tools.ant.util
public class Watchdog extends Object implements Runnable
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. |
Parameters: timeout the timeout to use in milliseconds (must be >= 1).
Parameters: to the timeout observer to add.
Parameters: to the timeout observer to remove.