|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface must is implemented by objects which define a specific check
semantics for the default
implementation of the
ManagedWatchDogMBean
.
Unless is used programmatically, a check action should have an empty constructor and accessors for its properties.
Method Summary | |
java.lang.Throwable |
doCheck(java.lang.Object obj)
Perform the required check. |
java.lang.String |
isReady(boolean running)
Performs a check on whether or not the action is ready, and returns a description of the problem if a problem exist, otherwise null. |
Method Detail |
public java.lang.String isReady(boolean running)
For actions whose parameters may be checked at runtime, this is the place where to put validation checks for such parameters.
running
- if true, the object using the action is declared as running.
public java.lang.Throwable doCheck(java.lang.Object obj) throws WatchDogException
WatchDogException
if the check proves
impossible.
In either case, the currently registered listeners will be notified of the failure.
obj
- the object subject to the check, or null if the
check does not depend on any specific object.
WatchDogException
- if the check is impossible
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |