Package: javax.management.openmbean
Overview
Provides the open data types and Open MBean descriptor classes. An Open MBean is an MBean where the types of attributes and of operation parameters and return values are built using a small set of predefined Java classes. Open MBeans facilitate operation with remote management programs that do not necessarily have access to application-specific types, including non-Java programs.
Every MBean has an MBeanInfo with information about the MBean itself, and its
attributes, operations, constructors, and notifications. In an
Open MBean, this MBeanInfo implements the OpenMBeanInfo
interface, usually by being an instance of OpenMBeanInfoSupport.
The attribute information returned by MBeanInfo.getAttributes for an Open MBean is an array of
objects implementing OpenMBeanAttributeInfo, usually instances of OpenMBeanAttributeInfoSupport. In addition to the usual
information about attributes, an
OpenMBeanAttributeInfo specifies the OpenType of the attribute.
The possible OpenType values are predefined, which
is what ensures that remote managers will understand them.
Similar remarks apply to the parameter types of operations and constructors, and to the return types of operations.
There is a distinction between an attribute's Java language
type, as returned by getType(), and
its OpenType, as returned by getOpenType(). For example, if the Java language type is
java.lang.String, the OpenType will be
SimpleType.String. If the Java language type is javax.management.openmbean.CompositeData, the
OpenType will be a CompositeType that
describes the items in the CompositeData instances
for the attribute.
