| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.util.Watchdog
public class Watchdog
Generalization of ExecuteWatchdog
ExecuteWatchdog| Field Summary | |
|---|---|
| static java.lang.String | ERROR_INVALID_TIMEOUTError string. | 
| 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 occurred. | 
|  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 | 
| Field Detail | 
|---|
public static final java.lang.String ERROR_INVALID_TIMEOUT
| 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 | ||||||||