|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sadun.util.watchdog.WatchDog.BaseListener
A base implementation of WatchDog.Listener
which invokes
checkFailed()
also when a check is impossible.
Listeners extending this class will need to do a type check against the
received Throwable to verify wether or not is a
WatchDogException
(and thus represents the
impossiblity of checking rather than a failed check).
Constructor Summary | |
WatchDog.BaseListener()
|
Method Summary | |
abstract void |
checkFailed(java.lang.Object obj,
java.lang.Throwable e)
Receive a notification of any problem during the check. |
void |
checkImpossible(java.lang.Object obj,
WatchDogException e)
Invoke checkFailed() passing
the received WatchDogException . |
void |
checkOk(java.lang.Object obj)
Does not do anything. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WatchDog.BaseListener()
Method Detail |
public void checkOk(java.lang.Object obj)
checkOk
in interface WatchDog.Listener
public abstract void checkFailed(java.lang.Object obj, java.lang.Throwable e)
The implementation will need to do a type check against the received
Throwable to verify wether or not is a
WatchDogException
(and thus represents the
impossiblity of checking rather than a failed check).
checkFailed
in interface WatchDog.Listener
obj
- e
- public void checkImpossible(java.lang.Object obj, WatchDogException e)
checkFailed()
passing
the received WatchDogException
.
checkImpossible
in interface WatchDog.Listener
e
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |