|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.jmx.JmxUtil
public class JmxUtil
Class containing JMX related utility methods.
| Constructor Summary | |
|---|---|
JmxUtil()
|
|
| Method Summary | |
|---|---|
static String |
buildJmxDomain(GlobalConfiguration cfg,
MBeanServer mBeanServer,
String groupName)
Build the JMX domain name. |
static MBeanServer |
lookupMBeanServer(GlobalConfiguration cfg)
Looks up the MBeanServer instance based on the
configuration parameters. |
static void |
registerMBean(ResourceDMBean dynamicMBean,
ObjectName objectName,
MBeanServer mBeanServer)
Register the given dynamic JMX MBean. |
static void |
unregisterMBean(ObjectName objectName,
MBeanServer mBeanServer)
Unregister the MBean located under the given ObjectName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JmxUtil()
| Method Detail |
|---|
public static MBeanServer lookupMBeanServer(GlobalConfiguration cfg)
MBeanServer instance based on the
configuration parameters.
cfg - configuration instance indicating how to lookup
the MBeanServer
MBeanServer
public static String buildJmxDomain(GlobalConfiguration cfg,
MBeanServer mBeanServer,
String groupName)
cfg - configuration instance containig rules on JMX domains allowedmBeanServer - the MBeanServer where to
check whether the JMX domain is allowed or not.groupName - String containing the group name for the JMX MBean
public static void registerMBean(ResourceDMBean dynamicMBean,
ObjectName objectName,
MBeanServer mBeanServer)
throws Exception
dynamicMBean - Dynamic MBean to registerobjectName - ObjectName under which to register the MBean.mBeanServer - MBeanServer where to store the MBean.
Exception - If registration could not be completed.
public static void unregisterMBean(ObjectName objectName,
MBeanServer mBeanServer)
throws Exception
ObjectName
objectName - ObjectName where the MBean is registeredmBeanServer - MBeanServer from which to unregister the MBean.
Exception - If unregistration could not be completed.
|
--> | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||