locateMBeanServer
| Modifier and Type | Field and Description |
|---|---|
| public static final String | IDENTITY_OBJECT_NAME_KEY
The key used when extending an existing |
| private static final Log | |
| private static final String | MBEAN_SUFFIX
Suffix used to identify an MBean interface. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ObjectName | Returns: an ObjectName with the MBean identity addedthe original JMX ObjectName objectName, Object the MBean instance managedResource)Append an additional key/value pair to an existing |
| public static String | Returns: the JMX attribute name to usethe JavaBeans property descriptor property, boolean whether to use strict casing useStrictCasing)Return the JMX attribute name to use for the given JavaBeans property. |
| public static Class | Returns: the bean class to exposethe bean instance (might be an AOP proxy) managedBean)Return the class or interface to expose for the given bean. |
| public static Class | Returns: the bean class to exposethe bean class (might be an AOP proxy class) clazz)Return the class or interface to expose for the given bean class. |
| public static Class | Returns: the Standard MBean interface for the given classthe class to check clazz)Return the Standard MBean interface for the given class, if any (that is, an interface whose name matches the class name of the given class but with suffix "MBean"). |
| public static String[] | Returns: the signature as array of argument typesthe method to build an argument signature for method)Create a |
| public static Class | Returns: whether there is an MXBean interface for the given classthe class to check clazz)Return the Java MXBean interface for the given class, if any (that is, an interface whose name ends with "MXBean" and/or carries an appropriate MXBean annotation). |
| public static boolean | |
| public static MBeanServer | |
| public static MBeanServer | Returns: theMBeanServer if foundthe agent identifier of the MBeanServer to retrieve.
If this parameter is agentId)null, all registered MBeanServers are considered.
If the empty String is given, the platform MBeanServer will be returned.Attempt to find a locally running |
| public static Class | Returns: the parameter types as classesthe JMX parameter info paramInfo)Convert an array of |
| public static Class | Returns: the parameter types as classesthe JMX parameter info paramInfo, ClassLoader the ClassLoader to use for loading parameter types classLoader)Convert an array of |
| IDENTITY_OBJECT_NAME_KEY | back to summary |
|---|---|
| public static final String IDENTITY_OBJECT_NAME_KEY The key used when extending an existing | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| MBEAN_SUFFIX | back to summary |
|---|---|
| private static final String MBEAN_SUFFIX Suffix used to identify an MBean interface. | |
| JmxUtils | back to summary |
|---|---|
| public JmxUtils() | |
| appendIdentityToObjectName | back to summary |
|---|---|
| public static ObjectName appendIdentityToObjectName(ObjectName objectName, Object managedResource) throws MalformedObjectNameException Append an additional key/value pair to an existing
| |
| getAttributeName | back to summary |
|---|---|
| public static String getAttributeName(PropertyDescriptor property, boolean useStrictCasing) Return the JMX attribute name to use for the given JavaBeans property. When using strict casing, a JavaBean property with a getter method
such as
| |
| getClassToExpose | back to summary |
|---|---|
| public static Class Return the class or interface to expose for the given bean. This is the class that will be searched for attributes and operations (for example, checked for annotations). This implementation returns the superclass for a CGLIB proxy and the class of the given bean else (for a JDK proxy or a plain bean class).
| |
| getClassToExpose | back to summary |
|---|---|
| public static Class Return the class or interface to expose for the given bean class. This is the class that will be searched for attributes and operations (for example, checked for annotations). This implementation returns the superclass for a CGLIB proxy and the class of the given bean else (for a JDK proxy or a plain bean class).
| |
| getMBeanInterface | back to summary |
|---|---|
| public static Class Return the Standard MBean interface for the given class, if any (that is, an interface whose name matches the class name of the given class but with suffix "MBean"). | |
| getMethodSignature | back to summary |
|---|---|
| public static String[] getMethodSignature(Method method) Create a | |
| getMXBeanInterface | back to summary |
|---|---|
| public static Class Return the Java MXBean interface for the given class, if any (that is, an interface whose name ends with "MXBean" and/or carries an appropriate MXBean annotation). | |
| isMBean | back to summary |
|---|---|
| public static boolean isMBean(Class<?> clazz) Determine whether the given bean class qualifies as an MBean as-is. This implementation checks for
| |
| locateMBeanServer | back to summary |
|---|---|
| public static MBeanServer locateMBeanServer() throws MBeanServerNotFoundException Attempt to find a locally running
| |
| locateMBeanServer | back to summary |
|---|---|
| public static MBeanServer locateMBeanServer(String agentId) throws MBeanServerNotFoundException Attempt to find a locally running
| |
| parameterInfoToTypes | back to summary |
|---|---|
| public static Class Convert an array of
| |
| parameterInfoToTypes | back to summary |
|---|---|
| public static Class Convert an array of
| |