public final class JolokiaMBeanServerUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JOLOKIA_MBEAN_SERVER_ATTRIBUTE |
Modifier and Type | Method and Description |
---|---|
static MBeanServer |
getJolokiaMBeanServer()
Lookup the JolokiaMBean server via a JMX lookup to the Jolokia-internal MBean exposing this MBeanServer
|
static ObjectInstance |
registerMBean(Object object,
ObjectName name)
Register an MBean at the JolokiaMBeanServer.
|
static void |
unregisterMBean(ObjectName name)
Unregister an MBean at the JolokiaMBeanServer.
|
public static final String JOLOKIA_MBEAN_SERVER_ATTRIBUTE
public static MBeanServer getJolokiaMBeanServer()
public static ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
object
- object to registername
- object name under which to register the MBeanInstanceAlreadyExistsException
MBeanRegistrationException
NotCompliantMBeanException
public static void unregisterMBean(ObjectName name) throws InstanceNotFoundException, MBeanRegistrationException
name
- objectname of the MBean to unregisterInstanceNotFoundException
MBeanRegistrationException
Copyright © 2019. All rights reserved.