org.sadun.util.watchdog
Interface WatchDog.Listener

All Known Implementing Classes:
ManagedConnectionPool, TWatchDogListener, WaitAndRetryListener, WatchDog.BaseListener
Enclosing interface:
WatchDog

public static interface WatchDog.Listener

The event listening interface for WatchDogevents.

Author:
Cristiano Sadun

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
 

Method Detail

checkOk

public void checkOk(java.lang.Object obj)
Notifies the listener that a check has been successful


checkFailed

public void checkFailed(java.lang.Object obj,
                        java.lang.Throwable e)
Notifies the listener that a check has failed.

Parameters:
e -

checkImpossible

public void checkImpossible(java.lang.Object obj,
                            WatchDogException e)
Notifies the listener that a check could not be performed.

Parameters:
e -