bamboo.api
Class BambooNeighborInfo

java.lang.Object
  extended by bamboo.api.BambooNeighborInfo
All Implemented Interfaces:
Comparable, ostore.util.QuickSerializable

public class BambooNeighborInfo
extends Object
implements Comparable, ostore.util.QuickSerializable

BambooNeighborInfo.

Version:
$Id: BambooNeighborInfo.java,v 1.1 2003/10/05 19:02:02 srhea Exp $
Author:
Sean C. Rhea

Field Summary
 BigInteger guid
           
 ostore.util.NodeId node_id
           
 double rtt_ms
           
 
Constructor Summary
BambooNeighborInfo(ostore.util.InputBuffer buffer)
           
BambooNeighborInfo(ostore.util.NodeId n, BigInteger g)
           
BambooNeighborInfo(ostore.util.NodeId n, BigInteger g, double r)
           
 
Method Summary
 int compareTo(Object rhs)
           
 boolean equals(Object rhs)
           
 int hashCode()
           
 void serialize(ostore.util.OutputBuffer buffer)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

node_id

public ostore.util.NodeId node_id

guid

public BigInteger guid

rtt_ms

public double rtt_ms
Constructor Detail

BambooNeighborInfo

public BambooNeighborInfo(ostore.util.NodeId n,
                          BigInteger g,
                          double r)

BambooNeighborInfo

public BambooNeighborInfo(ostore.util.NodeId n,
                          BigInteger g)

BambooNeighborInfo

public BambooNeighborInfo(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

equals

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

compareTo

public int compareTo(Object rhs)
Specified by:
compareTo in interface Comparable

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object