public class JmxUtil extends Object
| Constructor and Description |
|---|
JmxUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ObjectName |
objectName(AtomicInteger counter,
String type)
Obtain a JMX ObjectName for a new instance of a given type.
|
static ObjectInstance |
register(Object object,
ObjectName objectName)
Register a JMX MBean against a given ObjectName.
|
static boolean |
unregister(ObjectName objectName)
Unregister the JMX MBean with a given ObjectName.
|
public static ObjectName objectName(AtomicInteger counter, String type)
counter - a counter used to ensure a unique instance id amongst instances with given type.type - the friendly type name for the instance.public static ObjectInstance register(Object object, ObjectName objectName)
This is simply an error logging wrapper around MBeanServer.registerMBean(java.lang.Object, javax.management.ObjectName).
object - the MBean implementation to register.objectName - the ObjectName to register against.public static boolean unregister(ObjectName objectName)
This is simply an error logging wrapper around MBeanServer.unregisterMBean(javax.management.ObjectName).
objectName - the ObjectName of the MBean to unregister.Copyright © 2019 Atlassian. All rights reserved.