java.lang.Objectjavax.management.MBeanInfo
All Implemented Interfaces:
Cloneable, DescriptorRead, java$io$Serializable
Direct Known Subclasses:
OpenMBeanInfoSupport, ModelMBeanInfoSupport
Describes the management interface exposed by an MBean; that is, the set of attributes and operations which are available for management operations. Instances of this class are immutable. Subclasses may be mutable but this is not recommended.
Usually the {@code MBeanInfo} for any given MBean does not change over the lifetime of that MBean. Dynamic MBeans can change their {@code MBeanInfo} and in that case it is recommended that they emit a Notification with a {@linkplain Notification#getType() type} of {@code "jmx.mbean.info.changed"} and a {@linkplain Notification#getUserData() userData} that is the new {@code MBeanInfo}. This is not required, but provides a conventional way for clients of the MBean to discover the change. See also the immutableInfo and infoTimeout fields in the {@code MBeanInfo} Descriptor .
The contents of the MBeanInfo
for a Dynamic MBean
are determined by its getMBeanInfo() method. This includes Open MBeans and Model
MBeans, which are kinds of Dynamic MBeans.
The contents of the MBeanInfo
for a Standard MBean
are determined by the MBean server as follows:
getName
, isName
, or
setName
method that conforms to the conventions
for Standard MBeans;
The description returned by #getDescription() and the descriptions of the contained attributes and operations are not specified.
The remaining details of the MBeanInfo
for a
Standard MBean are not specified. This includes the description of
any contained constructors, and notifications; the names
of parameters to constructors and operations; and the descriptions of
constructor parameters.
1.5
- Field Summary | ||
---|---|---|
static final long | serialVersionUID |
Constructor: |
---|
MBeanInfo .
|
MBeanInfo .
|
Method from javax.management.MBeanInfo Summary: |
---|
arrayGettersSafe, clone, equals, getAttributes, getClassName, getConstructors, getDescription, getDescriptor, getNotifications, getOperations, hashCode, toString |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.management.MBeanInfo Detail: |
---|
subclass is known to preserve the
immutability of immutableClass . The class
immutableClass is a reference class that is known
to be immutable. The subclass subclass is
considered immutable if it does not override any public method
of immutableClass whose name begins with "get".
This is obviously not an infallible test for immutability,
but it works for the public interfaces of the MBean*Info classes. |
Returns a shallow clone of this instance. The clone is obtained by simply calling super.clone(), thus calling the default native shallow cloning mechanism implemented by Object.clone(). No deeper cloning of any internal field is made. Since this class is immutable, the clone method is chiefly of interest to subclasses. |
Compare this MBeanInfo to another. Two MBeanInfo objects are equal if and only if they return equal values for #getClassName() , for #getDescription() , and for #getDescriptor() , and the arrays returned by the two objects for #getAttributes() , #getOperations() , #getConstructors() , and #getNotifications() are pairwise equal. Here "equal" means Object#equals(Object) , not identity. If two MBeanInfo objects return the same values in one of their arrays but in a different order then they are not equal. |
MBeanAttributeInfo object.
The returned array is a shallow copy of the internal array,
which means that it is a copy of the internal array of
references to the MBeanAttributeInfo objects
but that each referenced MBeanAttributeInfo object is not copied. |
MBeanInfo . |
Returns the list of the public constructors of the MBean.
Each constructor is described by an
The returned array is a shallow copy of the internal array,
which means that it is a copy of the internal array of
references to the The returned list is not necessarily exhaustive. That is, the MBean may have a public constructor that is not in the list. In this case, the MBean server can construct another instance of this MBean's class using that constructor, even though it is not listed here. |
|
|
MBeanNotificationInfo object.
The returned array is a shallow copy of the internal array,
which means that it is a copy of the internal array of
references to the MBeanNotificationInfo objects
but that each referenced MBeanNotificationInfo object is not copied. |
MBeanOperationInfo object.
The returned array is a shallow copy of the internal array,
which means that it is a copy of the internal array of
references to the MBeanOperationInfo objects
but that each referenced MBeanOperationInfo object is not copied. |
|
|