ModelMBeanInfo (Java SE 16 & JDK 16) (original) (raw)

All Known Implementing Classes:

[ModelMBeanInfoSupport](ModelMBeanInfoSupport.html "class in javax.management.modelmbean")


public interface ModelMBeanInfo

This interface is implemented by the ModelMBeanInfo for every ModelMBean. An implementation of this interface must be shipped with every JMX Agent.

Java resources wishing to be manageable instantiate the ModelMBean using the MBeanServer's createMBean method. The resource then sets the ModelMBeanInfo and Descriptors for the ModelMBean instance. The attributes, operations, and notifications exposed via the ModelMBeanInfo for the ModelMBean comprise the management interface and are accessible from MBeans, connectors/adaptors like other MBeans. Through the Descriptors, values and methods in the managed application can be defined and mapped to attributes and operations of the ModelMBean. This mapping can be defined during development in a file or dynamically and programmatically at runtime.

Every ModelMBean which is instantiated in the MBeanServer becomes manageable: its attributes, operations, and notifications become remotely accessible through the connectors/adaptors connected to that MBeanServer. A Java object cannot be registered in the MBeanServer unless it is a JMX compliant MBean. By instantiating a ModelMBean, resources are guaranteed that the MBean is valid. MBeanException and RuntimeOperationsException must be thrown on every public method. This allows for wrapping exceptions from distributed communications (RMI, EJB, etc.)

Since:

1.5

[clone](#clone%28%29)()
Creates and returns a copy of this object.
Returns a ModelMBeanAttributeInfo requested by name.
Returns the list of attributes exposed for management.
Returns the name of the Java class of the MBean described by this MBeanInfo.
Returns the list of the public constructors of the MBean.
Returns a human readable description of the MBean.
[getDescriptor](#getDescriptor%28java.lang.String,java.lang.String%29)​([String](../../../../java.base/java/lang/String.html "class in java.lang") inDescriptorName,[String](../../../../java.base/java/lang/String.html "class in java.lang") inDescriptorType)
Returns a Descriptor requested by name and descriptorType.
Returns a Descriptor array consisting of all Descriptors for the ModelMBeanInfo of type inDescriptorType.
Returns the ModelMBean's descriptor which contains MBean wide policies.
Returns a ModelMBeanNotificationInfo requested by name.
Returns the list of the notifications emitted by the MBean.
Returns a ModelMBeanOperationInfo requested by name.
Returns the list of operations of the MBean.
void
Sets descriptors in the info array of type inDescriptorType for the ModelMBean.
void
Adds or replaces descriptors in the ModelMBeanInfo.
void
Sets the ModelMBean's descriptor.