|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.SubscriptionFacade.SubscriberMediator
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.SubscriberMediator(SubscriberInterface s,
PluginInterface pi,
long msgID)
Constructor |
Method Summary | |
protected void |
finalize()
This class is invoked by the Garbage Collector... |
long |
getMessageId()
|
PluginInterface |
getPluginTree()
|
void |
receivePluginNotification(EventInterface[] evtList,
PluginInterface 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,
PluginInterface 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.SubscriberMediator(SubscriberInterface s, PluginInterface 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.Method Detail |
public long getMessageId()
public PluginInterface getPluginTree()
public void receivePluginNotification(EventInterface evt, PluginInterface source)
receivePluginNotification
in interface PluginListenerInterface
evt
- is the event receivedsource
- is the plug-in sending the notification.public void receivePluginNotification(EventInterface[] evtList, PluginInterface source)
receivePluginNotification
in interface PluginListenerInterface
evtList
- is the list of events receivedsource
- is the plug-in sending the notification.protected void finalize() throws java.lang.Throwable
java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |