|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
NON COMPLETE YET.
A JMX instrumentation of the WatchDog
class.
Nested Class Summary | |
static interface |
ManagedWatchDogMBean.CheckAction
This interface must is implemented by objects which define a specific check semantics for the default implementation of the
ManagedWatchDogMBean .
|
Method Summary | |
void |
addListener(WatchDog.Listener l)
Add a watchdog listener to the listener set. |
java.lang.String |
getCheckActionClassName()
Get the name of the check action class in use. |
java.lang.Object |
getCheckActionParameter(java.lang.String name)
Return the value of a parameter in the current check action object. |
long |
getCheckPeriodTime()
Return the amount of time the watchdog waits between each check. |
java.lang.String |
getName()
Set the name of the watchdog tGread |
boolean |
isAlive()
Return true if the watchdog thread is currently running. |
boolean |
isShuttingDown()
Return true if a shutdown has been requested. |
boolean |
isStartBySleeping()
Return true if the watchdog goes immediatly to sleep on startup |
boolean |
isSynchronous()
Return the synchronicity mode (see class comment). |
void |
removeListener(WatchDog.Listener l)
Remove a watchdog listener from the listeners set. |
void |
setCheckActionClassName(java.lang.String name)
Set the name of the check action class to use.
|
void |
setCheckActionParameter(java.lang.String name,
java.lang.Object value)
Set a parameter on the current check action object. |
void |
setCheckPeriodTime(long checkPeriodTime)
Set the amount of time the watchdog waits between each check. |
void |
setName(java.lang.String name)
Set the name of the watchdog thread |
void |
setStartBySleeping(boolean startBySleeping)
|
void |
shutdown()
Unconditionally requests a shutdown. |
void |
startup()
Start the watchdog thread. |
Method Detail |
public void addListener(WatchDog.Listener l)
l
- the listener to addpublic void removeListener(WatchDog.Listener l)
l
- the listener to removepublic long getCheckPeriodTime()
public void setCheckPeriodTime(long checkPeriodTime)
checkPeriodTime
- the amount of time the watchdog waits between each check.public void setCheckActionClassName(java.lang.String name) throws javax.management.MBeanException
check action class
to use.
The class must have a public default constructor.
This method attempts to create an instance of the class, and a corresponding WatchDog object. An MBeanException is raised in case of problem doing so.
This method can be called only once.
name
- the name of the check action class
to use.
javax.management.MBeanException
public java.lang.String getCheckActionClassName()
check action class
in use.
check action class
in use.public boolean isSynchronous()
public boolean isStartBySleeping()
public void setStartBySleeping(boolean startBySleeping)
startBySleeping
- The startBySleeping to set.public void setName(java.lang.String name)
name
- the name of the watchdog threadpublic java.lang.String getName()
public void startup()
public void shutdown()
public boolean isShuttingDown()
public boolean isAlive()
public void setCheckActionParameter(java.lang.String name, java.lang.Object value) throws javax.management.MBeanException
CheckActionClassName
attribute must be set to a valid, constructable class before this method is invoked.
name
- the name of the check action parameter.value
- the value to set
javax.management.MBeanException
public java.lang.Object getCheckActionParameter(java.lang.String name) throws javax.management.MBeanException
CheckActionClassName
attribute must be set to a valid, constructable class before this method is invoked.
name
- the name of the check action parameter.
javax.management.MBeanException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |