public class StatisticsBaseImpl extends Object implements StatisticsBase
| Constructor and Description |
|---|
StatisticsBaseImpl(String key)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(StatisticsBase child)
Add a child.
|
StatisticsBase |
getChild(String key)
Get a particular child of this object based on a key.
|
List |
getChildren()
Get the list of children of this object.
|
String |
getKey()
Get the key of this object.
|
StatisticsBase |
getParent()
Get the parent of this object.
|
boolean |
isEnabled()
Test whether or not statistics are enabled.
|
void |
registerMBean(Class interfaceClass,
Object instance,
ObjectName mbeanName)
Create and register a StandardMBean for this instance, using the
specified interface and MBean ObjectName.
|
void |
setDisabled()
Disable statistics.
|
void |
setEnabled()
Enable statistics.
|
void |
setParent(StatisticsBase parent)
Set the parent of this object.
|
void |
unregisterMBean()
Unregister the MBean for this instance.
|
public StatisticsBaseImpl(String key)
key - The key string for this statistics object.public String getKey()
getKey in interface StatisticsBasepublic void setParent(StatisticsBase parent)
setParent in interface StatisticsBaseparent - the StatisticsBase instance that is the parent of this
instance.public StatisticsBase getParent()
getParent in interface StatisticsBasepublic void addChild(StatisticsBase child)
addChild in interface StatisticsBasechild - the StatisticsBase instance to be added to the list of
children of this instance.public StatisticsBase getChild(String key)
getChild in interface StatisticsBasekey - the string key of the requested child.public List getChildren()
getChildren in interface StatisticsBasepublic boolean isEnabled()
isEnabled in interface StatisticsMBeanpublic void setDisabled()
setDisabled in interface StatisticsMBeanpublic void setEnabled()
setEnabled in interface StatisticsMBeanpublic void registerMBean(Class interfaceClass, Object instance, ObjectName mbeanName) throws JBIException
registerMBean in interface StatisticsBaseinterfaceClass - The interface implemented by the instance.mbeanName - The MBean ObjectName to use for this MBean.JBIException - If the MBean creation or registration
fails.public void unregisterMBean()
throws JBIException
unregisterMBean in interface StatisticsBaseJBIException - If the MBean unregistration fails.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.