|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.MBeanInfo javax.management.openmbean.OpenMBeanInfoSupport
OpenMBeanInfo implementation
Constructor Summary | |
OpenMBeanInfoSupport(String className,
String description,
OpenMBeanAttributeInfo[] attributes,
OpenMBeanConstructorInfo[] constructors,
OpenMBeanOperationInfo[] operations,
MBeanNotificationInfo[] notifications)
Contruct an OpenMBeanInfoSupport |
Method Summary | |
boolean |
equals(Object obj)
Compares an object for equality with the implementing class. |
int |
hashCode()
Generates a hashcode for the implementation. |
String |
toString()
A string representation of the open mbean info. |
Methods inherited from class javax.management.MBeanInfo |
clone, getAttributes, getClassName, getConstructors, getDescription, getNotifications, getOperations |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.management.openmbean.OpenMBeanInfo |
getAttributes, getClassName, getConstructors, getDescription, getNotifications, getOperations |
Constructor Detail |
public OpenMBeanInfoSupport(String className, String description, OpenMBeanAttributeInfo[] attributes, OpenMBeanConstructorInfo[] constructors, OpenMBeanOperationInfo[] operations, MBeanNotificationInfo[] notifications)
className
- cannot be null or emptydescription
- cannot be null or emptyattributes
- the open mbean's attributesconstructors
- the open mbean's constructorsoperations
- the open mbean's operationsnotifications
- the open mbean's notifications
IllegalArgumentException
- when one of the above
constraints is not satisfiedMethod Detail |
public boolean equals(Object obj)
OpenMBeanInfo
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
equals
in interface OpenMBeanInfo
equals
in class MBeanInfo
public int hashCode()
OpenMBeanInfo
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()
hashCode
in interface OpenMBeanInfo
hashCode
in class MBeanInfo
public String toString()
OpenMBeanInfo
It is made up of
The implementing class
getClassName()
toString() for each of the info arrays
toString
in interface OpenMBeanInfo
toString
in class MBeanInfo
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |