|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.SubscriptionFacade
public class SubscriptionFacade
This is the subscriber façade for publishing and subscribing events to Yancees. It performs all necessary operations with both notification and subscription managers. It also invokes the appropriate output filters if they are installed This class stays behind the YanceesServer class
Nested Class Summary | |
---|---|
class |
SubscriptionFacade.SubscriptionMediator
The subscriber mediator receives notifications from the plug-ins and forward them to their specific subscribers. |
Field Summary | |
---|---|
protected boolean |
outputFiltersInstalled
|
Method Summary | |
---|---|
protected static SubscriptionFacade |
getInstance()
|
protected void |
installOutputFilters(FilterManagerInterface filterMan)
Installs the input queue managed by filterManager in this API |
protected void |
setNotificationManger(NotificationManager nm)
Used by the Yancees façade, during bootstrap, to register a notification manager component |
protected void |
setSubscriptionManager(SubscriptionManager sm)
Used by the Yancees façade, during bootstrap, to register the subscription manager component |
void |
subscribe(SubscriptionInterface sub,
SubscriberInterface si)
look for the |
void |
unsubscribe(SubscriberInterface si)
Removes all the subscriptions associated to the provided subscriber |
void |
unsubscribe(SubscriberInterface si,
MessageInterface sub)
Removes all the subscriptions associated to the provided subscriber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean outputFiltersInstalled
Method Detail |
---|
protected static SubscriptionFacade getInstance()
protected void installOutputFilters(FilterManagerInterface filterMan)
filterManager
- is the outputFilterManager to be usedpublic void subscribe(SubscriptionInterface sub, SubscriberInterface si) throws YanceesException
sub
- is a message having si
- is a callback interface of the subscriber.
YanceesException
public void unsubscribe(SubscriberInterface si) throws YanceesException
si
- the callbabk interface of the subscriber
YanceesException
- in case there is no subscriptions associated to this subscriberpublic void unsubscribe(SubscriberInterface si, MessageInterface sub) throws YanceesException
si
- the callbabk interface of the subscribersub
- the specific subscription to be discontinued
YanceesException
- in case there is no subscriptions associated to this subscriberprotected void setNotificationManger(NotificationManager nm)
nm
- the NotificatoinManager instance to be used.protected void setSubscriptionManager(SubscriptionManager sm)
nm
- the SubscriptionManager instance to be used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |