|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.apache.tools.ant.taskdefs.ExecuteWatchdog
Destroys a process running for too long.
| Constructor Summary | |
ExecuteWatchdog(int timeout)
Creates a new watchdog. |
|
| Method Summary | |
void |
checkException()
|
void |
run()
Watches the process and terminates it, if it runs for to long. |
void |
start(java.lang.Process process)
Watches the given process and terminates it, if it runs for to long. |
void |
stop()
Stops the watcher. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExecuteWatchdog(int timeout)
timeout - the timeout for the process.| Method Detail |
public void start(java.lang.Process process)
process - the process to watch.public void stop()
public void run()
run in interface java.lang.Runnable
public void checkException()
throws BuildException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||