KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > jmx > MBeanAccessor


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.jmx;
8
9 import javax.management.Attribute JavaDoc;
10 import javax.management.AttributeList JavaDoc;
11 import javax.management.MBeanInfo JavaDoc;
12 import javax.management.ObjectInstance JavaDoc;
13 import javax.management.ObjectName JavaDoc;
14
15 /**
16  * Tag interface to be implemented by object that provides access to MBean informations
17  *
18  * @author Laurent Etiemble
19  * @version $Revision: 1.8 $
20  * @todo JavaDoc to complete
21  */

22 public interface MBeanAccessor extends MBeanInvokeAccessor
23 {
24    /**
25     * Gets the objectInstance attribute of the MBeanAccessor object
26     *
27     * @return The objectInstance value
28     * @exception Exception Description of the Exception
29     */

30    public ObjectInstance JavaDoc getObjectInstance()
31       throws Exception JavaDoc;
32
33
34    /**
35     * Gets the attributes attribute of the MBeanAccessor object
36     *
37     * @param as Description of the Parameter
38     * @return The attributes value
39     * @exception Exception Description of the Exception
40     */

41    public AttributeList JavaDoc getAttributes(String JavaDoc as[])
42       throws Exception JavaDoc;
43
44
45    /**
46     * Sets the attributes attribute of the MBeanAccessor object
47     *
48     * @param attributelist The new attributes value
49     * @return Description of the Return Value
50     * @exception Exception Description of the Exception
51     */

52    public AttributeList JavaDoc setAttributes(AttributeList JavaDoc attributelist)
53       throws Exception JavaDoc;
54
55
56    /**
57     * Gets the mBeanInfo attribute of the MBeanAccessor object
58     *
59     * @return The mBeanInfo value
60     */

61    public MBeanInfo JavaDoc getMBeanInfo();
62
63
64    /**
65     * Gets the instanceOf attribute of the MBeanAccessor object
66     *
67     * @param s Description of the Parameter
68     * @return The instanceOf value
69     * @exception Exception Description of the Exception
70     */

71    public boolean isInstanceOf(String JavaDoc s)
72       throws Exception JavaDoc;
73
74
75    /**
76     * Sets the attribute attribute of the MBeanAccessor object
77     *
78     * @param attribute The new attribute value
79     * @exception Exception Description of the Exception
80     */

81    public void setAttribute(Attribute JavaDoc attribute)
82       throws Exception JavaDoc;
83
84
85    /**
86     * Gets the objectName attribute of the MBeanAccessor object
87     *
88     * @return The objectName value
89     */

90    public ObjectName JavaDoc getObjectName();
91
92
93    /**
94     * Gets the canonicalName attribute of the MBeanAccessor object
95     *
96     * @return The canonicalName value
97     */

98    public String JavaDoc getCanonicalName();
99
100
101    /**
102     * Gets the attribute attribute of the MBeanAccessor object
103     *
104     * @param attribute Description of the Parameter
105     * @return The attribute value
106     * @exception Exception Description of the Exception
107     */

108    public Object JavaDoc getAttribute(String JavaDoc attribute)
109       throws Exception JavaDoc;
110
111
112    /**
113     * Description of the Method
114     *
115     * @exception Exception Description of the Exception
116     */

117    public void unregisterMBean()
118       throws Exception JavaDoc;
119 }
120
Popular Tags