|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.server.AdministrationFacade
edu.uci.isr.yancees.server.SubscriptionFacade
This is the sever-side subscriber façade for publishing and subscribing. It performs all necessary operations with both notification and subscripton managers. It also invokes the appropriate output filters if they are installed This class stays behind the YanceesServer class
Nested Class Summary | |
class |
SubscriptionFacade.SubscriberMediator
The subscriber mediator receives notifications from the plug-ins and forward them to their specific subscribers. |
Field Summary | |
protected boolean |
filtersInstalled
|
Method Summary | |
protected static SubscriptionFacade |
getInstance()
|
protected void |
installOutputFilters(FilterManagerInterface filterMan)
Installs the inputqueue managed by filterManager in this API |
protected void |
setNotificationManger(NotificationManager nm)
Used by the Yancees Server API |
protected void |
setSubscriptionManager(SubscriptionManager sm)
Used by the Yancees API |
void |
subscribe(MessageInterface msg,
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 edu.uci.isr.yancees.server.AdministrationFacade |
resumeYancees, shutdownYancess, suspendYancees |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean filtersInstalled
Method Detail |
protected static SubscriptionFacade getInstance()
protected void installOutputFilters(FilterManagerInterface filterMan)
public void subscribe(MessageInterface msg, SubscriberInterface si) throws YanceesException
msg
- 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 specifi subscription to be descontinued
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)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |