org.apache.james.util.watchdog
Interface Watchdog

All Known Implementing Classes:
InaccurateTimeoutWatchdog

public interface Watchdog

This interface represents an abstract watchdog process that serves to monitor a situation and triggers an action under an implementation-specific trigger condition.

Author:
Andrei Ivanov, Peter M. Goldstein

Method Summary
 void reset()
          Reset this Watchdog.
 void start()
          Start this Watchdog, causing it to begin monitoring.
 void stop()
          Stop this Watchdog, terminating the monitoring condition.
 

Method Detail

start

public void start()
Start this Watchdog, causing it to begin monitoring. The Watchdog can be stopped and restarted.


reset

public void reset()
Reset this Watchdog. Resets any conditions in the implementations (time to expiration, etc.) to their original values


stop

public void stop()
Stop this Watchdog, terminating the monitoring condition. The monitor can be restarted with a call to startWatchdog.



"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."