ostore.apps.qtree.impl
Class QTreeGroupMsgAck

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

public class QTreeGroupMsgAck
extends NetworkMessage

Author:
Jason Lee

Field Summary
protected  boolean ack
           
protected  GuidAddr child
           
static int CLOSE
           
static int FAILURE
           
protected  TreeKey key
           
static int OPEN
           
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, tries, user_data, wait_ms
 
Constructor Summary
QTreeGroupMsgAck(InputBuffer buffer)
           
QTreeGroupMsgAck(NodeId peer, GuidAddr childGuid, TreeKey key, boolean acknowledgement)
           
 
Method Summary
 boolean equals(Object o)
           
 boolean getAck()
           
 GuidAddr getChild()
           
 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

ack

protected boolean ack

child

protected GuidAddr child

OPEN

public static final int OPEN
See Also:
Constant Field Values

CLOSE

public static final int CLOSE
See Also:
Constant Field Values

FAILURE

public static final int FAILURE
See Also:
Constant Field Values
Constructor Detail

QTreeGroupMsgAck

public QTreeGroupMsgAck(NodeId peer,
                        GuidAddr childGuid,
                        TreeKey key,
                        boolean acknowledgement)

QTreeGroupMsgAck

public QTreeGroupMsgAck(InputBuffer buffer)
                 throws QSException
Method Detail

getTreeKey

public TreeKey getTreeKey()

getChild

public GuidAddr getChild()

getAck

public boolean getAck()

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