|
|||||||||
| Home >> All >> org >> jbossmx >> cluster >> watchdog >> [ mbean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jbossmx.cluster.watchdog.mbean
Interface WatchdogMBean

- All Superinterfaces:
- org.jbossmx.cluster.watchdog.util.SkinableMBean, StartableMBean
- All Known Implementing Classes:
- Watchdog
- public interface WatchdogMBean
- extends StartableMBean
JMX MBean interface for the Watchdog class
| Method Summary | |
boolean |
getAllRunning()
Get whether all the StartableMBeans being watched are running. |
long |
getGranularity()
Get the amount of time in milliseconds between watching. |
int |
getMaxNumTimesToAttemptAgentRestart()
Gets the maximum number of times to attempt an Agent restart |
int |
getMaxNumTimesToAttemptMachineRestart()
Gets the maximum number of times to attempt a machine restart |
int |
getMaxNumTimesToAttemptMBeanReregister()
Gets the maximum number of times to attempt an MBean reregister |
int |
getMaxNumTimesToAttemptMBeanRestart()
Gets the maximum number of times to attempt an MBean restart |
int |
getNumRunning()
Gets the number of StartableMBeans that are running. |
int |
getNumStopped()
Gets the number of StartableMBeans that are not running. |
int |
getNumTimesToAttemptAgentRestart()
Gets the number of times to attempt Agent restart |
int |
getNumTimesToAttemptMachineRestart()
Gets the number of times to attempt machine restart |
int |
getNumTimesToAttemptMBeanReregister()
Gets the number of times to attempt MBean reregister |
int |
getNumTimesToAttemptMBeanRestart()
Gets the number of times to attempt MBean restart |
int |
getNumWatched()
Gets the number of StartableMBeans that are being watched. |
java.lang.String |
getRmiAgentBinding()
Gets the RMI Binding of the JMX Agent that is being watched. |
long |
getTimeLastWatched()
Gets the System time that the last watching run started. |
long |
getTimeStartedWatching()
Gets the System time that watching started. |
void |
setGranularity(long granularity)
Sets the amount of time in milliseconds between watching runs. |
void |
setNumTimesToAttemptAgentRestart(int numTimesToAttemptAgentRestart)
Sets the number of times to attempt Agent restart |
void |
setNumTimesToAttemptMachineRestart(int numTimesToAttemptMachineRestart)
Sets the number of times to attempt machine restart |
void |
setNumTimesToAttemptMBeanReregister(int numTimesToAttemptMBeanReregister)
Sets the number of times to attempt MBean reregister |
void |
setNumTimesToAttemptMBeanRestart(int numTimesToAttemptMBeanRestart)
Sets the number of times to attempt MBean restart |
| Methods inherited from interface org.jbossmx.cluster.watchdog.mbean.StartableMBean |
getMBeanStateString, restartMBean, retrieveMBeanState, simulateFailure, startMBean, stopMBean |
| Methods inherited from interface org.jbossmx.cluster.watchdog.util.SkinableMBean |
retrieveOneLiner |
| Method Detail |
getRmiAgentBinding
public java.lang.String getRmiAgentBinding()
- Gets the RMI Binding of the JMX Agent that is being watched.
getNumWatched
public int getNumWatched()
- Gets the number of StartableMBeans that are being watched.
getNumRunning
public int getNumRunning()
- Gets the number of StartableMBeans that are running.
getNumStopped
public int getNumStopped()
- Gets the number of StartableMBeans that are not running.
TODO: Change name of this, not running doesn't imply stopped, the mbeans can be in either
FAILED, FAILED_TO_START, FAILED_TO_STOP, STARTING, STOPPING, RESTARTING, OR STOPPED states.
getAllRunning
public boolean getAllRunning()
- Get whether all the StartableMBeans being watched are running.
getGranularity
public long getGranularity()
- Get the amount of time in milliseconds between watching.
setGranularity
public void setGranularity(long granularity)
- Sets the amount of time in milliseconds between watching runs.
getTimeStartedWatching
public long getTimeStartedWatching()
- Gets the System time that watching started.
getTimeLastWatched
public long getTimeLastWatched()
- Gets the System time that the last watching run started.
getNumTimesToAttemptMBeanRestart
public int getNumTimesToAttemptMBeanRestart()
- Gets the number of times to attempt MBean restart
getNumTimesToAttemptMBeanReregister
public int getNumTimesToAttemptMBeanReregister()
- Gets the number of times to attempt MBean reregister
getNumTimesToAttemptAgentRestart
public int getNumTimesToAttemptAgentRestart()
- Gets the number of times to attempt Agent restart
getNumTimesToAttemptMachineRestart
public int getNumTimesToAttemptMachineRestart()
- Gets the number of times to attempt machine restart
setNumTimesToAttemptMBeanRestart
public void setNumTimesToAttemptMBeanRestart(int numTimesToAttemptMBeanRestart)
- Sets the number of times to attempt MBean restart
setNumTimesToAttemptMBeanReregister
public void setNumTimesToAttemptMBeanReregister(int numTimesToAttemptMBeanReregister)
- Sets the number of times to attempt MBean reregister
setNumTimesToAttemptAgentRestart
public void setNumTimesToAttemptAgentRestart(int numTimesToAttemptAgentRestart)
- Sets the number of times to attempt Agent restart
setNumTimesToAttemptMachineRestart
public void setNumTimesToAttemptMachineRestart(int numTimesToAttemptMachineRestart)
- Sets the number of times to attempt machine restart
getMaxNumTimesToAttemptMBeanRestart
public int getMaxNumTimesToAttemptMBeanRestart()
- Gets the maximum number of times to attempt an MBean restart
getMaxNumTimesToAttemptMBeanReregister
public int getMaxNumTimesToAttemptMBeanReregister()
- Gets the maximum number of times to attempt an MBean reregister
getMaxNumTimesToAttemptAgentRestart
public int getMaxNumTimesToAttemptAgentRestart()
- Gets the maximum number of times to attempt an Agent restart
getMaxNumTimesToAttemptMachineRestart
public int getMaxNumTimesToAttemptMachineRestart()
- Gets the maximum number of times to attempt a machine restart
|
|||||||||
| Home >> All >> org >> jbossmx >> cluster >> watchdog >> [ mbean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC