org.apache.lokahi.core.agent.runnable
Class Watchdog

java.lang.Object
  extended by org.apache.lokahi.core.agent.runnable.Watchdog
All Implemented Interfaces:
java.lang.Runnable

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

Version:
$Id: Watchdog.java,v 1.1 2006/03/02 19:19:41 drtobes Exp $
Author:
Stephen Toback

Constructor Summary
Watchdog()
           
 
Method Summary
 void check()
          This method iterates through all the processes we should be monitoring and checks each one.
 void run()
           
static void setRun(boolean run)
           
static boolean shouldRun()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Watchdog

public Watchdog()
Method Detail

shouldRun

public static boolean shouldRun()

setRun

public static void setRun(boolean run)

run

public void run()
Specified by:
run in interface java.lang.Runnable

check

public void check()
This method iterates through all the processes we should be monitoring and checks each one. calling a start for it if it should be restarted.