org.apache.hadoop.metrics2.util
Class MBeans

java.lang.Object
  extended by org.apache.hadoop.metrics2.util.MBeans

@InterfaceAudience.Public
@InterfaceStability.Stable
public class MBeans
extends Object

This util class provides a method to register an MBean using our standard naming convention as described in the doc for {link register(String, String, Object)


Constructor Summary
MBeans()
           
 
Method Summary
static ObjectName register(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 void unregister(ObjectName mbeanName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeans

public MBeans()
Method Detail

register

public static ObjectName register(String serviceName,
                                  String nameName,
                                  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

unregister

public static void unregister(ObjectName mbeanName)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.