public abstract class DynamicMXBeanImpl
extends java.lang.Object
implements javax.management.DynamicMBean
DynamicMBean interface.| Modifier and Type | Field and Description |
|---|---|
protected javax.management.MBeanInfo |
info |
| Constructor and Description |
|---|
DynamicMXBeanImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(java.lang.String attribute) |
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes) |
javax.management.MBeanInfo |
getMBeanInfo() |
protected javax.management.MBeanAttributeInfo |
getPresentAttribute(java.lang.String attributeName,
com.ibm.lang.management.DynamicMXBeanImpl.AttributeAccessType access)
Tests to see if this
DynamicMXBean has an attribute with
the name attributeName. |
protected javax.management.MBeanOperationInfo |
getPresentOperation(java.lang.String actionName,
java.lang.String[] signature)
Tests to see if this
DynamicMXBean has an operation with
the name actionName. |
protected void |
initMBeanInfo(java.lang.String className,
java.lang.String description,
javax.management.MBeanAttributeInfo[] attributes,
javax.management.MBeanConstructorInfo[] constructors,
javax.management.MBeanOperationInfo[] operations,
javax.management.MBeanNotificationInfo[] notifications) |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature) |
void |
setAttribute(javax.management.Attribute attribute) |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes) |
protected void |
setMBeanInfo(javax.management.MBeanInfo info) |
protected void initMBeanInfo(java.lang.String className,
java.lang.String description,
javax.management.MBeanAttributeInfo[] attributes,
javax.management.MBeanConstructorInfo[] constructors,
javax.management.MBeanOperationInfo[] operations,
javax.management.MBeanNotificationInfo[] notifications)
className - The name of the Java class of the MBeandescription - A human readable description of the MBean (optional).attributes - The list of exposed attributes of the MBean.constructors - The list of public constructors of the MBean.operations - The list of operations of the MBean.notifications - The list of notifications emitted.protected void setMBeanInfo(javax.management.MBeanInfo info)
info - The MBeanInfo to be set.public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
getAttributes in interface javax.management.DynamicMBeanpublic javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes in interface javax.management.DynamicMBeanpublic javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo in interface javax.management.DynamicMBeanprotected javax.management.MBeanAttributeInfo getPresentAttribute(java.lang.String attributeName,
com.ibm.lang.management.DynamicMXBeanImpl.AttributeAccessType access)
DynamicMXBean has an attribute with
the name attributeName. If the test is passed, the
MBeanAttributeInforepresenting the attribute is returned.attributeName - the name of the attribute being queriedaccess - an AttributeAccessTypeindication of whether the
caller is looking for a readable or writable attribute.access, an
instance of MBeanAttributeInfo that describes the
attribute, otherwise null.public java.lang.Object getAttribute(java.lang.String attribute)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
getAttribute in interface javax.management.DynamicMBeanjavax.management.AttributeNotFoundExceptionjavax.management.MBeanExceptionjavax.management.ReflectionExceptionpublic void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
setAttribute in interface javax.management.DynamicMBeanjavax.management.AttributeNotFoundExceptionjavax.management.InvalidAttributeValueExceptionjavax.management.MBeanExceptionjavax.management.ReflectionExceptionpublic 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.DynamicMBeanjavax.management.MBeanExceptionjavax.management.ReflectionExceptionprotected javax.management.MBeanOperationInfo getPresentOperation(java.lang.String actionName,
java.lang.String[] signature)
DynamicMXBean has an operation with
the name actionName. If the test is passed, the
MBeanOperationInforepresenting the operation is returned to the
caller.actionName - the name of a possible method on this
DynamicMXBeansignature - the list of parameter types for the named operation in the
correct orderMBeanOperationInfo that describes the operation,
otherwise null.