gr.uoa.madgik.environment.notifications.handlers
Class NotificationHandler

java.lang.Object
  extended by gr.uoa.madgik.environment.notifications.handlers.NotificationHandler

public class NotificationHandler
extends Object


Constructor Summary
NotificationHandler()
           
 
Method Summary
 void configureHandler(String jmsLocation)
           
static NotificationHandler getInstance()
           
 boolean[] isTopicRegistered(List<TopicData> topics)
           
 String registerNotificationTopics(TopicData topic)
           
 gr.uoa.di.madgik.environment.notifications.SubscriberToTopic registerToNotificationTopic(TopicData topic, String listenerId, String subscriptionName, String selector, gr.uoa.di.madgik.environment.notifications.SubscriberToTopic subscriberToTopic, gr.uoa.di.madgik.environment.notifications.NotificationMessageListenerI listener)
           
 void sendNotificationToTopic(TopicData topicData, String textMessage, HashMap<String,String> propertiesNameValueMap)
           
 void unregisterFromNotificationTopic(TopicData topic, String listenerId, gr.uoa.di.madgik.environment.notifications.SubscriberToTopic subscriberToTopic)
           
 void unregisterNotificationTopic(TopicData topic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationHandler

public NotificationHandler()
Method Detail

getInstance

public static NotificationHandler getInstance()

configureHandler

public void configureHandler(String jmsLocation)

isTopicRegistered

public boolean[] isTopicRegistered(List<TopicData> topics)
                            throws FailedToCommunicateWithNotificationService
Throws:
FailedToCommunicateWithNotificationService

registerNotificationTopics

public String registerNotificationTopics(TopicData topic)
                                  throws TopicCreationException
Throws:
TopicCreationException

registerToNotificationTopic

public gr.uoa.di.madgik.environment.notifications.SubscriberToTopic registerToNotificationTopic(TopicData topic,
                                                                                                String listenerId,
                                                                                                String subscriptionName,
                                                                                                String selector,
                                                                                                gr.uoa.di.madgik.environment.notifications.SubscriberToTopic subscriberToTopic,
                                                                                                gr.uoa.di.madgik.environment.notifications.NotificationMessageListenerI listener)
                                                                                         throws FailedToRegisterToTopicException
Throws:
FailedToRegisterToTopicException

unregisterNotificationTopic

public void unregisterNotificationTopic(TopicData topic)
                                 throws FailedToCommunicateWithNotificationService
Throws:
FailedToCommunicateWithNotificationService

unregisterFromNotificationTopic

public void unregisterFromNotificationTopic(TopicData topic,
                                            String listenerId,
                                            gr.uoa.di.madgik.environment.notifications.SubscriberToTopic subscriberToTopic)
                                     throws FailedToUnregisterFromTopicException
Throws:
FailedToUnregisterFromTopicException

sendNotificationToTopic

public void sendNotificationToTopic(TopicData topicData,
                                    String textMessage,
                                    HashMap<String,String> propertiesNameValueMap)


Copyright © 2012. All Rights Reserved.