Difference between revisions of "IS-Notification"

From Gcube Wiki
Jump to: navigation, search
(Interface)
(Interface)
Line 7: Line 7:
 
=== Interface ===
 
=== Interface ===
  
* '''public <T extends BaseNotificationConsumer> void registerToISNotification(T consumer,List<GCUBENotificationTopic> notifications, GCUBESecurityManager manager, GCUBEScope ... scope) throws ISNotifierException''' – this method registers a entity of type T (consumer)  for a list of QName representing the topics (notifications) in selected Scopes (scope) with a GCUBESecurityManager (manager)  in the [[IS-Notifier]];
+
* '''public <T extends BaseNotificationConsumer> void registerToISNotification(T consumer,List<GCUBENotificationTopic> notifications, GCUBESecurityManager manager, GCUBEScope ... scope) throws ISNotifierException''' – this method registers a entity of type T (consumer)  for a list of GCUBENotificationTopic in selected Scopes (scope) with a GCUBESecurityManager (manager)  in the [[IS-Notifier]];
* '''public void unregisterFromISNotification( GCUBESecurityManager manager, List<GCUBENotificationTopic> notifications, GCUBEScope ... scope) throws ISNotifierException''' –  this method unregisters the consumer for a list of Topics represented by QNames (notifications) from the [[IS-Notifier]] in the selected scopes (scope) with a GCUBESecurityManager (manager);
+
* '''public void unregisterFromISNotification( GCUBESecurityManager manager, List<GCUBENotificationTopic> notifications, GCUBEScope ... scope) throws ISNotifierException''' –  this method unregisters the consumer for a list of GCUBENotificationTopic from the [[IS-Notifier]] in the selected scopes (scope) with a GCUBESecurityManager (manager);
 
* '''public void registerISNotification (EndpointReferenceType producerEPR, List<? extends Topic> notifications, GCUBESecurityManager manager, GCUBEScope ... scope) throws ISNotifierException''' – this method registers the reference to a resource (producerEPR) that produces a list of topics (notifications) in the [[IS-Notifier]] in the selected scopes (scope) with a GCUBESecurityManager (manager);
 
* '''public void registerISNotification (EndpointReferenceType producerEPR, List<? extends Topic> notifications, GCUBESecurityManager manager, GCUBEScope ... scope) throws ISNotifierException''' – this method registers the reference to a resource (producerEPR) that produces a list of topics (notifications) in the [[IS-Notifier]] in the selected scopes (scope) with a GCUBESecurityManager (manager);
 
* '''public void unregisterISNotification (EndpointReferenceType producerEPR, List<? extends Topic> notifications, GCUBESecurityManager manager,  GCUBEScope ... scope) throws ISNotifierException''' – this method unregister the reference to a resource (producerEPR) for a list of topics (notifications) in the [[IS-Notifier]] in the selected scopes (scope) with a GCUBESecurityManager (manager);
 
* '''public void unregisterISNotification (EndpointReferenceType producerEPR, List<? extends Topic> notifications, GCUBESecurityManager manager,  GCUBEScope ... scope) throws ISNotifierException''' – this method unregister the reference to a resource (producerEPR) for a list of topics (notifications) in the [[IS-Notifier]] in the selected scopes (scope) with a GCUBESecurityManager (manager);

Revision as of 13:19, 9 September 2010

Design

The IS-Notification is a library that provides a subscription/notification mechanism based on Remote Events. This library helps the clients to interact with the Notifier Service and allows:

  • for a Client or a Service (Subscriber) to subscribe for a Topic and receiving notifications
  • for a Service (producer) to register its own topic and sending notification.

Interface

  • public <T extends BaseNotificationConsumer> void registerToISNotification(T consumer,List<GCUBENotificationTopic> notifications, GCUBESecurityManager manager, GCUBEScope ... scope) throws ISNotifierException – this method registers a entity of type T (consumer) for a list of GCUBENotificationTopic in selected Scopes (scope) with a GCUBESecurityManager (manager) in the IS-Notifier;
  • public void unregisterFromISNotification( GCUBESecurityManager manager, List<GCUBENotificationTopic> notifications, GCUBEScope ... scope) throws ISNotifierException – this method unregisters the consumer for a list of GCUBENotificationTopic from the IS-Notifier in the selected scopes (scope) with a GCUBESecurityManager (manager);
  • public void registerISNotification (EndpointReferenceType producerEPR, List<? extends Topic> notifications, GCUBESecurityManager manager, GCUBEScope ... scope) throws ISNotifierException – this method registers the reference to a resource (producerEPR) that produces a list of topics (notifications) in the IS-Notifier in the selected scopes (scope) with a GCUBESecurityManager (manager);
  • public void unregisterISNotification (EndpointReferenceType producerEPR, List<? extends Topic> notifications, GCUBESecurityManager manager, GCUBEScope ... scope) throws ISNotifierException – this method unregister the reference to a resource (producerEPR) for a list of topics (notifications) in the IS-Notifier in the selected scopes (scope) with a GCUBESecurityManager (manager);
  • public boolean[] isTopicRegistered(GCUBESecurityManager securityManager, GCUBEScope scope, List<TopicData> topics) throws ISNotifierException - this methods checks if a topic (topic) registration is completed or not for a producer (producerEpr) in the IS-Notifier in the selected scopes (scope) with a GCUBESecurityManager (manager);

Implementation

[TBP]