/** * Indicates whether or not the watchdog is still monitoring the process. * * @return {@code true} if the process is still running, otherwise * {@code false}. */ public synchronized boolean isWatching() { ensureStarted(); return watch; }
/** * Destroys the running process manually. */ public synchronized void destroyProcess() { ensureStarted(); this.timeoutOccured(null); this.stop(); }