org.sadun.util.watchdog
Class TWatchDogListener
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HEAVY_PROCESS_TIME
public static final long HEAVY_PROCESS_TIME
- See Also:
- Constant Field Values
TWatchDogListener
public TWatchDogListener(boolean lightProcess)
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.