public abstract class AbstractMXBean extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BASE_JMX_PREFIX |
Modifier | Constructor and Description |
---|---|
protected |
AbstractMXBean(String mbeanName,
String mbeanType,
String mbeanCategory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getMBeanCategory()
Returns the
Category property of the bean's ObjectName. |
String |
getMBeanName()
Returns the
name property of the bean's ObjectName. |
String |
getMBeanType()
Returns the
type property of the bean's ObjectName. |
Object |
invokeMBeanFunction(String functionName)
invoke an mbean function with the platform MBean server.
|
Object |
readMBeanAttribute(String attribute)
Read an mbean attribute from the platform MBean server.
|
void |
register()
This method is a wrapper for registerMBean with void return type so it can be invoked by dependency
injection frameworks such as Spring and Blueprint.
|
protected boolean |
registerMBean()
Registers this bean with the platform MBean server with the domain defined by
BASE_JMX_PREFIX . |
void |
unregister()
This method is a wrapper for unregisterMBean with void return type so it can be invoked by dependency
injection frameworks such as Spring and Blueprint.
|
protected boolean |
unregisterMBean()
Unregisters this bean with the platform MBean server.
|
public static final String BASE_JMX_PREFIX
protected AbstractMXBean(@Nonnull String mbeanName, @Nonnull String mbeanType, @Nullable String mbeanCategory)
mbeanName
- Used as the name
property in the bean's ObjectName.mbeanType
- Used as the type
property in the bean's ObjectName.mbeanCategory
- Used as the Category
property in the bean's ObjectName.public void register()
protected final boolean registerMBean()
BASE_JMX_PREFIX
.public void unregister()
protected boolean unregisterMBean()
public Object invokeMBeanFunction(String functionName)
public Object readMBeanAttribute(String attribute)
public String getMBeanName()
name
property of the bean's ObjectName.public String getMBeanType()
type
property of the bean's ObjectName.Copyright © 2019 OpenDaylight. All rights reserved.