KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jmx > adaptor > rmi > RMIAdaptor


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.jmx.adaptor.rmi;
23
24 import java.rmi.Remote JavaDoc;
25 import java.rmi.RemoteException JavaDoc;
26
27 import javax.management.ObjectName JavaDoc;
28 import javax.management.NotificationFilter JavaDoc;
29 import javax.management.InstanceNotFoundException JavaDoc;
30 import javax.management.ListenerNotFoundException JavaDoc;
31 import javax.management.MBeanServerConnection JavaDoc;
32
33 /**
34  * RMI Interface for the server side Connector which
35  * is nearly the same as the MBeanServer Interface but
36  * has an additional RemoteException.
37  *
38  * @version <tt>$Revision: 37459 $</tt>
39  * @author <a HREF="mailto:rickard.oberg@telkel.com">Rickard Öberg</a>
40  * @author <A HREF="mailto:andreas@jboss.org">Andreas &quot;Mad&quot; Schaefer</A>
41  * @author <a HREF="mailto:jason@planet57.com">Jason Dillon</a>
42  */

43 public interface RMIAdaptor
44    extends Remote JavaDoc, MBeanServerConnection JavaDoc
45 {
46    /**
47     *
48     * @param name
49     * @param listener
50     * @param filter
51     * @param handback
52     * @throws InstanceNotFoundException
53     * @throws RemoteException
54     */

55    void addNotificationListener(ObjectName JavaDoc name,
56                                 RMINotificationListener listener,
57                                 NotificationFilter JavaDoc filter,
58                                 Object JavaDoc handback)
59       throws InstanceNotFoundException JavaDoc,
60              RemoteException JavaDoc;
61
62    /**
63     *
64     * @param name
65     * @param listener
66     * @throws InstanceNotFoundException
67     * @throws ListenerNotFoundException
68     * @throws RemoteException
69     */

70    void removeNotificationListener(ObjectName JavaDoc name, RMINotificationListener listener)
71       throws InstanceNotFoundException JavaDoc,
72              ListenerNotFoundException JavaDoc,
73              RemoteException JavaDoc;
74 }
75
Popular Tags