| java.lang.Object javax.management.StandardMBean
All known Subclasses: test.compliance.standard.support.MBeanRunnable, test.compliance.standard.support.MyStandardMBean, test.performance.standard.support.StandardMBeanExtension,
StandardMBean | public class StandardMBean implements DynamicMBean(Code) | | A helper class to allow standard mbeans greater control over their
management interface.
Extending this class actually makes the mbean a dynamic mbean, but
with the convenience of a standard mbean.
author: Adrian Brock. author: Thomas Diesler. version: $Revision: 57200 $ |
Constructor Summary | |
public | StandardMBean(Object implementation, Class mbeanInterface) Construct a DynamicMBean from the given implementation object
and the passed management interface class. | protected | StandardMBean(Class mbeanInterface) |
Method Summary | |
protected void | cacheMBeanInfo(MBeanInfo info) | public Object | getAttribute(String attribute) | public AttributeList | getAttributes(String[] attributes) | protected MBeanInfo | getCachedMBeanInfo() | protected String | getClassName(MBeanInfo info) | protected MBeanConstructorInfo[] | getConstructors(MBeanConstructorInfo[] constructors, Object implementation) | protected String | getDescription(MBeanInfo info) | protected String | getDescription(MBeanFeatureInfo info) | protected String | getDescription(MBeanAttributeInfo info) | protected String | getDescription(MBeanConstructorInfo info) | protected String | getDescription(MBeanOperationInfo info) | protected String | getDescription(MBeanConstructorInfo info, MBeanParameterInfo param, int sequence) | protected String | getDescription(MBeanOperationInfo info, MBeanParameterInfo param, int sequence) | protected int | getImpact(MBeanOperationInfo info) | public Object | getImplementation() | public Class | getImplementationClass() | public MBeanInfo | getMBeanInfo() | final public Class | getMBeanInterface() | protected String | getParameterName(MBeanConstructorInfo info, MBeanParameterInfo param, int sequence) | protected String | getParameterName(MBeanOperationInfo info, MBeanParameterInfo param, int sequence) | public Object | invoke(String actionName, Object[] params, String[] signature) | public void | setAttribute(Attribute attribute) | public AttributeList | setAttributes(AttributeList attributes) | public void | setImplementation(Object implementation) |
StandardMBean | public StandardMBean(Object implementation, Class mbeanInterface) throws NotCompliantMBeanException(Code) | | Construct a DynamicMBean from the given implementation object
and the passed management interface class.
Parameters: implementation - the object implementing the mbean Parameters: mbeanInterface - the management interface of the mbean exception: IllegalArgumentException - for a null implementation exception: NotCompliantMBeanException - if the management interfacedoes not follow the JMX design patterns or the implementationdoes not implement the interface |
StandardMBean | protected StandardMBean(Class mbeanInterface) throws NotCompliantMBeanException(Code) | | Construct a DynamicMBean from this object
and the passed management interface class.
Used in subclassing
Parameters: mbeanInterface - the management interface of the mbean exception: NotCompliantMBeanException - if the management interfacedoes not follow the JMX design patterns or thisdoes not implement the interface |
cacheMBeanInfo | protected void cacheMBeanInfo(MBeanInfo info)(Code) | | Sets the cached mbean info
Parameters: info - the mbeaninfo to cache, can be null to erase the cache |
getCachedMBeanInfo | protected MBeanInfo getCachedMBeanInfo()(Code) | | Retrieve the cached mbean info
the cached mbean info |
getClassName | protected String getClassName(MBeanInfo info)(Code) | | Retrieve the class name of the mbean
Parameters: info - the default mbeaninfo derived by reflection the class name |
getConstructors | protected MBeanConstructorInfo[] getConstructors(MBeanConstructorInfo[] constructors, Object implementation)(Code) | | Retrieve the constructors
Parameters: constructors - the default constructors derived by reflection Parameters: implementation - the implementation the constructors if the implementation is this, otherwise null |
getDescription | protected String getDescription(MBeanInfo info)(Code) | | Retrieve the description of the mbean
Parameters: info - the default mbeaninfo derived by reflection the description |
getDescription | protected String getDescription(MBeanFeatureInfo info)(Code) | | Retrieve the description of the mbean feature
Parameters: info - the default mbeanfeatureinfo derived by reflection the description |
getDescription | protected String getDescription(MBeanAttributeInfo info)(Code) | | Retrieve the description of the mbean attribute
Parameters: info - the default mbeanattributeinfo derived by reflection the description |
getDescription | protected String getDescription(MBeanConstructorInfo info)(Code) | | Retrieve the description of the mbean constructor
Parameters: info - the default mbeanconstructorinfo derived by reflection the description |
getDescription | protected String getDescription(MBeanOperationInfo info)(Code) | | Retrieve the description of the mbean operation
Parameters: info - the default mbeanoperationinfo derived by reflection the description |
getDescription | protected String getDescription(MBeanConstructorInfo info, MBeanParameterInfo param, int sequence)(Code) | | Retrieve the description of the mbean constructor parameter
Parameters: info - the default mbeanconstructorinfo derived by reflection Parameters: param - the parameter information Parameters: sequence - the parameter index, starting with zero the description |
getDescription | protected String getDescription(MBeanOperationInfo info, MBeanParameterInfo param, int sequence)(Code) | | Retrieve the description of the mbean operation parameter
Parameters: info - the default mbeanoperationinfo derived by reflection Parameters: param - the parameter information Parameters: sequence - the parameter index, starting with zero the description |
getImpact | protected int getImpact(MBeanOperationInfo info)(Code) | | Retrieve the impact of the mbean operation
Parameters: info - the default mbeanoperationinfo derived by reflection the impact |
getImplementation | public Object getImplementation()(Code) | | Retrieve the implementation object
the implementation |
getImplementationClass | public Class getImplementationClass()(Code) | | Retrieve the implementation class
the class of the implementation |
getMBeanInterface | final public Class getMBeanInterface()(Code) | | Retrieve the management interface
the management interface |
getParameterName | protected String getParameterName(MBeanConstructorInfo info, MBeanParameterInfo param, int sequence)(Code) | | Retrieve the parameter name for a constructor
Parameters: info - the default mbeanconstructorinfo derived by reflection Parameters: param - the parameter information Parameters: sequence - the parameter index, starting with zero the parameter name |
getParameterName | protected String getParameterName(MBeanOperationInfo info, MBeanParameterInfo param, int sequence)(Code) | | Retrieve the parameter name for an operation
Parameters: info - the default mbeanoperationinfo derived by reflection Parameters: param - the parameter information Parameters: sequence - the parameter index, starting with zero the parameter name |
|
|