edu.uci.isr.yancees.server.plugin.protocol.peerpublish
Class RemotePeerPublishProtocolPluginImplementation

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byedu.uci.isr.yancees.plugin.RemoteAbstractProtocolPlugin
                  extended byedu.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

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemotePeerPublishProtocolPluginImplementation(SubscriberInterface si)
           
 
Method Summary
 void publishEventFromPeer(EventInterface event)
          Receive events from a peer and propagate them to the local dispathcher.
 void publishEventsFromPeer(EventInterface[] eventList)
          Receive events from a peer and propagate them to the local dispathcher.
 
Methods inherited from class edu.uci.isr.yancees.plugin.RemoteAbstractProtocolPlugin
getId, getTag, notifySubscriber, notifySybscriber
 
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
 
Methods inherited from interface edu.uci.isr.yancees.plugin.ProtocolPluginInterface
getId, getTag
 

Constructor Detail

RemotePeerPublishProtocolPluginImplementation

public RemotePeerPublishProtocolPluginImplementation(SubscriberInterface si)
                                              throws java.rmi.RemoteException
Parameters:
si - is the subscriber interface of the plug-in creator
Method Detail

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