bamboo.router
Class NeighborInfo

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

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

NeighborInfo.

Version:
$Id: NeighborInfo.java,v 1.9 2003/10/05 18:22:11 srhea Exp $
Author:
Sean C. Rhea

Field Summary
 BigInteger guid
           
 ostore.util.NodeId node_id
           
 
Constructor Summary
NeighborInfo(ostore.util.InputBuffer buffer)
           
NeighborInfo(ostore.util.NodeId n, BigInteger g)
           
 
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
Constructor Detail

NeighborInfo

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

NeighborInfo

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