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

Field Summary
protected  QuickSerializable _user_data
           
protected  InputBuffer _user_data_buffer
           
protected  int _user_data_length
           
 boolean automatic
           
 long id
           
 NodeId source_node
           
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
QTreeDownMsg(InputBuffer buffer)
           
QTreeDownMsg(NodeId peer, boolean inbound, boolean automatic, QuickSerializable user_data, SecureHash treeId, long id, NodeId source_node)
           
 
Method Summary
 boolean equals(Object o)
           
 SecureHash getTreeId()
           
 int hashCode()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 void setTreeId(SecureHash tree)
           
 String toString()
           
 QuickSerializable user_data()
           
 
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

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
Constructor Detail

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
Method Detail

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