|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.CheckAction
For actions whose parameters may be checked at runtime, this is the place where to put validation checks for such parameters.
isReady
in interface ManagedWatchDogMBean.CheckAction
running
- if true, the object using the action is declared as running.
public java.lang.Throwable doCheck(java.lang.Object obj) throws WatchDogException
ManagedWatchDogMBean.CheckAction
WatchDogException
if the check proves
impossible.
In either case, the currently registered listeners will be notified of the failure.
doCheck
in interface ManagedWatchDogMBean.CheckAction
obj
- 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 |