ostore.tapestry.impl
Class RouteEntry
java.lang.Object
|
+--ostore.tapestry.impl.RouteEntry
- public class RouteEntry
- extends Object
Implements the routing table entry
- Version:
- $Id: RouteEntry.java,v 1.2 2002/01/11 09:40:41 ravenben Exp $
- Author:
- Ben Y. Zhao
REDUNDANT_LVL
public static final int REDUNDANT_LVL
RouteEntry
public RouteEntry()
RouteEntry
public RouteEntry(NodeId route,
Long latency)
getFirst
public NodeId getFirst()
getAtIndex
public NodeId getAtIndex(int i)
add
public void add(NodeId newnode,
Long latency)
switchRoutes
public void switchRoutes(int from,
int to)
sortbyLatency
public void sortbyLatency()
updateLatency
public void updateLatency(NodeId route,
Long latency)
- Search to see if route is actually part of this
routeEntry. If so, then update its latency, and
then do a sort to reorder the routes by latency
toString
public String toString()
- Overrides:
toString
in class Object
size
public int size()