KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > net > jmx > adaptor > RemoteAdaptor


1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7
8 package org.jboss.net.jmx.adaptor;
9
10
11 import java.rmi.Remote JavaDoc;
12 import java.rmi.RemoteException JavaDoc;
13 import java.util.Set JavaDoc;
14
15 import javax.management.Attribute JavaDoc;
16 import javax.management.AttributeList JavaDoc;
17 import javax.management.ObjectName JavaDoc;
18 import javax.management.QueryExp JavaDoc;
19 import javax.management.ObjectInstance JavaDoc;
20 import javax.management.NotificationFilter JavaDoc;
21 import javax.management.MBeanInfo JavaDoc;
22
23 import javax.management.AttributeNotFoundException JavaDoc;
24 import javax.management.InstanceAlreadyExistsException JavaDoc;
25 import javax.management.InstanceNotFoundException JavaDoc;
26 import javax.management.IntrospectionException JavaDoc;
27 import javax.management.InvalidAttributeValueException JavaDoc;
28 import javax.management.ListenerNotFoundException JavaDoc;
29 import javax.management.MBeanException JavaDoc;
30 import javax.management.MBeanRegistrationException JavaDoc;
31 import javax.management.NotCompliantMBeanException JavaDoc;
32 import javax.management.ReflectionException JavaDoc;
33
34 /**
35  * Remote Interface for the server side Adaptor which
36  * is nearly the same as the MBeanServer Interface but
37  * has an additional RemoteException.
38  *
39  * @author <a HREF="mailto:christoph.jung@jboss.org">Christoph G. Jung</a>
40  **/

