bamboo.router
Class RoutingTableTest

java.lang.Object
  extended by bamboo.util.StandardStage
      extended by bamboo.router.RoutingTableTest
All Implemented Interfaces:
EventHandlerIF, SingleThreadedEventHandlerIF

public class RoutingTableTest
extends StandardStage
implements SingleThreadedEventHandlerIF

Tests the quality of the routing tables, for use under the simulator only.

Version:
$Id: RoutingTableTest.java,v 1.16 2004/02/13 04:28:01 srhea Exp $
Author:
Sean C. Rhea

Nested Class Summary
protected static class RoutingTableTest.Alarm
           
 
Field Summary
protected static Set all_nodes
           
protected static long app_id
           
protected  int check_number
           
protected  int check_period
           
protected  int DIGIT_VALUES
           
protected  int GUID_DIGITS
           
protected static Map guid_to_stage
           
protected  long last_find_owner
           
protected  Set leaf_set
           
protected  BigInteger MODULUS
           
protected  NeighborInfo my_ni
           
protected  soss.network.Network network
           
protected  String output_prefix
           
protected  Random rand
           
protected  Set rt_set
           
 
Fields inherited from class bamboo.util.StandardStage
acore, classifier, DEBUG, event_types, inb_msg_types, logger, my_node_id, my_sink, outb_msg_types, sim_running
 
Constructor Summary
RoutingTableTest()
           
 
Method Summary
 void do_find_owner()
           
 void handleEvent(QueueElementIF item)
           
 void init(ConfigDataIF config)
           
 
Methods inherited from class bamboo.util.StandardStage
BUG, BUG, BUG, config_get_boolean, config_get_double, config_get_int, config_get_string, configGetInt, destroy, dispatch, enqueue, handleEvents, lookup_stage, now_ms, timer_ms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

app_id

protected static final long app_id

all_nodes

protected static Set all_nodes

guid_to_stage

protected static Map guid_to_stage

GUID_DIGITS

protected int GUID_DIGITS

DIGIT_VALUES

protected int DIGIT_VALUES

MODULUS

protected BigInteger MODULUS

rt_set

protected Set rt_set

my_ni

protected NeighborInfo my_ni

network

protected soss.network.Network network

leaf_set

protected Set leaf_set

output_prefix

protected String output_prefix

check_period

protected int check_period

check_number

protected int check_number

last_find_owner

protected long last_find_owner

rand

protected Random rand
Constructor Detail

RoutingTableTest

public RoutingTableTest()
                 throws Exception
Throws:
Exception
Method Detail

init

public void init(ConfigDataIF config)
          throws Exception
Specified by:
init in interface EventHandlerIF
Overrides:
init in class StandardStage
Throws:
Exception

do_find_owner

public void do_find_owner()

handleEvent

public void handleEvent(QueueElementIF item)
Specified by:
handleEvent in interface EventHandlerIF
Overrides:
handleEvent in class StandardStage