Method Summary |
|
public synchronized void | checkException() This method will rethrow the exception that was possibly caught during
the run of the process. |
protected synchronized void | cleanUp() reset the monitor flag and the process. |
public boolean | isWatching() Indicates whether or not the watchdog is still monitoring the process. |
public boolean | killedProcess() Indicates whether the last process run was killed on timeout or not. |
public synchronized void | start(Process process) Watches the given process and terminates it, if it runs for too long.
All information from the previous run are reset.
Parameters: process - the process to monitor. |
public synchronized void | stop() Stops the watcher. |
public synchronized void | timeoutOccured(Watchdog w) Called after watchdog has finished. |