DiagnosticCommandMBean
, ModelMBean
RequiredModelMBean
, StandardEmitterMBean
, StandardMBean
public interface DynamicMBean
Modifier and Type | Method | Description |
---|---|---|
Object |
getAttribute |
Obtain the value of a specific attribute of the Dynamic MBean. |
AttributeList |
getAttributes |
Get the values of several attributes of the Dynamic MBean. |
MBeanInfo |
getMBeanInfo() |
Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object. |
Object |
invoke |
Allows an action to be invoked on the Dynamic MBean. |
void |
setAttribute |
Set the value of a specific attribute of the Dynamic MBean. |
AttributeList |
setAttributes |
Sets the values of several attributes of the Dynamic MBean. |
Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
attribute
- The name of the attribute to be retrievedAttributeNotFoundException
- if specified attribute does not exist or cannot be retrievedMBeanException
- Wraps a java.lang.Exception
thrown by the MBean's getter.ReflectionException
- Wraps a java.lang.Exception
thrown while trying to invoke the getter.void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
attribute
- The identification of the attribute to be set and the value it is to be set to.AttributeNotFoundException
- if specified attribute does not exist or cannot be retrievedInvalidAttributeValueException
- if value specified is not valid for the attributeMBeanException
- Wraps a java.lang.Exception
thrown by the MBean's setter.ReflectionException
- Wraps a java.lang.Exception
thrown while trying to invoke the MBean's setter.AttributeList getAttributes(String[] attributes)
attributes
- A list of the attributes to be retrieved.AttributeList setAttributes(AttributeList attributes)
attributes
- A list of attributes: The identification of the attributes to be set and the values they are to be set to.Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
actionName
- The name of the action to be invoked.params
- An array containing the parameters to be set when the action is invoked.signature
- An array containing the signature of the action. The class objects will be loaded through the same class loader as the one used for loading the MBean on which the action is invoked.MBeanException
- Wraps a java.lang.Exception
thrown by the MBean's invoked method.ReflectionException
- Wraps a java.lang.Exception
thrown while trying to invoke the methodMBeanInfo getMBeanInfo()
MBeanInfo
allowing all attributes and actions exposed by this Dynamic MBean to be retrieved.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.management/javax/management/DynamicMBean.html