Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ubermq.chord.jms
Class ChordQueryMessage  view ChordQueryMessage download ChordQueryMessage.java

java.lang.Object
  extended bycom.ubermq.chord.jms.ChordMessage
      extended bycom.ubermq.chord.jms.ChordQueryMessage

public final class ChordQueryMessage
extends ChordMessage

A chord query command.


Field Summary
static java.lang.String CHORD_QUERY_ID_PROPERTY
           
private  java.lang.Object key
           
private  long queryId
           
private  javax.jms.Topic replyTopic
           
 
Fields inherited from class com.ubermq.chord.jms.ChordMessage
CHORD_COMMAND_PROPERTY, CHORD_NOOP, CHORD_NOTIFY, CHORD_QUERY, CHORD_STORE, CHORD_VALUE
 
Constructor Summary
(package private) ChordQueryMessage(javax.jms.Message m)
          Constructs a chord query message.
(package private) ChordQueryMessage(javax.jms.Session session, javax.jms.Topic replyTopic, java.lang.Object key)
          Constructs an outgoing query message.
 
Method Summary
 void execute(javax.jms.TopicSession session, javax.jms.TopicPublisher pub, com.ubermq.chord.ChordNodeProvider p)
          Executes the contained command on the local node specified.
 java.lang.Object getKey()
          Returns the key to query.
 long getQueryId()
           
 
Methods inherited from class com.ubermq.chord.jms.ChordMessage
createFromIncoming, createNotifyMessage, createQueryMessage, createStoreMessage, createValueMessage, getCommand, getJMSMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private java.lang.Object key

replyTopic

private javax.jms.Topic replyTopic

queryId

private long queryId

CHORD_QUERY_ID_PROPERTY

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

ChordQueryMessage

ChordQueryMessage(javax.jms.Message m)
Constructs a chord query message.


ChordQueryMessage

ChordQueryMessage(javax.jms.Session session,
                  javax.jms.Topic replyTopic,
                  java.lang.Object key)
            throws javax.jms.JMSException
Constructs an outgoing query message.

Method Detail

getKey

public java.lang.Object getKey()
Returns the key to query.


getQueryId

public long getQueryId()

execute

public void execute(javax.jms.TopicSession session,
                    javax.jms.TopicPublisher pub,
                    com.ubermq.chord.ChordNodeProvider p)
             throws javax.jms.JMSException
Description copied from class: ChordMessage
Executes the contained command on the local node specified.

Overrides:
execute in class ChordMessage