edu.uci.isr.yancees.server.dispatcher.siena
Class AbstractSienaAdapter.DispatcherListenerMediator

java.lang.Object
  extended byedu.uci.isr.yancees.server.dispatcher.siena.AbstractSienaAdapter.DispatcherListenerMediator
Enclosing class:
AbstractSienaAdapter

public class AbstractSienaAdapter.DispatcherListenerMediator
extends java.lang.Object

This class represents a dispatcher listener, receiving all the events from Siena that are destinated to this particular EventDispatcherListenerInterface This class here operates as a brides between YANCEES and SIENA. It gets the events from siena, convets it to Events in Yancees and sends to the corresponding EventDispatcherListenerInterface that it represents.


Constructor Summary
AbstractSienaAdapter.DispatcherListenerMediator(EventDispatcherListenerInterface li)
          Constructor
 
Method Summary
 void decrementReferenceCounter()
           
protected  void finalize()
           
 int getReferenceCounter()
           
 void incrementReferenceCounter()
           
 void notify(Notification n)
          Used to receive single events from siena It transforms siena events to Yancees events and forwards the event to the appropriate subscriber.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSienaAdapter.DispatcherListenerMediator

public AbstractSienaAdapter.DispatcherListenerMediator(EventDispatcherListenerInterface li)
Constructor

Parameters:
li - is the subscriber this class represents
Method Detail

incrementReferenceCounter

public void incrementReferenceCounter()

decrementReferenceCounter

public void decrementReferenceCounter()

getReferenceCounter

public int getReferenceCounter()

notify

public void notify(Notification n)
            throws SienaException
Used to receive single events from siena It transforms siena events to Yancees events and forwards the event to the appropriate subscriber.

Parameters:
n - is the notification as received from siena, in its native format.
Throws:
SienaException

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable