|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.management.MBeanInfo
javax.management.modelmbean.ModelMBeanInfoSupport
Support class for ModelMBeanInfo interface.
ModelMBeanInfo,
Serialized Form| Constructor Summary | |
ModelMBeanInfoSupport(ModelMBeanInfo mbi)
Copy constructor for Model MBean info. |
|
ModelMBeanInfoSupport(String className,
String description,
ModelMBeanAttributeInfo[] modelAttributes,
ModelMBeanConstructorInfo[] modelConstructors,
ModelMBeanOperationInfo[] modelOperations,
ModelMBeanNotificationInfo[] modelNotifications)
Creates an instance of Model MBean info implementation based on the given values. |
|
ModelMBeanInfoSupport(String className,
String description,
ModelMBeanAttributeInfo[] modelAttributes,
ModelMBeanConstructorInfo[] modelConstructors,
ModelMBeanOperationInfo[] modelOperations,
ModelMBeanNotificationInfo[] modelNotifications,
Descriptor mbeandescriptor)
Creates an instance of Model MBean info implementation based on the given values and descriptor. |
|
| Method Summary | |
Object |
clone()
|
ModelMBeanAttributeInfo |
getAttribute(String inName)
Returns the attribute info for the named attribute, or null if there is none. |
MBeanAttributeInfo[] |
getAttributes()
|
ModelMBeanConstructorInfo |
getConstructor(String inName)
Returns the constructor info for the named attribute, or null if there is none. |
MBeanConstructorInfo[] |
getConstructors()
|
Descriptor |
getDescriptor(String descrName)
Deprecated. use getDescriptor(String, String) instead. |
Descriptor |
getDescriptor(String descrName,
String descrType)
Returns a descriptor of a management interface element matching the given name and type. |
Descriptor[] |
getDescriptors(String descrType)
Returns the descriptors of an Model MBean for a given management interface element type. |
Descriptor |
getMBeanDescriptor()
|
ModelMBeanNotificationInfo |
getNotification(String inName)
Returns the attribute info for the named attribute, or null if there is none. |
MBeanNotificationInfo[] |
getNotifications()
|
ModelMBeanOperationInfo |
getOperation(String inName)
Returns the operation info for the named attribute, or null if there is none. |
MBeanOperationInfo[] |
getOperations()
|
void |
setDescriptor(Descriptor descr,
String descrType)
Adds or replaces the descriptor in this Model MBean. |
void |
setDescriptors(Descriptor[] inDescriptors)
Adds or replaces the descriptors in this Model MBean. |
void |
setMBeanDescriptor(Descriptor inDescriptor)
Sets the ModelMBean's descriptor. |
| Methods inherited from class javax.management.MBeanInfo |
equals, getClassName, getDescription, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.management.modelmbean.ModelMBeanInfo |
getClassName, getDescription |
| Constructor Detail |
public ModelMBeanInfoSupport(ModelMBeanInfo mbi)
mbi - Model MBean info used to initialize this instancepublic ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] modelAttributes, ModelMBeanConstructorInfo[] modelConstructors, ModelMBeanOperationInfo[] modelOperations, ModelMBeanNotificationInfo[] modelNotifications)
className - name of the Model MBean implementation classdescription - human readable description string for this Model MBeanmodelAttributes - an array of Model MBean attribute metadata to describe
the management modelAttributes of this Model MBeanmodelConstructors - an array of Model MBean constructor metadata that
describes the modelConstructors of this Model MBean
implementation classmodelOperations - an array of Model MBean operation metadata to describe
the management modelOperations of this Model MBeanmodelNotifications - an array of Model MBean notification metadata to
describe the management modelNotifications of this
Model MBeanpublic ModelMBeanInfoSupport(String className, String description, ModelMBeanAttributeInfo[] modelAttributes, ModelMBeanConstructorInfo[] modelConstructors, ModelMBeanOperationInfo[] modelOperations, ModelMBeanNotificationInfo[] modelNotifications, Descriptor mbeandescriptor) throws RuntimeOperationsException
className - name of the Model MBean implementation classdescription - human readable description string for this Model MBeanmodelAttributes - an array of Model MBean attribute metadata to describe
the management modelAttributes of this Model MBeanmodelConstructors - an array of Model MBean constructor metadata that
describes the modelConstructors of this Model MBean
implementation classmodelOperations - an array of Model MBean operation metadata to describe
the management modelOperations of this Model MBeanmodelNotifications - an array of Model MBean notification metadata to
describe the management modelNotifications of this
Model MBeanmbeandescriptor - descriptor for the MBean| Method Detail |
public Descriptor[] getDescriptors(String descrType) throws MBeanException
-Using ALL_DESCRIPTORS returns descriptors for the MBean, and all its modelAttributes, modelOperations, modelNotifications and modelConstructors.MBEAN_DESCRIPTOR-ATTRIBUTE_DESCRIPTOR-OPERATION_DESCRIPTOR-NOTIFICATION_DESCRIPTOR-CONSTRUCTOR_DESCRIPTOR-ALL_DESCRIPTORS
getDescriptors in interface ModelMBeanInfodescrType - descriptor type string
MBeanException - for no good reasonpublic Descriptor getDescriptor(String descrName, String descrType) throws MBeanException
-MBEAN_DESCRIPTOR-ATTRIBUTE_DESCRIPTOR-OPERATION_DESCRIPTOR-NOTIFICATION_DESCRIPTOR-CONSTRUCTOR_DESCRIPTOR
getDescriptor in interface ModelMBeanInfodescrName - name of the descriptordescrType - type of the descriptor
RuntimeOperationsException - if an illegal descriptor type was given
MBeanExceptionpublic void setDescriptors(Descriptor[] inDescriptors) throws MBeanException
setDescriptors in interface ModelMBeanInfoinDescriptors - array of descriptors
MBeanExceptionpublic void setDescriptor(Descriptor descr, String descrType) throws MBeanException
The descriptorType must contain one of the following values:
-MBEAN_DESCRIPTOR-ATTRIBUTE_DESCRIPTOR-OPERATION_DESCRIPTOR-NOTIFICATION_DESCRIPTOR-CONSTRUCTOR_DESCRIPTOR
setDescriptor in interface ModelMBeanInfodescr - descriptor to setdescrType - descriptor type string, can be null
RuntimeOperationsException - if descr is null, or
descriptor is not valid.
MBeanExceptionpublic ModelMBeanAttributeInfo getAttribute(String inName) throws MBeanException
getAttribute in interface ModelMBeanInfoMBeanExceptionpublic ModelMBeanOperationInfo getOperation(String inName) throws MBeanException
getOperation in interface ModelMBeanInfoMBeanExceptionpublic ModelMBeanConstructorInfo getConstructor(String inName) throws MBeanException
MBeanExceptionpublic ModelMBeanNotificationInfo getNotification(String inName) throws MBeanException
getNotification in interface ModelMBeanInfoMBeanExceptionpublic MBeanAttributeInfo[] getAttributes()
getAttributes in interface ModelMBeanInfogetAttributes in class MBeanInfopublic MBeanOperationInfo[] getOperations()
getOperations in interface ModelMBeanInfogetOperations in class MBeanInfopublic MBeanConstructorInfo[] getConstructors()
getConstructors in interface ModelMBeanInfogetConstructors in class MBeanInfopublic MBeanNotificationInfo[] getNotifications()
getNotifications in interface ModelMBeanInfogetNotifications in class MBeanInfopublic Descriptor getMBeanDescriptor() throws MBeanException
getMBeanDescriptor in interface ModelMBeanInfoMBeanExceptionpublic void setMBeanDescriptor(Descriptor inDescriptor) throws MBeanException, RuntimeOperationsException
setMBeanDescriptor in interface ModelMBeanInfopublic Descriptor getDescriptor(String descrName) throws MBeanException
getDescriptor(String, String) instead.
MBeanExceptionpublic Object clone()
clone in interface ModelMBeanInfoclone in class MBeanInfo
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||