01: /**
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */package javax.management.openmbean;
08:
09: import javax.management.MBeanAttributeInfo;
10: import javax.management.MBeanConstructorInfo;
11: import javax.management.MBeanNotificationInfo;
12: import javax.management.MBeanOperationInfo;
13:
14: /**
15: * The <code>OpenMBeanInfo</code> describes an OpenMBean.
16: *
17: * @version $Revision: 1.4 $
18: * @see javax.management.MBeanInfo
19: */
20: public interface OpenMBeanInfo {
21: /**
22: * Return the fully qualified classname that this OpenMBeanInfo describes
23: *
24: * @return String The fully qualified classname
25: */
26: public String getClassName();
27:
28: /**
29: * Returns a human readable description
30: *
31: * @return String The human readable description
32: */
33: public String getDescription();
34:
35: /**
36: * Returns an instance of MBeanAttributeInfo ( OpenMBeanAttributeInfo )
37: *
38: * @return MBeanAttributeInfo the OpenMBeanAttributeInfo array
39: * @see OpenMBeanAttributeInfo
40: * @see javax.management.MBeanAttributeInfo
41: */
42: public MBeanAttributeInfo[] getAttributes();
43:
44: /**
45: * Returns an instance of MBeanOperationInfo ( OpenMBeanOperationInfo )
46: *
47: * @return MBeanOperationInfo the OpenMBeanOperationInfo array
48: */
49: public MBeanOperationInfo[] getOperations();
50:
51: /**
52: * Returns an array of MBeanConstructorInfo ( OpenMBeanConstructorInfo )
53: *
54: * @return MBeanConstructorInfo the OpenMBeanConstructorInfo array
55: */
56: public MBeanConstructorInfo[] getConstructors();
57:
58: /**
59: * Returns an array of MBeanNotificationInfo which describes notifications
60: * by this </code>OpenMBeanInfo</code>
61: *
62: * @return MBeanNotificationInfo An array of notifications
63: */
64: public MBeanNotificationInfo[] getNotifications();
65:
66: /**
67: * Checks if the given Object is equal with this <code>OpenMBeanInfo</code>
68: *
69: * @return boolean If equal
70: */
71: public boolean equals(Object obj);
72:
73: /**
74: * Returns the hashCode of this OpenMBean info
75: *
76: * @return int the hashcode
77: */
78: public int hashCode();
79:
80: /**
81: * Returns a String representation
82: *
83: * @return String The String representation of this OpenMBeanInfo
84: */
85: public String toString();
86: }
|