ostore.apps.qtree.impl
Class QTreeUpMsgAck

java.lang.Object
  |
  +--ostore.network.NetworkMessage
        |
        +--ostore.apps.qtree.impl.QTreeUpMsgAck
All Implemented Interfaces:
Cloneable, QueueElementIF, QuickSerializable

public class QTreeUpMsgAck
extends NetworkMessage

This is the intermediary message sent between QTree nodes to pass back [aggregated] results to the root. The data is stored in a QTreeFwd. Stages directly listen for this message. However, if not to be agggregated, QTree will dispatch the message towards the next hop. NetworkMessage.user_data code taken from RouteMsg.

Author:
Jason Lee

Field Summary
protected  long id
           
 NodeId source
           
protected  SecureHash treeId
           
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, tries, user_data, wait_ms
 
Constructor Summary
QTreeUpMsgAck(InputBuffer buffer)
           
QTreeUpMsgAck(NodeId peer, boolean inbound, SecureHash treeId, long id, NodeId source)
           
 
Method Summary
 boolean equals(Object o)
           
 long getId()
           
 SecureHash getTreeId()
           
 int hashCode()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 void setTreeId(SecureHash treeId)
           
 String toString()
           
 
Methods inherited from class ostore.network.NetworkMessage
clone
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

treeId

protected SecureHash treeId

id

protected long id

source

public NodeId source
Constructor Detail

QTreeUpMsgAck

public QTreeUpMsgAck(NodeId peer,
                     boolean inbound,
                     SecureHash treeId,
                     long id,
                     NodeId source)

QTreeUpMsgAck

public QTreeUpMsgAck(InputBuffer buffer)
              throws QSException
Method Detail

getId

public long getId()

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class NetworkMessage
Parameters:
buffer - the output buffer to add the object to

toString

public String toString()
Overrides:
toString in class NetworkMessage

getTreeId

public SecureHash getTreeId()

setTreeId

public void setTreeId(SecureHash treeId)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object