public class NotificationHandler extends Object
| Constructor and Description |
|---|
NotificationHandler() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static NotificationHandler getInstance()
public void configureHandler(String jmsLocation)
public boolean[] isTopicRegistered(List<TopicData> topics) throws FailedToCommunicateWithNotificationService
public String registerNotificationTopics(TopicData topic) throws TopicCreationException
TopicCreationExceptionpublic 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
FailedToRegisterToTopicExceptionpublic void unregisterNotificationTopic(TopicData topic) throws FailedToCommunicateWithNotificationService
public void unregisterFromNotificationTopic(TopicData topic, String listenerId, gr.uoa.di.madgik.environment.notifications.SubscriberToTopic subscriberToTopic) throws FailedToUnregisterFromTopicException
Copyright © 2017. All Rights Reserved.