ucr.core
Class RouteTable

java.lang.Object
  extended byucr.core.RouteTable

class RouteTable
extends java.lang.Object

Contains history information on Messages used for routing Maps GUIDs to the connection they arrived on


Field Summary
private  int maxSize
           
private  java.util.HashMap primaryHashMap
           
private  java.util.HashMap secondaryHashMap
           
 
Constructor Summary
(package private) RouteTable(int maxSize)
          Construct the RouteTable, indicating maximum size
 
Method Summary
(package private)  boolean containsGUID(GUID guid)
          Check if Connection history exists for guid
(package private)  NodeConnection get(GUID guid)
          Retrieves a Connection for a GUID
(package private)  void put(GUID guid, NodeConnection connection)
          Puts a GUID to Connection mapping in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

primaryHashMap

private java.util.HashMap primaryHashMap

secondaryHashMap

private java.util.HashMap secondaryHashMap

maxSize

private int maxSize
Constructor Detail

RouteTable

RouteTable(int maxSize)
Construct the RouteTable, indicating maximum size

Parameters:
maxSize - maximum number of records to maintain
Method Detail

put

void put(GUID guid,
         NodeConnection connection)
Puts a GUID to Connection mapping in the table


get

NodeConnection get(GUID guid)
Retrieves a Connection for a GUID


containsGUID

boolean containsGUID(GUID guid)
Check if Connection history exists for guid