edu.uci.isr.yancees.server.filter.peerpublisher
Class PeerPublisherInputFilter

java.lang.Object
  extended byedu.uci.isr.yancees.filter.AbstractFilter
      extended byedu.uci.isr.yancees.server.filter.peerpublisher.PeerPublisherInputFilter
All Implemented Interfaces:
FilterInterface

public class PeerPublisherInputFilter
extends AbstractFilter

Author:
rsilvafi this filter redirects all events published using this YANCEEs instance, to all the JmDNS peers in the network. For such, it uses the services provided by the JmDNSService which should be installed as a local service.

Field Summary
static java.lang.String FALSE
           
static long id
           
protected  boolean print
           
static java.lang.String PUBLISH_TO_PEERS
           
static java.lang.String TRUE
           
 
Constructor Summary
PeerPublisherInputFilter()
           
 
Method Summary
protected  EventInterface[] doFilterEvent(EventInterface evt)
          This method should be implemented by the subclasses of the AbstractFilter in order to process the messages being passed through this filter.
protected  EventInterface[] doFilterEventList(EventInterface[] evtList)
          This method should be implemented by the subclasses of the AbstractFilter in order to process the messages being passed through this filter.
 
Methods inherited from class edu.uci.isr.yancees.filter.AbstractFilter
addSuccessor, getName, getSuccessor, handleMessage, handleMessage, removeSuccessor, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public static long id

PUBLISH_TO_PEERS

public static java.lang.String PUBLISH_TO_PEERS

TRUE

public static java.lang.String TRUE

FALSE

public static java.lang.String FALSE

print

protected boolean print
Constructor Detail

PeerPublisherInputFilter

public PeerPublisherInputFilter()
Method Detail

doFilterEvent

protected EventInterface[] doFilterEvent(EventInterface evt)
Description copied from class: AbstractFilter
This method should be implemented by the subclasses of the AbstractFilter in order to process the messages being passed through this filter. A filter uses this method to receive the message and process it. The filter must then select which events to let go to the next filter or subscriber. These events are returned in the method.

Specified by:
doFilterEvent in class AbstractFilter
Parameters:
evt - is the event to be filtered
Returns:
is the list of events resulted from the filtering

doFilterEventList

protected EventInterface[] doFilterEventList(EventInterface[] evtList)
Description copied from class: AbstractFilter
This method should be implemented by the subclasses of the AbstractFilter in order to process the messages being passed through this filter. A filter uses this method to receive the message and process it. The filter must then select which events to let go to the next filter or subscriber. These events are returned in the method.

Specified by:
doFilterEventList in class AbstractFilter
Parameters:
evtList - is a list of events to be filtered as a "burst"
Returns:
is the list of events resulted from the filtering