Class Watchdog

java.lang.Object
org.apache.commons.exec.Watchdog
All Implemented Interfaces:
Runnable

public class Watchdog extends Object implements Runnable
Generalization of ExecuteWatchdog
Version:
$Id: Watchdog.java 1636056 2014-11-01 21:12:52Z ggregory $
See Also:
  • Field Details

    • observers

      private final Vector<TimeoutObserver> observers
    • timeout

      private final long timeout
    • stopped

      private boolean stopped
  • Constructor Details

    • Watchdog

      public Watchdog(long timeout)
  • Method Details

    • addTimeoutObserver

      public void addTimeoutObserver(TimeoutObserver to)
    • removeTimeoutObserver

      public void removeTimeoutObserver(TimeoutObserver to)
    • fireTimeoutOccured

      protected final void fireTimeoutOccured()
    • start

      public void start()
    • stop

      public void stop()
    • run

      public void run()
      Specified by:
      run in interface Runnable