Package org.apache.tools.ant.util
Class Watchdog
java.lang.Object
org.apache.tools.ant.util.Watchdog
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
ERROR_INVALID_TIMEOUT
 
- 
- 
Constructor Details- 
Watchdogpublic Watchdog(long timeout) Constructor for Watchdog.- Parameters:
- timeout- the timeout to use in milliseconds (must be >= 1).
 
 
- 
- 
Method Details- 
addTimeoutObserverAdd a timeout observer.- Parameters:
- to- the timeout observer to add.
 
- 
removeTimeoutObserverRemove a timeout observer.- Parameters:
- to- the timeout observer to remove.
 
- 
fireTimeoutOccuredprotected final void fireTimeoutOccured()Inform the observers that a timeout has occurred. This happens in the watchdog thread.
- 
startpublic void start()Start the watch dog.
- 
stoppublic void stop()Stop the watch dog.
- 
run
 
-