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

Quick Search    Search Deep

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

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

public final class ChordStoreMessage
extends ChordMessage

A chord store command.


Field Summary
private  java.lang.Object key
           
private  java.lang.Object value
           
 
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) ChordStoreMessage(javax.jms.Message m)
          Constructs a chord store message from an incoming JMS message.
(package private) ChordStoreMessage(javax.jms.Session session, java.lang.Object key, java.lang.Object value)
          Constructs an outgoing chord store command.
 
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 store the value under.
 java.lang.Object getValue()
          Returns the value that should be stored.
 
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

value

private java.lang.Object value
Constructor Detail

ChordStoreMessage

ChordStoreMessage(javax.jms.Message m)
Constructs a chord store message from an incoming JMS message.


ChordStoreMessage

ChordStoreMessage(javax.jms.Session session,
                  java.lang.Object key,
                  java.lang.Object value)
            throws javax.jms.JMSException
Constructs an outgoing chord store command.

Method Detail

getKey

public java.lang.Object getKey()
Returns the key to store the value under.


getValue

public java.lang.Object getValue()
Returns the value that should be stored.


execute

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

Overrides:
execute in class ChordMessage