abstract class JmxUtils
Collection of generic utility methods to support Spring JMX. Includes a convenient method to locate an MBeanServer.
Author
Rob Harrop
Author
Juergen Hoeller
Since
1.2
See Also
#locateMBeanServer
JmxUtils()
Collection of generic utility methods to support Spring JMX. Includes a convenient method to locate an MBeanServer. |
static val IDENTITY_OBJECT_NAME_KEY: String
The key used when extending an existing ObjectName with the identity hash code of its corresponding managed resource. |
open static fun appendIdentityToObjectName(objectName: ObjectName, managedResource: Any): ObjectName
Append an additional key/value pair to an existing ObjectName with the key being the static value |
|
open static fun getAttributeName(property: PropertyDescriptor, useStrictCasing: Boolean): String
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 |
|
open static fun getClassToExpose(managedBean: Any): 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). open static fun getClassToExpose(clazz: Class<*>): 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). |
|
open static fun getMBeanInterface(clazz: Class<*>): 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"). |
|
open static fun getMXBeanInterface(clazz: Class<*>): Class<*>
Return the Java 6 MXBean interface exists for the given class, if any (that is, an interface whose name ends with "MXBean" and/or carries an appropriate MXBean annotation). |
|
open static fun getMethodSignature(method: Method): Array<String>
Create a |
|
open static fun isMBean(clazz: Class<*>): Boolean
Determine whether the given bean class qualifies as an MBean as-is. This implementation checks for javax.management.DynamicMBean classes as well as classes with corresponding "*MBean" interface (Standard MBeans) or corresponding "*MXBean" interface (Java 6 MXBeans). |
|
open static fun locateMBeanServer(): MBeanServeropen static fun locateMBeanServer(agentId: String): MBeanServer
Attempt to find a locally running |
|
open static fun parameterInfoToTypes(paramInfo: Array<MBeanParameterInfo>): Array<Class<*>>open static fun parameterInfoToTypes(paramInfo: Array<MBeanParameterInfo>, classLoader: ClassLoader): Array<Class<*>>
Convert an array of |