|
|||||||||
| Home >> All >> javax >> management >> [ modelmbean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.management.modelmbean
Class ModelMBeanInfoSupport

java.lang.Objectjavax.management.MBeanInfo
javax.management.modelmbean.ModelMBeanInfoSupport
- All Implemented Interfaces:
- java.lang.Cloneable, ModelMBeanInfo, java.io.Serializable
- public class ModelMBeanInfoSupport
- extends javax.management.MBeanInfo
- implements ModelMBeanInfo, java.io.Serializable
- extends javax.management.MBeanInfo
Support class for ModelMBeanInfo interface.
- Version:
- $Revision: 1.9.4.1 $
Revisions:
20020319 Juha Lindfors:
- Fixed ArrayIndexOutOfBoundsException bug in getOperationDescriptors()
20020525 Juha Lindfors:
- Fixed the getDescriptor(name, type) exception behavior to match RI 1.0 javadoc: RuntimeOperationsException is thrown in case of a illegal descriptor type string.
- setDescriptors() now implemented and no longer throws 'NYI' error.
- clone() implemented
20020715 Adrian Brock:
- Serialization
| Field Summary | |
private javax.management.Descriptor |
mbeanDescriptor
MBean descriptor for this Model MBean. |
private static java.io.ObjectStreamField[] |
serialPersistentFields
|
private static long |
serialVersionUID
|
| Fields inherited from class javax.management.MBeanInfo |
attributes, className, constructors, description, notifications, operations |
| Constructor Summary | |
ModelMBeanInfoSupport(ModelMBeanInfo mbi)
Copy constructor for Model MBean info. |
|
ModelMBeanInfoSupport(java.lang.String className,
java.lang.String description,
ModelMBeanAttributeInfo[] attributes,
ModelMBeanConstructorInfo[] constructors,
ModelMBeanOperationInfo[] operations,
ModelMBeanNotificationInfo[] notifications)
Creates an instance of Model MBean info implementation based on the given values. |
|
ModelMBeanInfoSupport(java.lang.String className,
java.lang.String description,
ModelMBeanAttributeInfo[] attributes,
ModelMBeanConstructorInfo[] constructors,
ModelMBeanOperationInfo[] operations,
ModelMBeanNotificationInfo[] notifications,
javax.management.Descriptor mbeandescriptor)
Creates an instance of Model MBean info implementation based on the given values and descriptor. |
|
| Methods inherited from class javax.management.MBeanInfo |
getClassName, getDescription, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.management.modelmbean.ModelMBeanInfo |
getClassName, getDescription |
| Field Detail |
mbeanDescriptor
private javax.management.Descriptor mbeanDescriptor
- MBean descriptor for this Model MBean.
serialVersionUID
private static final long serialVersionUID
serialPersistentFields
private static final java.io.ObjectStreamField[] serialPersistentFields
| Constructor Detail |
ModelMBeanInfoSupport
public ModelMBeanInfoSupport(ModelMBeanInfo mbi)
- Copy constructor for Model MBean info. This instance is initialized with
the values of the given Model MBean info.
ModelMBeanInfoSupport
public ModelMBeanInfoSupport(java.lang.String className, java.lang.String description, ModelMBeanAttributeInfo[] attributes, ModelMBeanConstructorInfo[] constructors, ModelMBeanOperationInfo[] operations, ModelMBeanNotificationInfo[] notifications)
- Creates an instance of Model MBean info implementation based on the given
values. The Model MBean is configured with a default MBean descriptor.
ModelMBeanInfoSupport
public ModelMBeanInfoSupport(java.lang.String className, java.lang.String description, ModelMBeanAttributeInfo[] attributes, ModelMBeanConstructorInfo[] constructors, ModelMBeanOperationInfo[] operations, ModelMBeanNotificationInfo[] notifications, javax.management.Descriptor mbeandescriptor)
- Creates an instance of Model MBean info implementation based on the given
values and descriptor.
| Method Detail |
getDescriptors
public javax.management.Descriptor[] getDescriptors(java.lang.String descrType) throws javax.management.MBeanException
- Returns the descriptors of an Model MBean for a given management
interface element type. The descriptor type must be one of the following:
- MBEAN_DESCRIPTOR 55 - ATTRIBUTE_DESCRIPTOR 55 - OPERATION_DESCRIPTOR 55 - NOTIFICATION_DESCRIPTOR 55 - CONSTRUCTOR_DESCRIPTOR 55 - ALL_DESCRIPTORS 55
Using ALL_DESCRIPTORS returns descriptors for the MBean, and all its attributes, operations, notifications and constructors.- Specified by:
getDescriptorsin interfaceModelMBeanInfo
getDescriptor
public javax.management.Descriptor getDescriptor(java.lang.String descrName, java.lang.String descrType) throws javax.management.MBeanException
- Returns a descriptor of a management interface element matching the given
name and type. The descriptor type string must be one of the following:
- MBEAN_DESCRIPTOR 55 - ATTRIBUTE_DESCRIPTOR 55 - OPERATION_DESCRIPTOR 55 - NOTIFICATION_DESCRIPTOR 55 - CONSTRUCTOR_DESCRIPTOR 55
- Specified by:
getDescriptorin interfaceModelMBeanInfo
setDescriptors
public void setDescriptors(javax.management.Descriptor[] inDescriptors) throws javax.management.MBeanException
- Adds or replaces the descriptors in this Model MBean. All descriptors
must be valid. Null references will be ignored.
- Specified by:
setDescriptorsin interfaceModelMBeanInfo
setDescriptor
public void setDescriptor(javax.management.Descriptor descr, java.lang.String descrType) throws javax.management.MBeanException
- Adds or replaces the descriptor in this Model MBean. Descriptor must be
valid. If descrType is not specified, the descriptorType
field of the given descriptor is used.
The descriptorType must contain one of the following values:
- MBEAN_DESCRIPTOR 55 - ATTRIBUTE_DESCRIPTOR 55 - OPERATION_DESCRIPTOR 55 - NOTIFICATION_DESCRIPTOR 55 - CONSTRUCTOR_DESCRIPTOR 55
- Specified by:
setDescriptorin interfaceModelMBeanInfo
getAttribute
public ModelMBeanAttributeInfo getAttribute(java.lang.String inName) throws javax.management.MBeanException
- Specified by:
getAttributein interfaceModelMBeanInfo
getOperation
public ModelMBeanOperationInfo getOperation(java.lang.String inName) throws javax.management.MBeanException
- Specified by:
getOperationin interfaceModelMBeanInfo
getConstructor
public ModelMBeanConstructorInfo getConstructor(java.lang.String inName) throws javax.management.MBeanException
getNotification
public ModelMBeanNotificationInfo getNotification(java.lang.String inName) throws javax.management.MBeanException
- Specified by:
getNotificationin interfaceModelMBeanInfo
getAttributes
public javax.management.MBeanAttributeInfo[] getAttributes()
- Specified by:
getAttributesin interfaceModelMBeanInfo
getOperations
public javax.management.MBeanOperationInfo[] getOperations()
- Specified by:
getOperationsin interfaceModelMBeanInfo
getConstructors
public javax.management.MBeanConstructorInfo[] getConstructors()
- Specified by:
getConstructorsin interfaceModelMBeanInfo
getNotifications
public javax.management.MBeanNotificationInfo[] getNotifications()
- Specified by:
getNotificationsin interfaceModelMBeanInfo
getMBeanDescriptor
public javax.management.Descriptor getMBeanDescriptor() throws javax.management.MBeanException
- Specified by:
getMBeanDescriptorin interfaceModelMBeanInfo
setMBeanDescriptor
public void setMBeanDescriptor(javax.management.Descriptor inMBeanDescriptor) throws javax.management.MBeanException
- Specified by:
setMBeanDescriptorin interfaceModelMBeanInfo
getDescriptor
public javax.management.Descriptor getDescriptor(java.lang.String descrName) throws javax.management.MBeanException
- Deprecated. use
getDescriptor(String, String)55 instead.
clone
public java.lang.Object clone()
- Description copied from class:
java.lang.Object - This method may be called to create a new copy of the
Object. The typical behavior is as follows:
o == o.clone()is falseo.getClass() == o.clone().getClass()is trueo.equals(o)is true
However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object)>
Object.equals(Object)55 .If the Object you call clone() on does not implement java.lang.Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.
Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.
All array types implement Cloneable, and override this method as follows (it should never fail):
public Object clone() { try { super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(e.getMessage()); } }- Specified by:
clonein interfaceModelMBeanInfo
addDefaultMBeanDescriptorFields
private void addDefaultMBeanDescriptorFields(javax.management.Descriptor descr)
createDefaultDescriptor
private javax.management.Descriptor createDefaultDescriptor(java.lang.String className)
getAttributeDescriptors
private java.util.Map getAttributeDescriptors()
getOperationDescriptors
private java.util.Map getOperationDescriptors()
getConstructorDescriptors
private java.util.Map getConstructorDescriptors()
getNotificationDescriptors
private java.util.Map getNotificationDescriptors()
readObject
private void readObject(java.io.ObjectInputStream ois) throws java.io.IOException, java.lang.ClassNotFoundException
writeObject
private void writeObject(java.io.ObjectOutputStream oos) throws java.io.IOException
|
|||||||||
| Home >> All >> javax >> management >> [ modelmbean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC