org.sadun.util.watchdog
Class TWatchDogListener

java.lang.Object
  extended byorg.sadun.util.watchdog.TWatchDogListener
All Implemented Interfaces:
WatchDog.Listener

public class TWatchDogListener
extends java.lang.Object
implements WatchDog.Listener

Version:
1.0
Author:
Cristiano Sadun

Field Summary
static long HEAVY_PROCESS_TIME
           
 
Constructor Summary
TWatchDogListener(boolean lightProcess)
           
 
Method Summary
 void checkFailed(java.lang.Object obj, java.lang.Throwable e)
          Notifies the listener that a check has failed.
 void checkImpossible(java.lang.Object obj, WatchDogException e)
          Notifies the listener that a check could not be performed.
 void checkOk(java.lang.Object obj)
          Notifies the listener that a check has been successful
 int getNotifiedFailedCount()
           
 int getNotifiedImpossibleCount()
           
 int getNotifiedOkCount()
           
 java.util.List getResultList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEAVY_PROCESS_TIME

public static final long HEAVY_PROCESS_TIME
See Also:
Constant Field Values
Constructor Detail

TWatchDogListener

public TWatchDogListener(boolean lightProcess)
Method Detail

checkOk

public void checkOk(java.lang.Object obj)
Description copied from interface: WatchDog.Listener
Notifies the listener that a check has been successful

Specified by:
checkOk in interface WatchDog.Listener

checkFailed

public void checkFailed(java.lang.Object obj,
                        java.lang.Throwable e)
Description copied from interface: WatchDog.Listener
Notifies the listener that a check has failed.

Specified by:
checkFailed in interface WatchDog.Listener
Parameters:
e -

checkImpossible

public void checkImpossible(java.lang.Object obj,
                            WatchDogException e)
Description copied from interface: WatchDog.Listener
Notifies the listener that a check could not be performed.

Specified by:
checkImpossible in interface WatchDog.Listener
Parameters:
e -

getNotifiedFailedCount

public int getNotifiedFailedCount()
Returns:
Returns the notifiedFailedCount.

getNotifiedImpossibleCount

public int getNotifiedImpossibleCount()
Returns:
Returns the notifiedImpossibleCount.

getNotifiedOkCount

public int getNotifiedOkCount()
Returns:
Returns the notifiedOkCount.

getResultList

public java.util.List getResultList()
Returns:
Returns the resultList.