@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. |
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.MBeanExceptionAttributeNotFoundExceptionInstanceNotFoundExceptionReflectionExceptionMalformedObjectNameExceptionCopyright © 2017. All rights reserved.