|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sadun.util.watchdog.mbean.action.ConnectURLAction
| Field Summary | |
java.net.URL |
url
|
| Constructor Summary | |
ConnectURLAction()
|
|
| Method Summary | |
java.lang.Throwable |
doCheck(java.lang.Object obj)
Perform the required check. |
java.lang.String |
getUrl()
|
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. |
void |
setUrl(java.lang.String url)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.net.URL url
| Constructor Detail |
public ConnectURLAction()
| Method Detail |
public java.lang.String isReady(boolean running)
ManagedWatchDogMBean.CheckActionFor actions whose parameters may be checked at runtime, this is the place where to put validation checks for such parameters.
isReady in interface ManagedWatchDogMBean.CheckActionrunning - if true, the object using the action is declared as running.
public java.lang.Throwable doCheck(java.lang.Object obj)
throws WatchDogException
ManagedWatchDogMBean.CheckActionWatchDogExceptionif the check proves
impossible.
In either case, the currently registered listeners will be notified of the failure.
doCheck in interface ManagedWatchDogMBean.CheckActionobj - the object subject to the check, or null if the
check does not depend on any specific object.
WatchDogException - if the check is impossiblepublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url - The url to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||