Class AbstractMXBean
java.lang.Object
org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean
- Direct Known Subclasses:
ThreadExecutorStatsMXBeanImpl
Abstract base for an MXBean implementation class.
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.
- Author:
- Thomas Pantelis
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMXBean(@NonNull String beanName, @NonNull String beanType, @Nullable String beanCategory) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns theCategoryproperty of the bean's ObjectName.Returns thenameproperty of the bean's ObjectName.Returns thetypeproperty of the bean's ObjectName.voidregister()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.booleanRegisters this bean with the platform MBean server with the domain defined byBASE_JMX_PREFIX.voidThis method is a wrapper for unregisterMBean with void return type so it can be invoked by dependency injection frameworks such as Spring and Blueprint.booleanUnregisters this bean with the platform MBean server.
-
Field Details
-
BASE_JMX_PREFIX
- See Also:
-
-
Constructor Details
-
AbstractMXBean
protected AbstractMXBean(@NonNull String beanName, @NonNull String beanType, @Nullable String beanCategory) Constructor.- Parameters:
beanName- Used as thenameproperty in the bean's ObjectName.beanType- Used as thetypeproperty in the bean's ObjectName.beanCategory- Used as theCategoryproperty in the bean's ObjectName.
-
-
Method Details
-
register
public 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. -
registerMBean
public boolean registerMBean()Registers this bean with the platform MBean server with the domain defined byBASE_JMX_PREFIX.- Returns:
- true is successfully registered, false otherwise.
-
unregister
public 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. -
unregisterMBean
public boolean unregisterMBean()Unregisters this bean with the platform MBean server.- Returns:
- true is successfully unregistered, false otherwise.
-
getMBeanName
Returns thenameproperty of the bean's ObjectName. -
getMBeanType
Returns thetypeproperty of the bean's ObjectName. -
getMBeanCategory
Returns theCategoryproperty of the bean's ObjectName.
-