org.apache.hadoop.metrics.util
Class MBeanUtil

java.lang.Object
  extended by org.apache.hadoop.metrics.util.MBeanUtil

public class MBeanUtil
extends 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
MBeanUtil()
           
 
Method Summary
static ObjectName registerMBean(String serviceName, String nameName, Object theMbean)
          Register the mbean using out standard MBeanName format "hadoop.dfs:service=,name=" Where the and are the supplied parameters
static void unregisterMBean(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 ObjectName registerMBean(String serviceName,
                                       String nameName,
                                       Object theMbean)
Register the mbean using out standard MBeanName format "hadoop.dfs: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(ObjectName mbeanName)


Copyright © 2008 The Apache Software Foundation