gr.uoa.di.madgik.environment.jms
Class JMSConnectionHandler

java.lang.Object
  extended by gr.uoa.di.madgik.environment.jms.JMSConnectionHandler

public class JMSConnectionHandler
extends Object


Constructor Summary
protected JMSConnectionHandler(String jmsLocation)
           
 
Method Summary
 javax.jms.Topic createTopic(TopicData topicData)
           
 void deleteTopic(TopicData topicData)
           
static JMSConnectionHandler getInstance(String jmsLocation)
           
 boolean[] isTopicRegistered(List<TopicData> topics)
           
 gr.uoa.di.madgik.environment.notifications.SubscriberToTopic listenToMessagesOfTopic(TopicData topicData, String clientId, String subscriptionName, String selector, gr.uoa.di.madgik.environment.notifications.SubscriberToTopic subToTopic, gr.uoa.di.madgik.environment.notifications.NotificationMessageListenerI listener)
           
 void sendMessageForTopic(String topicName, String textMessage, HashMap<String,String> messageProperties)
           
 void sendNotificationToTopic(TopicData topicData, String textMessage, HashMap<String,String> propertiesNameValueMap)
           
 void sendNotificationToTopic(javax.jms.Topic topic, String textMessage, HashMap<String,String> propertiesNameValueMap)
           
 void unsubscribeFromTopic(TopicData topicData, String clientId, gr.uoa.di.madgik.environment.notifications.SubscriberToTopic subscriberToTopic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSConnectionHandler

protected JMSConnectionHandler(String jmsLocation)
Method Detail

getInstance

public static JMSConnectionHandler getInstance(String jmsLocation)

createTopic

public javax.jms.Topic createTopic(TopicData topicData)
                            throws TopicCreationException
Throws:
TopicCreationException

sendMessageForTopic

public void sendMessageForTopic(String topicName,
                                String textMessage,
                                HashMap<String,String> messageProperties)
                         throws javax.jms.JMSException
Throws:
javax.jms.JMSException

listenToMessagesOfTopic

public gr.uoa.di.madgik.environment.notifications.SubscriberToTopic listenToMessagesOfTopic(TopicData topicData,
                                                                                            String clientId,
                                                                                            String subscriptionName,
                                                                                            String selector,
                                                                                            gr.uoa.di.madgik.environment.notifications.SubscriberToTopic subToTopic,
                                                                                            gr.uoa.di.madgik.environment.notifications.NotificationMessageListenerI listener)
                                                                                     throws FailedToRegisterToTopicException
Throws:
FailedToRegisterToTopicException

unsubscribeFromTopic

public void unsubscribeFromTopic(TopicData topicData,
                                 String clientId,
                                 gr.uoa.di.madgik.environment.notifications.SubscriberToTopic subscriberToTopic)
                          throws FailedToUnregisterFromTopicException
Throws:
FailedToUnregisterFromTopicException

sendNotificationToTopic

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

sendNotificationToTopic

public void sendNotificationToTopic(javax.jms.Topic topic,
                                    String textMessage,
                                    HashMap<String,String> propertiesNameValueMap)

isTopicRegistered

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

deleteTopic

public void deleteTopic(TopicData topicData)
                 throws FailedToCommunicateWithNotificationService
Throws:
FailedToCommunicateWithNotificationService


Copyright © 2013. All Rights Reserved.