public class JsonDynamicMBeanImpl extends Object implements DynamicMBean, MBeanRegistration
DynamicMBean used to wrap an MBean registered at the Jolokia MBeanServer and translated
non-native datatype into JSON strings.| Modifier and Type | Field and Description |
|---|---|
static String |
STRING_TYPE |
| Constructor and Description |
|---|
JsonDynamicMBeanImpl(org.jolokia.jmx.JolokiaMBeanServer pJolokiaMBeanServer,
ObjectName pObjectName,
MBeanInfo pInfo,
JsonConvertOptions pConvertOptions)
Construct a DynamicMBean wrapping an original MBean object.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String pAttribute) |
AttributeList |
getAttributes(String[] attributes) |
MBeanInfo |
getMBeanInfo() |
Object |
invoke(String pOperation,
Object[] pParams,
String[] pSignature) |
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
void |
setAttribute(Attribute pAttribute) |
AttributeList |
setAttributes(AttributeList attributes) |
public static final String STRING_TYPE
public JsonDynamicMBeanImpl(org.jolokia.jmx.JolokiaMBeanServer pJolokiaMBeanServer, ObjectName pObjectName, MBeanInfo pInfo, JsonConvertOptions pConvertOptions)
pJolokiaMBeanServer - the hosting Jolokia MBean ServerpObjectName - object name of this MBeanpInfo - the original MBeanInfopConvertOptions - options used for converting return values to JSONpublic Object getAttribute(String pAttribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute pAttribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic Object invoke(String pOperation, Object[] pParams, String[] pSignature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanpublic ObjectName preRegister(MBeanServer server, ObjectName name)
preRegister in interface MBeanRegistrationpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpublic void preDeregister()
preDeregister in interface MBeanRegistrationpublic void postDeregister()
postDeregister in interface MBeanRegistrationCopyright © 2021. All rights reserved.