ostore.tapestry.impl
Class FullTestDriver

java.lang.Object
  |
  +--ostore.tapestry.impl.FullTestDriver
All Implemented Interfaces:
EventHandlerIF, ProfilableIF

public class FullTestDriver
extends Object
implements EventHandlerIF, ProfilableIF


Field Summary
 String class_tag
           
 
Constructor Summary
FullTestDriver()
           
 
Method Summary
 void begin_back_pointer_debug_test()
           
 void begin_dynamic_lookup_test()
           
 void begin_dynamic_publish_test()
           
 void begin_dynamic_route_test()
          dynamic routing test Look at list of dynam vs static nodes, if number of static nodes is more than 1/2 the nodes, then detach a few of them.
 void begin_handle_lookup_rdp_results()
           
 void begin_handle_routing_rdp_results()
           
 void begin_large_network_change()
           
 void begin_misrouting_latency_test()
           
 void begin_multicast_bandwidth_test()
           
 void begin_multicast_route_test()
           
 void begin_network_maintence_under_heavy_load()
           
 void begin_network_operation_under_heavy_dynamic()
           
 void begin_parallel_insertion_test()
           
 void begin_probing_bandwidth_test()
           
 void begin_reachability_test()
           
 void begin_reverse_pointer_debug_test()
           
 void begin_route_switch_test()
           
 void begin_routing_table_debug_test()
           
 void begin_single_insertion_bw_test()
           
 void begin_single_insertion_test()
           
 void begin_static_lookup_test()
           
 void begin_static_route_test()
           
 void begin_trace_driven_test()
           
 void begin_verify_tables_test()
          Send out requests for everyone's routing info
 void begin_waiting_msgs_debug_test()
           
 void destroy()
           
 void dispatch_clear_bandwidth_requests(boolean useful, long waiting_time)
           
 void dispatch_clear_bandwidth_requests(String comment, long waiting_time)
           
 void dispatch_detach_requests()
           
 void dispatch_detach_requests(HashSet static_nodes)
           
 void dispatch_integrate_requests_with_number(int node_num)
           
 void dispatch_integrate_requests()
           
 void dispatch_lookup_requests_by_group()
           
 void dispatch_lookup_requests_single_node(NodeId client)
           
 void dispatch_lookup_requests()
           
 void dispatch_lookup_requests(HashSet fixednodes, boolean repeat)
           
 void dispatch_publish_requests_on_single_node()
           
 void dispatch_publish_requests(int num)
           
 void dispatch_route_requests(double failure, int waiting, int test)
           
 void dispatch_route_requests(int test)
           
 void dispatch_route_requests(int src_index, int dest_index, int test)
           
 void dispatch_routing_path_requests()
           
 void dispatch_single_detach_requests(HashSet static_nodes)
           
 void dispatch_single_integrate_request()
           
 void dispatch_unpublish_request()
           
 SecureHash genID()
          generates a random securehash based on the time
 void handle_debugrespmsg(DebugRespMsg msg)
           
 void handle_mapmsg(DynamicMapMsg msg)
           
 void handle_objmapmsg(DynamicObjMapMsg msg)
           
 void handle_respmsg(FullTestRespMsg msg)
           
 boolean handle_response_detach_request(FullTestRespMsg msg)
           
 boolean handle_response_integrate_request(FullTestRespMsg msg)
           
 boolean handle_response_lookup_request(FullTestRespMsg msg)
           
 boolean handle_response_route_request(FullTestRespMsg msg)
           
 void handle_timeoutevent(TimeOutEvent toe)
           
 void handleEvent(QueueElementIF item)
           
 void handleEvents(QueueElementIF[] items)
           
 void init(ConfigDataIF config)
           
 int injectFaultToTapestry_sim(Parser parser, double percentage, Integer unique_id, long waiting_time)
           
 int injectFaultToTapestry(Parser parser, double percentage, Integer unique_id, long waiting_time)
           
 NodeId[][] machines_grouped_by_latency(NodeId server, int num_group, int num_machine)
           
 NodeId[][] machines_grouped_by_uniform_latency(NodeId server, int num_group, int num_machine)
           
 void next_test()
           
protected  double[][] parse_all_pairs_pings(String pings_file)
           
 void printtagln(String tag, String msg)
           
 int profileSize()
           
 void trace_driven_test()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

class_tag

public String class_tag
Constructor Detail

FullTestDriver

public FullTestDriver()
Method Detail

handleEvents

public void handleEvents(QueueElementIF[] items)
                  throws EventHandlerException
Specified by:
handleEvents in interface EventHandlerIF

printtagln

public void printtagln(String tag,
                       String msg)

init

public void init(ConfigDataIF config)
          throws Exception
Specified by:
init in interface EventHandlerIF

handleEvent

public void handleEvent(QueueElementIF item)
                 throws EventHandlerException
Specified by:
handleEvent in interface EventHandlerIF

handle_timeoutevent

public void handle_timeoutevent(TimeOutEvent toe)

handle_mapmsg

public void handle_mapmsg(DynamicMapMsg msg)

handle_objmapmsg

public void handle_objmapmsg(DynamicObjMapMsg msg)

handle_debugrespmsg

public void handle_debugrespmsg(DebugRespMsg msg)

handle_respmsg

