edu.uci.isr.yancees
Class PublicationFacade

java.lang.Object
  extended by edu.uci.isr.yancees.PublicationFacade

public class PublicationFacade
extends java.lang.Object

This is the server-side publication façade. It hides the yancees core from the publishers. It also invokes the appropriate input filters if they are installed This class stays behind the YanceesServer class


Method Summary
protected static PublicationFacade getInstance()
           
protected  void installInputFilters(FilterManagerInterface filterMan)
          Installs the inputqueue managed by filterManager in this API
 void publish(EventInterface evt)
          Allows the users of this API to publish individual events
protected  void publishThroughDispatcher(EventInterface evt)
          Publishes an event using the installed event dispatcher.
protected  void publishThroughDispatcher(EventInterface[] evtList)
          Publishes an event list using the installed event dispatcher.
protected  void setEventDispatcher(EventDispatcherInterface disp)
          Used by the Yancees façade to initialize this API with the appropriate default dispatcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

protected static PublicationFacade getInstance()

installInputFilters

protected void installInputFilters(FilterManagerInterface filterMan)
Installs the inputqueue managed by filterManager in this API

Parameters:
filterManager -

publish

public void publish(EventInterface evt)
             throws YanceesException
Allows the users of this API to publish individual events

Parameters:
evt - is the event to be published
Throws:
YanceesException - is thrown in case of syntax and connection errors

publishThroughDispatcher

protected void publishThroughDispatcher(EventInterface evt)
                                 throws YanceesException
Publishes an event using the installed event dispatcher. Can be used to bypass the filters

Parameters:
evt - is the event to be published
Throws:
YanceesException

publishThroughDispatcher

protected void publishThroughDispatcher(EventInterface[] evtList)
                                 throws YanceesException
Publishes an event list using the installed event dispatcher. This method bypasses the dispatcher.

Parameters:
evtList - is a list of events to be published
Throws:
YanceesException - in case there are some errors

setEventDispatcher

protected void setEventDispatcher(EventDispatcherInterface disp)
Used by the Yancees façade to initialize this API with the appropriate default dispatcher.

Parameters:
disp -