@InterfaceAudience.Public @InterfaceStability.Stable public final class MBeans extends Object
register(String, String, Object)
.Modifier and Type | Method and Description |
---|---|
static String |
getMbeanNameName(ObjectName objectName) |
static String |
getMbeanNameService(ObjectName objectName) |
static ObjectName |
register(String serviceName,
String nameName,
Map<String,String> properties,
Object theMbean)
Register the MBean using our standard MBeanName format
"hadoop:service=<serviceName>,name=<nameName>"
Where the <serviceName> and <nameName> are the supplied
parameters.
|
static ObjectName |
register(String serviceName,
String nameName,
Object theMbean)
Register the MBean using our standard MBeanName format
"hadoop:service=<serviceName>,name=<nameName>"
Where the <serviceName> and <nameName> are the supplied
parameters.
|
static void |
unregister(ObjectName mbeanName) |
public static ObjectName register(String serviceName, String nameName, Object theMbean)
serviceName
- nameName
- theMbean
- - the MBean to registerpublic static ObjectName register(String serviceName, String nameName, Map<String,String> properties, Object theMbean)
serviceName
- nameName
- properties
- - Key value pairs to define additional JMX ObjectName
properties.theMbean
- - the MBean to registerpublic static String getMbeanNameService(ObjectName objectName)
public static String getMbeanNameName(ObjectName objectName)
public static void unregister(ObjectName mbeanName)
Copyright © 2021 Apache Software Foundation. All rights reserved.