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
orphan
protected SecureHash orphan
treeKey
protected TreeKey treeKey
QTreeRepairMsg
public QTreeRepairMsg(NodeId peer,
SecureHash orphan,
TreeKey key)
QTreeRepairMsg
public QTreeRepairMsg(InputBuffer buffer)
throws QSException
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