verinec.importer.analysis.traceroute
Class TRTCPWindows

java.lang.Object
  extended by java.lang.Thread
      extended by verinec.importer.analysis.traceroute.ATraceRoute
          extended by verinec.importer.analysis.traceroute.ATRShellCommand
              extended by verinec.importer.analysis.traceroute.TRTCPWindows
All Implemented Interfaces:
Runnable

public class TRTCPWindows
extends ATRShellCommand

This class provides a traceroute by using the TraceTCP tool for windows. tracetcp.exe is expected to be at the location PATH. fixme: executing fails with error=2 (which usually means file not found). can not find out why...

Author:
martial.seifriz at unifr.ch

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private static File PATH
          The path of the extern tcptraceroute porgramm
private static String trace_exec
           
 
Fields inherited from class verinec.importer.analysis.traceroute.ATRShellCommand
p
 
Fields inherited from class verinec.importer.analysis.traceroute.ATraceRoute
logger, MAX_RETRIES, MAX_UNREACHABLE_HOSTS, maxHops, targetHost, timeOut, UNREACHABLE_HOST_IP, UNREACHABLE_HOST_NAME
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TRTCPWindows()
          Prepare the traceroute instance and check for existence of the tracetcp.exe program at the specified location.
 
Method Summary
 Vector traceRoute(int maxHops, int timeOut, String target)
          The traceroute algorithm using the extern tracetcp.exe programm.
 
Methods inherited from class verinec.importer.analysis.traceroute.ATRShellCommand
extractIPs
 
Methods inherited from class verinec.importer.analysis.traceroute.ATraceRoute
abort, isCancled
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

PATH

private static final File PATH
The path of the extern tcptraceroute porgramm


trace_exec

private static final String trace_exec
See Also:
Constant Field Values
Constructor Detail

TRTCPWindows

public TRTCPWindows()
Prepare the traceroute instance and check for existence of the tracetcp.exe program at the specified location.

Method Detail

traceRoute

public Vector traceRoute(int maxHops,
                         int timeOut,
                         String target)
The traceroute algorithm using the extern tracetcp.exe programm. Parsing is delegated to the super class.

Specified by:
traceRoute in class ATraceRoute
Parameters:
maxHops - the maximum number of hops between the source and targed host
timeOut - the time in ms between sending and receiving of a request
target - the target host IP in string representation (xxx.xxx.xxx.xxx)
Returns:
a vector containing the IPs

Copyright © 2005 Verinec, DIUF