|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An MBean is an OpenMBean when its getMBeanInfo() returns an MBeanInfo implementing this interface and extending javax.management.MBeanInfo.
OpenMBeanInfoSupport
is an example of such a class.
The MBean info classes should be the OpenInfo versions. e.g.
an OpenMBeanAttributeInfo
instead of MBeanAttributeInfo.
Method Summary | |
boolean |
equals(Object obj)
Compares an object for equality with the implementing class. |
MBeanAttributeInfo[] |
getAttributes()
Retrieve an array of OpenMBeanAttributeInfos describing each attribute of the open mbean. |
String |
getClassName()
Retrieve the fully qualified class name of the open MBean the implementation of this interface describes. |
MBeanConstructorInfo[] |
getConstructors()
Retrieve an array of OpenMBeanConstructorInfos describing each constructor of the open mbean. |
String |
getDescription()
Retrieve a human readable description of the open MBean the implementation of this interface describes. |
MBeanNotificationInfo[] |
getNotifications()
Retrieve an array of MBeanNotificationInfos describing each notification of the open mbean. |
MBeanOperationInfo[] |
getOperations()
Retrieve an array of OpenMBeanOperationInfos describing each operation of the open mbean. |
int |
hashCode()
Generates a hashcode for the implementation. |
String |
toString()
A string representation of the open mbean info. |
Method Detail |
public String getClassName()
public String getDescription()
public MBeanAttributeInfo[] getAttributes()
Each instance should also implement OpenMBeanAttributeInfo
public MBeanOperationInfo[] getOperations()
Each instance should also implement OpenMBeanOperationInfo
public MBeanConstructorInfo[] getConstructors()
Each instance should also implement OpenMBeanConstructorInfo
public MBeanNotificationInfo[] getNotifications()
public boolean equals(Object obj)
The object is not null
The object implements the open mbean info interface
The getClassName() methods return strings that are equal
The information objects (attributes, constructors, operations and
notifications) are the equal
obj
- the object to test
public int hashCode()
The hashcode is the sum of the hashcodes for
getClassName()
java.util.HashSet(java.util.Arrays.asList(getAttributes()).hashCode()
java.util.HashSet(java.util.Arrays.asList(getConstructors()).hashCode()
java.util.HashSet(java.util.Arrays.asList(getOperations()).hashCode()
java.util.HashSet(java.util.Arrays.asList(getNotifications()).hashCode()
public String toString()
It is made up of
The implementing class
getClassName()
toString() for each of the info arrays
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |