|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.SubscriptionFacade.SubscriptionMediator
public class SubscriptionFacade.SubscriptionMediator
The subscriber mediator receives notifications from the plug-ins and forward them to their specific subscribers. We need a mediator here to make a mapping between the plug-in subscription tree and the subscriber interface. It is also used to handle the input and output filters. The management of active subscriptions is also performed here, so mediators represente active subscriptions. When a mediator is destroyed it triggers the garbage collection process of the whole subscription tree of plug-ins
Constructor Summary | |
---|---|
SubscriptionFacade.SubscriptionMediator(SubscriberInterface s,
MOPluginInterface pi,
long msgID)
Constructor |
Method Summary | |
---|---|
protected void |
finalize()
This class is invoked by the Garbage Collector... |
long |
getMessageId()
|
MOPluginInterface |
getPluginTree()
|
void |
receivePluginNotification(EventInterface[] evtList,
MOPluginInterface source)
Receives a list of events as notifications from root plug-in's and send them to the ouptut filters if they are present |
void |
receivePluginNotification(EventInterface evt,
MOPluginInterface source)
Receives a notification from root plug-in's, and sends it to the output filters |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubscriptionFacade.SubscriptionMediator(SubscriberInterface s, MOPluginInterface pi, long msgID)
s
- is the subscriber interface to be notified when the plug-in
evaluation tree is completed.pi
- is the plug-in that is the head of the parsed message. It will
send a notification when the subscription is fully evaluated.mesgId
- is the id of the message (the subscription DOM), which
after parsed, generated the plug-ins I am subscribing to.Method Detail |
---|
public long getMessageId()
public MOPluginInterface getPluginTree()
public void receivePluginNotification(EventInterface evt, MOPluginInterface source)
receivePluginNotification
in interface MOPluginListenerInterface
evt
- is the event receivedsource
- is the plug-in sending the notification.public void receivePluginNotification(EventInterface[] evtList, MOPluginInterface source)
receivePluginNotification
in interface MOPluginListenerInterface
evtList
- is the list of events receivedsource
- is the plug-in sending the notification.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |