ostore.apps.qtree.impl
Class QTreeCloseMsg

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

public class QTreeCloseMsg
extends NetworkMessage

Author:
Jason Lee

Field Summary
protected  TreeKey key
           
protected  GuidAddr parent
           
protected  SecureHash recp
           
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, tries, user_data, wait_ms
 
Constructor Summary
QTreeCloseMsg(InputBuffer buffer)
           
QTreeCloseMsg(NodeId peer, boolean inbound, TreeKey key, GuidAddr parent, SecureHash recp)
           
 
Method Summary
 boolean equals(Object o)
           
 GuidAddr getParent()
           
 SecureHash getRecp()
           
 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

key

protected TreeKey key

parent

protected GuidAddr parent

recp

protected SecureHash recp
Constructor Detail

QTreeCloseMsg

public QTreeCloseMsg(NodeId peer,
                     boolean inbound,
                     TreeKey key,
                     GuidAddr parent,
                     SecureHash recp)

QTreeCloseMsg

public QTreeCloseMsg(InputBuffer buffer)
              throws QSException
Method Detail

getTreeKey

public TreeKey getTreeKey()

getRecp

public SecureHash getRecp()

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

getParent

public GuidAddr getParent()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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