Package org.infinispan.commons.jmx
Class JmxUtil
- java.lang.Object
-
- org.infinispan.commons.jmx.JmxUtil
-
@Deprecated public final class JmxUtil extends java.lang.ObjectDeprecated.Since 10.0. DO NOT USE! Will be moved to an internal package soon.Internal class containing JMX related utility methods. Strictly for internal use. This class has just become unstable and might evaporate spontaneously.- Since:
- 5.0
- Author:
- Galder ZamarreƱo
-
-
Constructor Summary
Constructors Constructor Description JmxUtil()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.StringbuildJmxDomain(java.lang.String jmxDomain, javax.management.MBeanServer mBeanServer, java.lang.String groupName)Deprecated.Build the JMX domain name.static voidregisterMBean(java.lang.Object mBeanInstance, javax.management.ObjectName objectName, javax.management.MBeanServer mBeanServer)Deprecated.Registers the JMX MBean.static voidunregisterMBean(javax.management.ObjectName objectName, javax.management.MBeanServer mBeanServer)Deprecated.Unregisters the MBean located under the givenObjectName, if it exists.
-
-
-
Method Detail
-
buildJmxDomain
public static java.lang.String buildJmxDomain(java.lang.String jmxDomain, javax.management.MBeanServer mBeanServer, java.lang.String groupName)Deprecated.Build the JMX domain name. Starts from the given domain and probes it for the existence of any MBeans in the given group. If MBeans exist it appends an increasing numeric suffix (starting from 2) and retries until it finds an unused domain.- Parameters:
jmxDomain- The JMX domain namemBeanServer- theMBeanServerwhere to check whether the JMX domain is allowed or not.groupName- String containing the group name for the JMX MBean- Returns:
- A string that combines the allowed JMX domain possibly with a unique suffix
-
registerMBean
public static void registerMBean(java.lang.Object mBeanInstance, javax.management.ObjectName objectName, javax.management.MBeanServer mBeanServer) throws java.lang.ExceptionDeprecated.Registers the JMX MBean.- Parameters:
mBeanInstance- MBean to registerobjectName-ObjectNameunder which to register the MBean.mBeanServer-MBeanServerwhere to store the MBean.- Throws:
java.lang.Exception- If registration could not be completed.
-
unregisterMBean
public static void unregisterMBean(javax.management.ObjectName objectName, javax.management.MBeanServer mBeanServer) throws java.lang.ExceptionDeprecated.Unregisters the MBean located under the givenObjectName, if it exists.- Parameters:
objectName-ObjectNamewhere the MBean is registeredmBeanServer-MBeanServerfrom which to unregister the MBean.- Throws:
java.lang.Exception- If unregistration could not be completed.
-
-