org.globus.ogsa.impl.core.notification.framework.jms
Class JMSXPathQueryEvaluator

java.lang.Object
  extended byorg.globus.ogsa.impl.core.notification.framework.jms.JMSQueryEvaluator
      extended byorg.globus.ogsa.impl.core.notification.framework.jms.JMSXPathQueryEvaluator
All Implemented Interfaces:
QueryEvaluator, RegisterSubscriptionMessageReceiver, ServiceDataChangeMessageReceiver, UnregisterSubscriptionMessageReceiver

public class JMSXPathQueryEvaluator
extends JMSQueryEvaluator

The JMSXPathQueryEvaluator class This class is used to query the SubscriptionExpression defined by the SubscriptionExpressionType -- SubscribeByXPath


Field Summary
static java.lang.String XPATH_SUBSCRIPTION_URI
           
 
Fields inherited from class org.globus.ogsa.impl.core.notification.framework.jms.JMSQueryEvaluator
theSubscriptionCriteriaMap
 
Constructor Summary
JMSXPathQueryEvaluator(java.lang.String aSubscriptionExpressionType)
          The constructor of the class.
 
Method Summary
 boolean evaluateCriteria(java.lang.String aCriteria, java.lang.String aSubscriptionID)
          The evaluateCriteria Method This mehtod evaluates to see if the message has to be sent to the sink
 void receiveRegisterSubscriptionMessage(Message aMessage)
          The receiveRegisterSubscriotionMessage method.
 void receiveServiceDataChangeMessage(Message aMessage)
          The receiveServiceDataChangeMessage method.
 void receiveUnregisterSubscriptionMessage(Message aMessage)
          The receiveUnregisterSubscriptionMessage method.
 
Methods inherited from class org.globus.ogsa.impl.core.notification.framework.jms.JMSQueryEvaluator
formatNotifyMessage, getJMSAdapter, getSubscriptionInfo, publishNotifyMessage, publishRefreshServiceDataMessage, registerSubscription, unregisterSubscription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XPATH_SUBSCRIPTION_URI

public static final java.lang.String XPATH_SUBSCRIPTION_URI
See Also:
Constant Field Values
Constructor Detail

JMSXPathQueryEvaluator

public JMSXPathQueryEvaluator(java.lang.String aSubscriptionExpressionType)
                       throws java.lang.Exception
The constructor of the class.

Parameters:
aSubscriptionExpressionType - - The expressionType used to create the query evaluator.
Throws:
java.lang.Exception - if the class can not be initialized
Method Detail

evaluateCriteria

public boolean evaluateCriteria(java.lang.String aCriteria,
                                java.lang.String aSubscriptionID)
The evaluateCriteria Method This mehtod evaluates to see if the message has to be sent to the sink

Parameters:
aCriteria - - The subscription expression to be evaluated
aSubscriptionID - - The Subscription ID
Returns:
boolean --true, if message is to be sent to the sink --false, if message is not to be sent to the sink

receiveServiceDataChangeMessage

public void receiveServiceDataChangeMessage(Message aMessage)
The receiveServiceDataChangeMessage method. This method is executed when there is a servide data change notification

Specified by:
receiveServiceDataChangeMessage in interface ServiceDataChangeMessageReceiver
Specified by:
receiveServiceDataChangeMessage in class JMSQueryEvaluator
Parameters:
aMessage - - The service data change message.

receiveRegisterSubscriptionMessage

public void receiveRegisterSubscriptionMessage(Message aMessage)
The receiveRegisterSubscriotionMessage method. This method is executed when there is a message to the Register Subscription topic.

Specified by:
receiveRegisterSubscriptionMessage in interface RegisterSubscriptionMessageReceiver
Specified by:
receiveRegisterSubscriptionMessage in class JMSQueryEvaluator
Parameters:
aMessage - - The register subscription message.

receiveUnregisterSubscriptionMessage

public void receiveUnregisterSubscriptionMessage(Message aMessage)
The receiveUnregisterSubscriptionMessage method. This method is executed when there is a message to the Unregister Subscription topic.

Specified by:
receiveUnregisterSubscriptionMessage in interface UnregisterSubscriptionMessageReceiver
Specified by:
receiveUnregisterSubscriptionMessage in class JMSQueryEvaluator
Parameters:
aMessage - - The unregister subscription message.