/* * *************************************************** * * * Mobicents: The Open Source JSLEE Platform * * * * Distributable under LGPL license. * * See terms of license at gnu.org. * * * *************************************************** * * Created on Dec 6, 2004 RemoteSleeEndpoint.java */ package org.mobicents.slee.connector.server; import java.rmi.RemoteException; import javax.slee.Address; import javax.slee.EventTypeID; import javax.slee.UnrecognizedEventException; import javax.slee.connection.ExternalActivityHandle; import javax.slee.connection.SleeConnection; /** * @author Tim * @author martins * * Interface that is exposed to the outside world from the SLEE via HA-RMI. The * JCA adaptor exposes a JCA interface to users. Internally it uses this * interface to actually communicate with the SLEE * */ public interface RemoteSleeService { /** * @see SleeConnection#createActivityHandle() * @return * @throws RemoteException */ public ExternalActivityHandle createActivityHandle() throws RemoteException; /** * @see SleeConnection#fireEvent(Object, EventTypeID, * ExternalActivityHandle, Address) * @param event * @param eventType * @param activityHandle * @param address * @throws NullPointerException * @throws UnrecognizedEventException * @throws RemoteException */ public void fireEvent(Object event, EventTypeID eventType, ExternalActivityHandle activityHandle, Address address) throws NullPointerException, UnrecognizedEventException, RemoteException; /** * @see SleeConnection#getEventTypeID(String, String, String) * @param name * @param vendor * @param version * @return * @throws UnrecognizedEventException * @throws RemoteException */ public EventTypeID getEventTypeID(String name, String vendor, String version) throws UnrecognizedEventException, RemoteException; }