|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.server.rmi.SubscriberMediator
public class SubscriberMediator
Performs the mapping between the remote interface and the local subscriber interface, working also as a record of the active subscriptions. We have remote and local subscriberInterfaces to allow the implementation of different protocols, for example HTTP or SOAP, that may heve different ways of representing a remote SubscriberInterface, so we need someone to be a mediator here for the sake of future extensions Behind this façade, yancees interacts only with SubscriberInterfaces whereas, to the outside world, RemoteSubscriberInterfaces are used. Hence, a translation between both is necessary here.
Constructor Summary | |
---|---|
SubscriberMediator(RemoteSubscriberInterface rsi,
RemoteYanceesImplementation ryi)
constructor |
Method Summary | |
---|---|
int |
decReferenceCounter()
|
RemoteSubscriberInterface |
getRemoteSubscriberReference()
Some applications need the actual remote interface used in the client side. |
RemoteYanceesImplementation |
getRemoteYanceesReference()
Used by the NotificationBuffer to obtain a reference to Yancees remote API. |
int |
incReferenceCounter()
|
void |
notify(EventInterface evt)
Receives notifications from the local components of Yancees and forwards them to the remote subscribers |
void |
notify(EventInterface[] evtList)
Receives notifications from the local components of Yancees and forwards them to the remote subscribers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubscriberMediator(RemoteSubscriberInterface rsi, RemoteYanceesImplementation ryi)
rsi
- is the remote interface, that came from the publish or
subscribe commands, protocols as well.callback
- isMethod Detail |
---|
public RemoteYanceesImplementation getRemoteYanceesReference()
public RemoteSubscriberInterface getRemoteSubscriberReference()
public void notify(EventInterface evt)
notify
in interface SubscriberInterface
public void notify(EventInterface[] evtList)
notify
in interface SubscriberInterface
public int incReferenceCounter()
public int decReferenceCounter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |