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; 25 import java.rmi.RemoteException; 26 27 import javax.management.ObjectName; 28 import javax.management.NotificationFilter; 29 import javax.management.InstanceNotFoundException; 30 import javax.management.ListenerNotFoundException; 31 import javax.management.MBeanServerConnection; 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 "Mad" Schaefer</A> 41 * @author <a HREF="mailto:jason@planet57.com">Jason Dillon</a> 42 */ 43 public interface RMIAdaptor 44 extends Remote, MBeanServerConnection 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 name, 56 RMINotificationListener listener, 57 NotificationFilter filter, 58 Object handback) 59 throws InstanceNotFoundException, 60 RemoteException; 61 62 /** 63 * 64 * @param name 65 * @param listener 66 * @throws InstanceNotFoundException 67 * @throws ListenerNotFoundException 68 * @throws RemoteException 69 */ 70 void removeNotificationListener(ObjectName name, RMINotificationListener listener) 71 throws InstanceNotFoundException, 72 ListenerNotFoundException, 73 RemoteException; 74 } 75