edu.uci.isr.yancees.server.plugin.protocol.peerpublish
Class RemotePeerPublishProtocolPluginImplementation
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
edu.uci.isr.yancees.plugin.RemoteAbstractProtocolPlugin
edu.uci.isr.yancees.server.plugin.protocol.peerpublish.RemotePeerPublishProtocolPluginImplementation
- All Implemented Interfaces:
- ProtocolPluginInterface, java.rmi.Remote, RemotePeerPublishProtocolPluginInterface, RemoteProtocolPluginInterface, java.io.Serializable
- public class RemotePeerPublishProtocolPluginImplementation
- extends RemoteAbstractProtocolPlugin
- implements RemotePeerPublishProtocolPluginInterface
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
RemotePeerPublishProtocolPluginImplementation
public RemotePeerPublishProtocolPluginImplementation(SubscriberInterface si)
throws java.rmi.RemoteException
- Parameters:
si
- is the subscriber interface of the plug-in creator
publishEventFromPeer
public void publishEventFromPeer(EventInterface event)
throws java.rmi.RemoteException
- Receive events from a peer and propagate them to the local dispathcher.
By bypassing the regular publish() command, we prevent the circular
propagation of the events.
- Specified by:
publishEventFromPeer
in interface RemotePeerPublishProtocolPluginInterface
- Parameters:
event
- is the event to be published.
- Throws:
java.rmi.RemoteException
publishEventsFromPeer
public void publishEventsFromPeer(EventInterface[] eventList)
throws java.rmi.RemoteException
- Receive events from a peer and propagate them to the local dispathcher.
By bypassing the regular publish() command, we prevent the circular
propagation of the events.
- Specified by:
publishEventsFromPeer
in interface RemotePeerPublishProtocolPluginInterface
- Parameters:
eventList
- is the list of events to be published.
- Throws:
java.rmi.RemoteException