|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.MBeanInfo (src)
javax.management.modelmbean.ModelMBeanInfoSupport
Support class for ModelMBeanInfo interface.
ModelMBeanInfo
(src) ,
Serialized FormConstructor Summary | |
ModelMBeanInfoSupport(ModelMBeanInfo (src) mbi)
Copy constructor for Model MBean info. |
|
ModelMBeanInfoSupport(java.lang.String className,
java.lang.String description,
ModelMBeanAttributeInfo (src) [] modelAttributes,
ModelMBeanConstructorInfo (src) [] modelConstructors,
ModelMBeanOperationInfo (src) [] modelOperations,
ModelMBeanNotificationInfo (src) [] modelNotifications)
Creates an instance of Model MBean info implementation based on the given values. |
|
ModelMBeanInfoSupport(java.lang.String className,
java.lang.String description,
ModelMBeanAttributeInfo (src) [] modelAttributes,
ModelMBeanConstructorInfo (src) [] modelConstructors,
ModelMBeanOperationInfo (src) [] modelOperations,
ModelMBeanNotificationInfo (src) [] modelNotifications,
Descriptor (src) mbeandescriptor)
Creates an instance of Model MBean info implementation based on the given values and descriptor. |
Method Summary | |
java.lang.Object |
clone()
|
ModelMBeanAttributeInfo (src) |
getAttribute(java.lang.String inName)
Returns the attribute info for the named attribute, or null if there is none. |
MBeanAttributeInfo (src) [] |
getAttributes()
|
ModelMBeanConstructorInfo (src) |
getConstructor(java.lang.String inName)
Returns the constructor info for the named attribute, or null if there is none. |
MBeanConstructorInfo (src) [] |
getConstructors()
|
Descriptor (src) |
getDescriptor(java.lang.String descrName)
Deprecated. use getDescriptor(String, String) instead. |
Descriptor (src) |
getDescriptor(java.lang.String descrName,
java.lang.String descrType)
Returns a descriptor of a management interface element matching the given name and type. |
Descriptor (src) [] |
getDescriptors(java.lang.String descrType)
Returns the descriptors of an Model MBean for a given management interface element type. |
Descriptor (src) |
getMBeanDescriptor()
|
ModelMBeanNotificationInfo (src) |
getNotification(java.lang.String inName)
Returns the attribute info for the named attribute, or null if there is none. |
MBeanNotificationInfo (src) [] |
getNotifications()
|
ModelMBeanOperationInfo (src) |
getOperation(java.lang.String inName)
Returns the operation info for the named attribute, or null if there is none. |
MBeanOperationInfo (src) [] |
getOperations()
|
void |
setDescriptor(Descriptor (src) descr,
java.lang.String descrType)
Adds or replaces the descriptor in this Model MBean. |
void |
setDescriptors(Descriptor (src) [] inDescriptors)
Adds or replaces the descriptors in this Model MBean. |
void |
setMBeanDescriptor(Descriptor (src) inDescriptor)
Sets the ModelMBean's descriptor. |
Methods inherited from class javax.management.MBeanInfo (src) |
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 (src) |
getClassName, getDescription |
Constructor Detail |
public ModelMBeanInfoSupport(ModelMBeanInfo (src) mbi)
mbi
- Model MBean info used to initialize this instancepublic ModelMBeanInfoSupport(java.lang.String className, java.lang.String description, ModelMBeanAttributeInfo (src) [] modelAttributes, ModelMBeanConstructorInfo (src) [] modelConstructors, ModelMBeanOperationInfo (src) [] modelOperations, ModelMBeanNotificationInfo (src) [] 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(java.lang.String className, java.lang.String description, ModelMBeanAttributeInfo (src) [] modelAttributes, ModelMBeanConstructorInfo (src) [] modelConstructors, ModelMBeanOperationInfo (src) [] modelOperations, ModelMBeanNotificationInfo (src) [] modelNotifications, Descriptor (src) mbeandescriptor) throws RuntimeOperationsException (src)
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 MBeanMethod Detail |
public Descriptor (src) [] getDescriptors(java.lang.String descrType) throws MBeanException (src)
-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 ModelMBeanInfo (src)
descrType
- descriptor type string
MBeanException (src)
- for no good reasonpublic Descriptor (src) getDescriptor(java.lang.String descrName, java.lang.String descrType) throws MBeanException (src)
-MBEAN_DESCRIPTOR
-ATTRIBUTE_DESCRIPTOR
-OPERATION_DESCRIPTOR
-NOTIFICATION_DESCRIPTOR
-CONSTRUCTOR_DESCRIPTOR
getDescriptor
in interface ModelMBeanInfo (src)
descrName
- name of the descriptordescrType
- type of the descriptor
RuntimeOperationsException (src)
- if an illegal descriptor type was given
MBeanException (src)
public void setDescriptors(Descriptor (src) [] inDescriptors) throws MBeanException (src)
setDescriptors
in interface ModelMBeanInfo (src)
inDescriptors
- array of descriptors
MBeanException (src)
public void setDescriptor(Descriptor (src) descr, java.lang.String descrType) throws MBeanException (src)
The descriptorType must contain one of the following values:
-MBEAN_DESCRIPTOR
-ATTRIBUTE_DESCRIPTOR
-OPERATION_DESCRIPTOR
-NOTIFICATION_DESCRIPTOR
-CONSTRUCTOR_DESCRIPTOR
setDescriptor
in interface ModelMBeanInfo (src)
descr
- descriptor to setdescrType
- descriptor type string, can be null
RuntimeOperationsException (src)
- if descr is null, or
descriptor is not valid.
MBeanException (src)
public ModelMBeanAttributeInfo (src) getAttribute(java.lang.String inName) throws MBeanException (src)
getAttribute
in interface ModelMBeanInfo (src)
MBeanException (src)
public ModelMBeanOperationInfo (src) getOperation(java.lang.String inName) throws MBeanException (src)
getOperation
in interface ModelMBeanInfo (src)
MBeanException (src)
public ModelMBeanConstructorInfo (src) getConstructor(java.lang.String inName) throws MBeanException (src)
MBeanException (src)
public ModelMBeanNotificationInfo (src) getNotification(java.lang.String inName) throws MBeanException (src)
getNotification
in interface ModelMBeanInfo (src)
MBeanException (src)
public MBeanAttributeInfo (src) [] getAttributes()
getAttributes
in interface ModelMBeanInfo (src)
getAttributes
in class MBeanInfo (src)
public MBeanOperationInfo (src) [] getOperations()
getOperations
in interface ModelMBeanInfo (src)
getOperations
in class MBeanInfo (src)
public MBeanConstructorInfo (src) [] getConstructors()
getConstructors
in interface ModelMBeanInfo (src)
getConstructors
in class MBeanInfo (src)
public MBeanNotificationInfo (src) [] getNotifications()
getNotifications
in interface ModelMBeanInfo (src)
getNotifications
in class MBeanInfo (src)
public Descriptor (src) getMBeanDescriptor() throws MBeanException (src)
getMBeanDescriptor
in interface ModelMBeanInfo (src)
MBeanException (src)
public void setMBeanDescriptor(Descriptor (src) inDescriptor) throws MBeanException (src) , RuntimeOperationsException (src)
setMBeanDescriptor
in interface ModelMBeanInfo (src)
MBeanException (src)
RuntimeOperationsException (src)
public Descriptor (src) getDescriptor(java.lang.String descrName) throws MBeanException (src)
getDescriptor(String, String)
instead.
MBeanException (src)
public java.lang.Object clone()
clone
in interface ModelMBeanInfo (src)
clone
in class MBeanInfo (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |