ostore.apps.qtree.impl
Class QTreeDownMsg
java.lang.Object
|
+--ostore.network.NetworkMessage
|
+--ostore.apps.qtree.impl.QTreeDownMsg
- All Implemented Interfaces:
- Cloneable, QueueElementIF, QuickSerializable
- public class QTreeDownMsg
- extends NetworkMessage
Sent from the root to every node in the query tree. Visdemo, Netbait
also listen to this message directly. QTree listens and forwards this
message to each node's children.
- Author:
- Jason Lee
treeId
protected SecureHash treeId
automatic
public boolean automatic
id
public long id
source_node
public NodeId source_node
_user_data
protected QuickSerializable _user_data
_user_data_length
protected int _user_data_length
_user_data_buffer
protected InputBuffer _user_data_buffer
QTreeDownMsg
public QTreeDownMsg(NodeId peer,
boolean inbound,
boolean automatic,
QuickSerializable user_data,
SecureHash treeId,
long id,
NodeId source_node)
QTreeDownMsg
public QTreeDownMsg(InputBuffer buffer)
throws QSException
user_data
public QuickSerializable user_data()
throws QSException
QSException
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
getTreeId
public SecureHash getTreeId()
setTreeId
public void setTreeId(SecureHash tree)
toString
public String toString()
- Overrides:
toString
in class NetworkMessage
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object