Class MBeanUtil


  • @LimitedPrivate({"HDFS","MapReduce"})
    public class MBeanUtil
    extends java.lang.Object
    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 
      Constructor Description
      MBeanUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.management.ObjectName registerMBean​(java.lang.String serviceName, java.lang.String nameName, java.lang.Object theMbean)
      Register the MBean using our standard MBeanName format "hadoop:service=,name=" Where the and are the supplied parameters
      static void unregisterMBean​(javax.management.ObjectName mbeanName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MBeanUtil

        public MBeanUtil()
    • Method Detail

      • registerMBean

        public static javax.management.ObjectName registerMBean​(java.lang.String serviceName,
                                                                java.lang.String nameName,
                                                                java.lang.Object theMbean)
        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

        public static void unregisterMBean​(javax.management.ObjectName mbeanName)