edu.uci.isr.yancees.server.dispatcher.siena
Class OldSienaAdapter.SubscriberMediator
java.lang.Object
edu.uci.isr.yancees.server.dispatcher.siena.OldSienaAdapter.SubscriberMediator
- Enclosing class:
- OldSienaAdapter
- public class OldSienaAdapter.SubscriberMediator
- extends java.lang.Object
This class represents a subscriber, receiving all the events from Siena
that are destinated to this particular EventDispatcherListenerInterface
It gets the events from siena, convets it to Events in Yancees and sends
to the corresponding EventDispatcherListenerInterface that it represents.
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OldSienaAdapter.SubscriberMediator
public OldSienaAdapter.SubscriberMediator(EventDispatcherListenerInterface li)
- Constructor
- Parameters:
li
- is the subscriber this class represents
incrementReferenceCounter
public void incrementReferenceCounter()
decrementReferenceCounter
public void decrementReferenceCounter()
getReferenceCounter
public int getReferenceCounter()
notify
public void notify(Notification n)
- Used to receive events from siena
It transforms siena events to Yancees events and forwards the event
to the appropriate subscriber.
The events are sent to yancees having a prefix in their attributes. For
example: header/attributeName or body/attributeName. We have to process
them accordingly, eliminating the prefix.
finalize
protected void finalize()
throws java.lang.Throwable
- Throws:
java.lang.Throwable