|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.client.dispatcher.yancees.YanceesAdapter.SubscriberMediator
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 |
public YanceesAdapter.SubscriberMediator(EventDispatcherListenerInterface li)
Method Detail |
public void notify(EventInterface evt)
notify
in interface SubscriberInterface
evt
- is the event received from the remote notification servicepublic void notify(EventInterface[] evtList)
notify
in interface SubscriberInterface
evtList
- is the list of events received from the remote
notificaiton servicepublic void incReferenceCounter()
public void decReferenceCounter()
public int getReferenceCounter()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |