Package org.apache.activemq.broker.jmx
Class HealthView
- java.lang.Object
-
- org.apache.activemq.broker.jmx.HealthView
-
- All Implemented Interfaces:
HealthViewMBean
public class HealthView extends Object implements HealthViewMBean
-
-
Constructor Summary
Constructors Constructor Description HealthView(ManagedRegionBroker broker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCurrentStatus()
Warning, this method only return a value if the health or healthList method has previously been called.TabularData
health()
List<HealthStatus>
healthList()
Warning this method can only be invoked if you have the correct version ofHealthStatus
on your classpath or you use something like jolokia to access JMX.String
healthStatus()
-
-
-
Constructor Detail
-
HealthView
public HealthView(ManagedRegionBroker broker)
-
-
Method Detail
-
health
public TabularData health() throws Exception
- Specified by:
health
in interfaceHealthViewMBean
- Throws:
Exception
-
healthList
public List<HealthStatus> healthList() throws Exception
Description copied from interface:HealthViewMBean
Warning this method can only be invoked if you have the correct version ofHealthStatus
on your classpath or you use something like jolokia to access JMX. If in doubt, please use theHealthViewMBean.getCurrentStatus()
method instead!- Specified by:
healthList
in interfaceHealthViewMBean
- Returns:
- a list of HealthStatus objects that describe the health of the Broker.
- Throws:
Exception
-
healthStatus
public String healthStatus() throws Exception
- Specified by:
healthStatus
in interfaceHealthViewMBean
- Returns:
- a String representation of current Broker health state.
- Throws:
Exception
-
getCurrentStatus
public String getCurrentStatus()
Description copied from interface:HealthViewMBean
Warning, this method only return a value if the health or healthList method has previously been called. The value is not updated on its own and requires periodic calls to the health or healthList methods to refresh its value.- Specified by:
getCurrentStatus
in interfaceHealthViewMBean
- Returns:
- String representation of the current Broker state
-
-