edu.uci.isr.yancees.client.dispatcher.yancees
Class YanceesAdapter.SubscriberMediator

java.lang.Object
  extended byedu.uci.isr.yancees.client.dispatcher.yancees.YanceesAdapter.SubscriberMediator
All Implemented Interfaces:
SubscriberInterface
Enclosing class:
YanceesAdapter

public class YanceesAdapter.SubscriberMediator
extends java.lang.Object
implements SubscriberInterface

Performs the mapping between the SubscriberInterface and the DispatcherListenerInterface Behind this façade, we interact with a remote implementation of Yancees. We use YanceesRMIClient to do the bridge from remote to local. However, we need to provide the basic AdapterInterface, which deals with EventDispatcherListenerInterfaces, instead of SubscriberInterfaces. Hence, a translation between both is necessary here.


Constructor Summary
YanceesAdapter.SubscriberMediator(EventDispatcherListenerInterface li)
          Constructor
 
Method Summary
 void decReferenceCounter()
           
 int getReferenceCounter()
           
 void incReferenceCounter()
           
 void notify(EventInterface evt)
          Receives notification as SubscriberInterface and forwards it to the client EventDispatcherListenerInterface
 void notify(EventInterface[] evtList)
          Receives notification list as SubscriberInterface and forwards it to the client EventDispatcherListenerInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YanceesAdapter.SubscriberMediator

public YanceesAdapter.SubscriberMediator(EventDispatcherListenerInterface li)
Constructor

Method Detail

notify

public void notify(EventInterface evt)
Receives notification as SubscriberInterface and forwards it to the client EventDispatcherListenerInterface

Specified by:
notify in interface SubscriberInterface
Parameters:
evt - is the event received from the remote notification service

notify

public void notify(EventInterface[] evtList)
Receives notification list as SubscriberInterface and forwards it to the client EventDispatcherListenerInterface

Specified by:
notify in interface SubscriberInterface
Parameters:
evtList - is the list of events received from the remote notificaiton service

incReferenceCounter

public void incReferenceCounter()

decReferenceCounter

public void decReferenceCounter()

getReferenceCounter

public int getReferenceCounter()