Class ThreadedTrace

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ThreadedTrace
All Implemented Interfaces:
java.lang.Runnable

public class ThreadedTrace
extends java.lang.Thread

ThreadedTrace.java runs 50 traceroutes at a time (in 50 different threads) putting the results into files named "tracesN" where N=1,50. Each thread does 500 traceroutes from random servers to random destinations. USAGE: java ThreadedTrace destsFile tracesPerThread numThreads

See Also:
RouteServer, IPDestination

Field Summary
static java.util.ArrayList allDests
           
static java.util.ArrayList allServers
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ThreadedTrace(int testCount, int num)
           
 
Method Summary
 TraceLine lastGoodHop(java.util.ArrayList answers)
           
static void main(java.lang.String[] args)
          test ThreadedTrace by reading a file of destinations and printing out the statistics.
static void printAnswers(java.util.ArrayList answers)
          prints the traceroute as a sequence of lines, one per hop.
 void printRoute(java.util.ArrayList answers)
          prints a single line summary of the AS path
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

allServers

public static java.util.ArrayList allServers

allDests

public static java.util.ArrayList allDests
Constructor Detail

ThreadedTrace

public ThreadedTrace(int testCount,
                     int num)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

printAnswers

public static void printAnswers(java.util.ArrayList answers)
prints the traceroute as a sequence of lines, one per hop.


printRoute

public void printRoute(java.util.ArrayList answers)
prints a single line summary of the AS path


lastGoodHop

public TraceLine lastGoodHop(java.util.ArrayList answers)

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
test ThreadedTrace by reading a file of destinations and printing out the statistics.

java.io.IOException