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
treeId
protected SecureHash treeId
id
protected long id
source
public NodeId source
QTreeUpMsgAck
public QTreeUpMsgAck(NodeId peer,
boolean inbound,
SecureHash treeId,
long id,
NodeId source)
QTreeUpMsgAck
public QTreeUpMsgAck(InputBuffer buffer)
throws QSException
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