Class MBeanUtil
java.lang.Object
com.mapr.org.apache.hadoop.metrics.util.MBeanUtil
This util class provides a method to register an MBean using
our standard naming convention as described in the doc
for {link
registerMBean(String, String, Object)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectNameregisterMBean(String serviceName, String nameName, Object theMbean) Register the MBean using our standard MBeanName format "hadoop:service=,name= " Where the and are the supplied parameters static voidunregisterMBean(ObjectName mbeanName)
-
Constructor Details
-
MBeanUtil
public MBeanUtil()
-
-
Method Details
-
registerMBean
Register the MBean using our standard MBeanName format "hadoop:service=,name= " Where the and are the supplied parameters - Parameters:
serviceName-nameName-theMbean- - the MBean to register- Returns:
- the named used to register the MBean
-
unregisterMBean
-