bamboo.dmgr
Class FetchMerkleTreeNodeReq

java.lang.Object
  extended by ostore.network.NetworkMessage
      extended by bamboo.dmgr.FetchMerkleTreeNodeReq
All Implemented Interfaces:
Cloneable, ostore.util.QuickSerializable, QueueElementIF

public class FetchMerkleTreeNodeReq
extends ostore.network.NetworkMessage

FetchMerkleTreeNodeReq.

Version:
$Id: FetchMerkleTreeNodeReq.java,v 1.5 2004/02/10 21:24:04 srhea Exp $
Author:
Sean C. Rhea

Field Summary
 int expansion
          The expansion factor of the tree.
 byte[] expected_hash
          Our hash for this node.
 BigInteger high_guid
          The upper bound of the shared database.
 int level
          The level in the tree at which the node resides.
 BigInteger low_guid
          The lower bound of the shared database.
protected  long low_time
          The lower bound of the times covered by this node
 BigInteger peer_guid
          The guid of the source node of this query.
 long seq
          To pair it up with its response.
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, timeout_sec, user_data, wait_ms
 
Constructor Summary
FetchMerkleTreeNodeReq(ostore.util.InputBuffer buffer)
           
FetchMerkleTreeNodeReq(ostore.util.NodeId dest, BigInteger pg, BigInteger lg, BigInteger hg, int exp, int lv, long lt, byte[] eh, long s)
           
 
Method Summary
 Object clone()
           
 void serialize(ostore.util.OutputBuffer buffer)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

peer_guid

public BigInteger peer_guid
The guid of the source node of this query.


low_guid

public BigInteger low_guid
The lower bound of the shared database.


high_guid

public BigInteger high_guid
The upper bound of the shared database.


expansion

public int expansion
The expansion factor of the tree. For error checking only--we expect all nodes to use the same expansion factor.


level

public int level
The level in the tree at which the node resides.


low_time

protected long low_time
The lower bound of the times covered by this node


expected_hash

public byte[] expected_hash
Our hash for this node.


seq

public long seq
To pair it up with its response.

Constructor Detail

FetchMerkleTreeNodeReq

public FetchMerkleTreeNodeReq(ostore.util.NodeId dest,
                              BigInteger pg,
                              BigInteger lg,
                              BigInteger hg,
                              int exp,
                              int lv,
                              long lt,
                              byte[] eh,
                              long s)

FetchMerkleTreeNodeReq

public FetchMerkleTreeNodeReq(ostore.util.InputBuffer buffer)
                       throws ostore.util.QSException
Throws:
ostore.util.QSException
Method Detail

serialize

public void serialize(ostore.util.OutputBuffer buffer)
Specified by:
serialize in interface ostore.util.QuickSerializable
Overrides:
serialize in class ostore.network.NetworkMessage

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class ostore.network.NetworkMessage
Throws:
CloneNotSupportedException

toString

public String toString()
Overrides:
toString in class ostore.network.NetworkMessage