@Singleton public class MBeanServerDelegate extends Object
| Constructor and Description |
|---|
MBeanServerDelegate() |
| Modifier and Type | Method and Description |
|---|---|
MBeanInfo |
getMBean(String mbeanname)
Returns an
MBeanInfo object. |
Object |
getMBeanAttribute(String mbeanname,
String attributename)
Returns an MBean attribute in the form of an
Object. |
AttributeList |
getMBeanAttributes(String mbeanname,
String[] attributenames)
Retrieves the values of several attributes of a named MBean.
|
public MBeanInfo getMBean(String mbeanname) throws InstanceNotFoundException, IntrospectionException, ReflectionException, MalformedObjectNameException
MBeanInfo object.
The mbeanname argument must be a valid ObjectName.mbeanname - The value of the MBean ObjectName.MBeanInfo returned for the mbeanname provided.InstanceNotFoundExceptionIntrospectionExceptionReflectionExceptionMalformedObjectNameExceptionpublic Object getMBeanAttribute(String mbeanname, String attributename) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, MalformedObjectNameException
Object.
The mbeanname argument must be a valid ObjectName. The attributename
argument is a specifier relative to the mbeanname argument.mbeanname - The value of the MBean ObjectNameattributename - The name of the attribute to get from the mbeanname on the MBeanServer.Object representing the MBean attribute requested.MBeanExceptionAttributeNotFoundExceptionInstanceNotFoundExceptionReflectionExceptionMalformedObjectNameExceptionpublic AttributeList getMBeanAttributes(String mbeanname, String[] attributenames) throws InstanceNotFoundException, MalformedObjectNameException, ReflectionException
AttributeList.mbeanname - The object name of the MBean from which the attributes are retrieved.attributenames - A list of the attributes to be retrieved.InstanceNotFoundExceptionMalformedObjectNameExceptionReflectionExceptionCopyright © 2019. All rights reserved.