public void handle_respmsg(FullTestRespMsg msg)

next_test

public void next_test()

begin_dynamic_route_test

public void begin_dynamic_route_test()
dynamic routing test Look at list of dynam vs static nodes, if number of static nodes is more than 1/2 the nodes, then detach a few of them. Then insert all of the dynamic nodes, and then request that every node route to every other

begin_dynamic_lookup_test

public void begin_dynamic_lookup_test()

begin_dynamic_publish_test

public void begin_dynamic_publish_test()

begin_verify_tables_test

public void begin_verify_tables_test()
Send out requests for everyone's routing info

begin_single_insertion_test

public void begin_single_insertion_test()

trace_driven_test

public void trace_driven_test()

begin_trace_driven_test

public void begin_trace_driven_test()

begin_parallel_insertion_test

public void begin_parallel_insertion_test()

begin_single_insertion_bw_test

public void begin_single_insertion_bw_test()

begin_static_route_test

public void begin_static_route_test()

begin_multicast_route_test

public void begin_multicast_route_test()

begin_probing_bandwidth_test

public void begin_probing_bandwidth_test()

begin_reachability_test

public void begin_reachability_test()

injectFaultToTapestry_sim

public int injectFaultToTapestry_sim(Parser parser,
                                     double percentage,
                                     Integer unique_id,
                                     long waiting_time)

injectFaultToTapestry

public int injectFaultToTapestry(Parser parser,
                                 double percentage,
                                 Integer unique_id,
                                 long waiting_time)

begin_route_switch_test

public void begin_route_switch_test()

begin_misrouting_latency_test

public void begin_misrouting_latency_test()

begin_multicast_bandwidth_test

public void begin_multicast_bandwidth_test()

begin_static_lookup_test

public void begin_static_lookup_test()

begin_large_network_change

public void begin_large_network_change()

begin_network_maintence_under_heavy_load

public void begin_network_maintence_under_heavy_load()

begin_network_operation_under_heavy_dynamic

public void begin_network_operation_under_heavy_dynamic()

dispatch_integrate_requests

public void dispatch_integrate_requests()

dispatch_integrate_requests_with_number

public void dispatch_integrate_requests_with_number(int node_num)

dispatch_single_integrate_request

public void dispatch_single_integrate_request()

dispatch_clear_bandwidth_requests

public void dispatch_clear_bandwidth_requests(boolean useful,
                                              long waiting_time)

dispatch_clear_bandwidth_requests

public void dispatch_clear_bandwidth_requests(String comment,
                                              long waiting_time)

dispatch_detach_requests

public void dispatch_detach_requests()

dispatch_detach_requests

public void dispatch_detach_requests(HashSet static_nodes)

dispatch_single_detach_requests

public void dispatch_single_detach_requests(HashSet static_nodes)

dispatch_routing_path_requests

public void dispatch_routing_path_requests()

dispatch_route_requests

public void dispatch_route_requests(int test)

dispatch_route_requests

public void dispatch_route_requests(double failure,
                                    int waiting,
                                    int test)

dispatch_route_requests

public void dispatch_route_requests(int src_index,
                                    int dest_index,
                                    int test)

dispatch_publish_requests

public void dispatch_publish_requests(int num)

dispatch_publish_requests_on_single_node

public void dispatch_publish_requests_on_single_node()

dispatch_lookup_requests

public void dispatch_lookup_requests()

dispatch_lookup_requests

public void dispatch_lookup_requests(HashSet fixednodes,
                                     boolean repeat)

dispatch_lookup_requests_by_group

public void dispatch_lookup_requests_by_group()

dispatch_lookup_requests_single_node

public void dispatch_lookup_requests_single_node(NodeId client)

dispatch_unpublish_request

public void dispatch_unpublish_request()

handle_response_route_request

public boolean handle_response_route_request(FullTestRespMsg msg)

handle_response_lookup_request

public boolean handle_response_lookup_request(FullTestRespMsg msg)

handle_response_integrate_request

public boolean handle_response_integrate_request(FullTestRespMsg msg)

handle_response_detach_request

public boolean handle_response_detach_request(FullTestRespMsg msg)

begin_waiting_msgs_debug_test

public void begin_waiting_msgs_debug_test()

begin_routing_table_debug_test

public void begin_routing_table_debug_test()

begin_back_pointer_debug_test

public void begin_back_pointer_debug_test()

begin_reverse_pointer_debug_test

public void begin_reverse_pointer_debug_test()

machines_grouped_by_uniform_latency

public NodeId[][] machines_grouped_by_uniform_latency(NodeId server,
                                                      int num_group,
                                                      int num_machine)

machines_grouped_by_latency

public NodeId[][] machines_grouped_by_latency(NodeId server,
                                              int num_group,
                                              int num_machine)

begin_handle_lookup_rdp_results

public void begin_handle_lookup_rdp_results()

begin_handle_routing_rdp_results

public void begin_handle_routing_rdp_results()

parse_all_pairs_pings

protected double[][] parse_all_pairs_pings(String pings_file)

genID

public SecureHash genID()
generates a random securehash based on the time
Returns:
SecureHash generated from the current time

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface EventHandlerIF

profileSize

public int profileSize()
Specified by:
profileSize in interface ProfilableIF