edu.uci.isr.yancees.server
Class PublicationFacade

java.lang.Object
  extended byedu.uci.isr.yancees.server.AdministrationFacade
      extended byedu.uci.isr.yancees.server.PublicationFacade

public class PublicationFacade
extends AdministrationFacade

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 events
protected  void publishThroughDispatcher(EventInterface evt)
          Publishes an event using the installed event dispatcher.
protected  void setEventDispatcher(EventDispatcherInterface disp)
          Used by the Yancees object to initialize this API with the appropriate dispatcher.
 
Methods inherited from class edu.uci.isr.yancees.server.AdministrationFacade
resumeYancees, shutdownYancess, suspendYancees
 
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


publish

public void publish(EventInterface evt)
             throws YanceesException
Allows the users of this API to publish 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

setEventDispatcher

protected void setEventDispatcher(EventDispatcherInterface disp)
Used by the Yancees object to initialize this API with the appropriate dispatcher.

Parameters:
disp -