public class DynamicMBeanProxy extends Object implements DynamicMBean
This class is a MBean that gets registered everytime you mark a class with ManagementController. It dynamicaly reads the
fields and operations contained in a ManagementController class and exposes them to the MBean server. Everytime a client
tries to call an operation or read/write a property inside a ManagementController class, this class will call the appropriate
method and pass the result to the MBean client.
| Constructor and Description |
|---|
DynamicMBeanProxy(ManagedType type) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attribute) |
AttributeList |
getAttributes(String[] attributes) |
ResourceBundle |
getBundle() |
MBeanInfo |
getMBeanInfo() |
Object |
invoke(String actionName,
Object[] params,
String[] signature) |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributes) |
public DynamicMBeanProxy(ManagedType type)
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanpublic Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanpublic ResourceBundle getBundle()
Copyright © 2017 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.