41 public interface RemoteAdaptor extends Remote JavaDoc
42 {
43
44    // Constants -----------------------------------------------------
45

46    // Public --------------------------------------------------------
47

48    public ObjectInstance JavaDoc createMBean(
49       String JavaDoc pClassName,
50       ObjectName JavaDoc pName
51       ) throws
52       ReflectionException JavaDoc,
53       InstanceAlreadyExistsException JavaDoc,
54       MBeanRegistrationException JavaDoc,
55       MBeanException JavaDoc,
56       NotCompliantMBeanException JavaDoc,
57       RemoteException JavaDoc;
58
59    public ObjectInstance JavaDoc createMBean(
60       String JavaDoc pClassName,
61       ObjectName JavaDoc pName,
62       ObjectName JavaDoc pLoaderName
63       ) throws
64       ReflectionException JavaDoc,
65       InstanceAlreadyExistsException JavaDoc,
66       MBeanRegistrationException JavaDoc,
67       MBeanException JavaDoc,
68       NotCompliantMBeanException JavaDoc,
69       InstanceNotFoundException JavaDoc,
70       RemoteException JavaDoc;
71
72    public ObjectInstance JavaDoc createMBean(
73       String JavaDoc pClassName,
74       ObjectName JavaDoc pName,
75       Object JavaDoc[] pParams,
76       String JavaDoc[] pSignature
77       ) throws
78       ReflectionException JavaDoc,
79       InstanceAlreadyExistsException JavaDoc,
80       MBeanRegistrationException JavaDoc,
81       MBeanException JavaDoc,
82       NotCompliantMBeanException JavaDoc,
83       RemoteException JavaDoc;
84
85    public ObjectInstance JavaDoc createMBean(
86       String JavaDoc pClassName,
87       ObjectName JavaDoc pName,
88       ObjectName JavaDoc pLoaderName,
89       Object JavaDoc[] pParams,
90       String JavaDoc[] pSignature
91       ) throws
92       ReflectionException JavaDoc,
93       InstanceAlreadyExistsException JavaDoc,
94       MBeanRegistrationException JavaDoc,
95       MBeanException JavaDoc,
96       NotCompliantMBeanException JavaDoc,
97       InstanceNotFoundException JavaDoc,
98       RemoteException JavaDoc;
99
100    public void unregisterMBean(
101       ObjectName JavaDoc pName
102       ) throws
103       InstanceNotFoundException JavaDoc,
104       MBeanRegistrationException JavaDoc,
105       RemoteException JavaDoc;
106
107    public ObjectInstance JavaDoc getObjectInstance(
108       ObjectName JavaDoc pName
109       ) throws
110       InstanceNotFoundException JavaDoc,
111       RemoteException JavaDoc;
112
113    public Set JavaDoc queryMBeans(
114       ObjectName JavaDoc pName,
115       QueryExp JavaDoc pQuery
116       ) throws
117       RemoteException JavaDoc;
118
119    public Set JavaDoc queryNames(
120       ObjectName JavaDoc pName,
121       QueryExp JavaDoc pQuery
122       ) throws
123       RemoteException JavaDoc;
124
125    public boolean isRegistered(
126       ObjectName JavaDoc pName
127       ) throws
128       RemoteException JavaDoc;
129
130    public boolean isInstanceOf(
131       ObjectName JavaDoc pName,
132       String JavaDoc pClassName
133       ) throws
134       InstanceNotFoundException JavaDoc,
135       RemoteException JavaDoc;
136
137    public Integer JavaDoc getMBeanCount(
138       ) throws
139       RemoteException JavaDoc;
140
141    public Object JavaDoc getAttribute(
142       ObjectName JavaDoc pName,
143       String JavaDoc pAttribute
144       ) throws
145       MBeanException JavaDoc,
146       AttributeNotFoundException JavaDoc,
147       InstanceNotFoundException JavaDoc,
148       ReflectionException JavaDoc,
149       RemoteException JavaDoc;
150
151    public AttributeList JavaDoc getAttributes(
152       ObjectName JavaDoc pName,
153       String JavaDoc[] pAttributes
154       ) throws
155       InstanceNotFoundException JavaDoc,
156       ReflectionException JavaDoc,
157       RemoteException JavaDoc;
158
159    public void setAttribute(
160       ObjectName JavaDoc pName,
161       Attribute JavaDoc pAttribute
162       ) throws
163       InstanceNotFoundException JavaDoc,
164       AttributeNotFoundException JavaDoc,
165       InvalidAttributeValueException JavaDoc,
166       MBeanException JavaDoc,
167       ReflectionException JavaDoc,
168       RemoteException JavaDoc;
169
170    public AttributeList JavaDoc setAttributes(
171       ObjectName JavaDoc pName,
172       AttributeList JavaDoc pAttributes
173       ) throws
174       InstanceNotFoundException JavaDoc,
175       ReflectionException JavaDoc,
176       RemoteException JavaDoc;
177
178    public Object JavaDoc invoke(
179       ObjectName JavaDoc pName,
180       String JavaDoc pActionName,
181       Object JavaDoc[] pParams,
182       String JavaDoc[] pSignature
183       ) throws
184       InstanceNotFoundException JavaDoc,
185       MBeanException JavaDoc,
186       ReflectionException JavaDoc,
187       RemoteException JavaDoc;
188
189    public String JavaDoc getDefaultDomain(
190       ) throws
191       RemoteException JavaDoc;
192
193    public void addNotificationListener(
194       ObjectName JavaDoc pName,
195       ObjectName JavaDoc pListener,
196       NotificationFilter JavaDoc pFilter,
197       Object JavaDoc pHandback
198       ) throws
199       InstanceNotFoundException JavaDoc,
200       RemoteException JavaDoc;
201
202    public void removeNotificationListener(
203       ObjectName JavaDoc pName,
204       ObjectName JavaDoc pListener
205       ) throws
206       InstanceNotFoundException JavaDoc,
207       ListenerNotFoundException JavaDoc,
208       RemoteException JavaDoc;
209
210    public MBeanInfo JavaDoc getMBeanInfo(
211       ObjectName JavaDoc pName
212       ) throws
213       InstanceNotFoundException JavaDoc,
214       IntrospectionException JavaDoc,
215       ReflectionException JavaDoc,
216       RemoteException JavaDoc;
217
218 }
219
Popular Tags