public class IntrospectionMBean
extends java.lang.Object
implements javax.management.DynamicMBean
Constructor and Description |
---|
IntrospectionMBean(java.lang.Object impl,
java.lang.Class mbeanInterface)
Makes a DynamicMBean.
|
IntrospectionMBean(java.lang.Object impl,
java.lang.Class mbeanInterface,
boolean isLowercaseAttributeNames)
Makes a DynamicMBean.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String attribute)
Returns an attribute value.
|
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes)
Returns matching attribute values.
|
java.lang.Object |
getImplementation()
Returns the implementation.
|
javax.management.MBeanInfo |
getMBeanInfo()
Returns the introspection information for the MBean.
|
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
Invokes a method on the bean.
|
void |
setAttribute(javax.management.Attribute attribute)
Sets an attribute value.
|
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes)
Sets attribute values.
|
public IntrospectionMBean(java.lang.Object impl, java.lang.Class mbeanInterface) throws javax.management.NotCompliantMBeanException
javax.management.NotCompliantMBeanException
public IntrospectionMBean(java.lang.Object impl, java.lang.Class mbeanInterface, boolean isLowercaseAttributeNames) throws javax.management.NotCompliantMBeanException
isLowercaseAttributeNames
- true if attributes should have first
letter lowercasedjavax.management.NotCompliantMBeanException
public java.lang.Object getImplementation()
public java.lang.Object getAttribute(java.lang.String attribute) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public void setAttribute(javax.management.Attribute attribute) throws javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException
setAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
getAttributes
in interface javax.management.DynamicMBean
public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes
in interface javax.management.DynamicMBean
public java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature) throws javax.management.MBeanException, javax.management.ReflectionException
invoke
in interface javax.management.DynamicMBean
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo
in interface javax.management.DynamicMBean