ostore.apps.qtree.impl
Class QTreeRepairMsg

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

public class QTreeRepairMsg
extends NetworkMessage

Sent from newly orphaned children in the QTree to replace their dead parent.

Author:
Jason Lee

Field Summary
protected  SecureHash orphan
           
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
QTreeRepairMsg(InputBuffer buffer)
           
QTreeRepairMsg(NodeId peer, SecureHash orphan, TreeKey key)
           
 
Method Summary
 boolean equals(Object o)
           
 SecureHash getOrphan()
           
 TreeKey getTreeKey()
           
 int hashCode()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 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

orphan

protected SecureHash orphan

treeKey

protected TreeKey treeKey
Constructor Detail

QTreeRepairMsg

public QTreeRepairMsg(NodeId peer,
                      SecureHash orphan,
                      TreeKey key)

QTreeRepairMsg

public QTreeRepairMsg(InputBuffer buffer)
               throws QSException
Method Detail

getTreeKey

public TreeKey getTreeKey()

getOrphan

public SecureHash getOrphan()

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