@Beta public abstract class AbstractMXBean extends Object
This class is not intended for use outside of MD-SAL and its part of private implementation (still exported as public to be reused across MD-SAL implementation components) and may be removed in subsequent releases.
Modifier and Type | Field and Description |
---|---|
static String |
BASE_JMX_PREFIX |
Modifier | Constructor and Description |
---|---|
protected |
AbstractMXBean(String beanName,
String beanType,
String beanCategory)
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. |
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.
|
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.
|
boolean |
unregisterMBean()
Unregisters this bean with the platform MBean server.
|
public static final String BASE_JMX_PREFIX
protected AbstractMXBean(@Nonnull String beanName, @Nonnull String beanType, @Nullable String beanCategory)
beanName
- Used as the name
property in the bean's ObjectName.beanType
- Used as the type
property in the bean's ObjectName.beanCategory
- Used as the Category
property in the bean's ObjectName.public void register()
public boolean registerMBean()
BASE_JMX_PREFIX
.public void unregister()
public boolean unregisterMBean()
public String getMBeanName()
name
property of the bean's ObjectName.public String getMBeanType()
type
property of the bean's ObjectName.public String getMBeanCategory()
Category
property of the bean's ObjectName.Copyright © 2019 OpenDaylight. All rights reserved.