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.


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

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


reset

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


stop

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



Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.