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 DynamicMBean
AttributeNotFoundException
MBeanException
ReflectionException
public void setAttribute(Attribute pAttribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute
in interface DynamicMBean
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
public Object invoke(String pOperation, Object[] pParams, String[] pSignature) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
MBeanException
ReflectionException
public AttributeList getAttributes(String[] attributes)
getAttributes
in interface DynamicMBean
public AttributeList setAttributes(AttributeList attributes)
setAttributes
in interface DynamicMBean
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
public ObjectName preRegister(MBeanServer server, ObjectName name)
preRegister
in interface MBeanRegistration
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister()
preDeregister
in interface MBeanRegistration
public void postDeregister()
postDeregister
in interface MBeanRegistration
Copyright © 2019. All rights reserved.