ostore.apps.qtree.impl
Class QTreeGroupMsg

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

public class QTreeGroupMsg
extends NetworkMessage

Author:
Jason Lee

Field Summary
protected  boolean delay_build
           
protected  SecureHash parent
           
protected  QSVector path
           
protected  TreeKey treeKey
           
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, tries, user_data, wait_ms
 
Constructor Summary
QTreeGroupMsg(InputBuffer buffer)
           
QTreeGroupMsg(NodeId peer, SecureHash leader, TreeKey key, QSVector leaderPath, boolean delay)
           
 
Method Summary
 boolean equals(Object o)
           
 SecureHash getParent()
           
 QSVector getPath()
           
 TreeKey getTreeKey()
           
 int hashCode()
           
 boolean isDelayed()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 void setPath(QSVector leaderPath)
           
 void setTreeId(TreeKey key)
           
 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

parent

protected SecureHash parent

treeKey

protected TreeKey treeKey

path

protected QSVector path

delay_build

protected boolean delay_build
Constructor Detail

QTreeGroupMsg

public QTreeGroupMsg(NodeId peer,
                     SecureHash leader,
                     TreeKey key,
                     QSVector leaderPath,
                     boolean delay)

QTreeGroupMsg

public QTreeGroupMsg(InputBuffer buffer)
              throws QSException
Method Detail

getParent

public SecureHash getParent()

getTreeKey

public TreeKey getTreeKey()

setTreeId

public void setTreeId(TreeKey key)

isDelayed

public boolean isDelayed()

getPath

public QSVector getPath()

setPath

public void setPath(QSVector leaderPath)

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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