cgl.narada.jms
Class JmsTopicAndSelectorVerifier
java.lang.Object
cgl.narada.jms.JmsTopicAndSelectorVerifier
- All Implemented Interfaces:
- JmsDebugFlags
public class JmsTopicAndSelectorVerifier
- extends Object
- implements JmsDebugFlags
This class verifies if the topic/message selector that are specified
correspond to the pairs that are specified by the system.
The present system, at present, handles only equaliy tests specified in
the tag=value style. Future work will extend this to include various other
selection criteria's such as >, <, >=, <=, !.
Fields inherited from interface cgl.narada.jms.JmsDebugFlags |
JmsConnection_Debug, JmsDestination_Debug, JmsHeader_Debug, JmsLogger_Debug, JmsMessage_Debug, JmsObjectMessage_Debug, JmsProperties_Debug, JmsTextMessage_Debug, JmsTopic_Debug, JmsTopicAndSelectorVerifier_Debug, JmsTopicConnection_Debug, JmsTopicConnectionFactory_Debug, JmsTopicPublisher_Debug, JmsTopicSession_Debug, JmsTopicSubscriber_Debug |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmsTopicAndSelectorVerifier
public JmsTopicAndSelectorVerifier()
processTopicName
public static void processTopicName(String name)
throws JMSException
- Throws:
JMSException
checkTagValuePairs
public static String checkTagValuePairs(String name)
throws JMSException
- Throws:
JMSException
verifySelectorSpecifiedOnTopic
public static void verifySelectorSpecifiedOnTopic(String topicString,
String messageSelector)
throws JMSException
- The number of pairs contained in the selector could be less
than the number of pairs contained in the topic. However the tags and
the sequence in which they are specified in crucial. Furthermore, we the
only selectors we allow presently are wild-cards
- Throws:
JMSException
main
public static void main(String[] args)
For comments and suggestions please send
e-mail to
The NaradaBrokering Project