net.sf.xbus.technical
Class ReceiverServiceWatchdog

java.lang.Object
  extended by net.sf.xbus.technical.ReceiverServiceWatchdog
All Implemented Interfaces:
java.lang.Runnable

public class ReceiverServiceWatchdog
extends java.lang.Object
implements java.lang.Runnable

The ReceiverServiceWatchdog checks in a configurable interval, whether all started ReceiverThreadBases are still running. If a thread is not running anymore and it has not been stopped on demand, it is started again.


Constructor Summary
ReceiverServiceWatchdog()
           
 
Method Summary
 void run()
          Checks in a configurable interval, whether all started ReceiverThreadBases are still running.
 void stopWatchdog()
          Tells the watchdog that it should stop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceiverServiceWatchdog

public ReceiverServiceWatchdog()
Method Detail

run

public void run()
Checks in a configurable interval, whether all started ReceiverThreadBases are still running. If a thread is not running anymore and it has not been stopped on demand, it is started again.

Specified by:
run in interface java.lang.Runnable

stopWatchdog

public void stopWatchdog()
Tells the watchdog that it should stop.