verinec.importer.analysis.traceroute
Class ATRShellCommand

java.lang.Object
  extended by java.lang.Thread
      extended by verinec.importer.analysis.traceroute.ATraceRoute
          extended by verinec.importer.analysis.traceroute.ATRShellCommand
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
TRShellCommandLinux, TRShellCommandWindows, TRTCPLinux, TRTCPWindows

public abstract class ATRShellCommand
extends ATraceRoute

An abstract class, which parses the output of an external traceroute program. If the MAX_UNREACHABLE_HOSTS count is reached, interrupts the external program.

Author:
martial.seifriz at unifr.ch

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  ProgramExec p
          The shell command process
 
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
ATRShellCommand()
           
 
Method Summary
 Vector extractIPs(BufferedReader in)
          Parse the ips of the process output and add them to the result vector which is defined in ATraceRoute.
 
Methods inherited from class verinec.importer.analysis.traceroute.ATraceRoute
abort, isCancled, traceRoute
 
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

p

protected ProgramExec p
The shell command process

Constructor Detail

ATRShellCommand

public ATRShellCommand()
Method Detail

extractIPs

public Vector extractIPs(BufferedReader in)
Parse the ips of the process output and add them to the result vector which is defined in ATraceRoute. If the MAX_UNREACHABLE_HOSTS count is reached, interrupts the process.

Parameters:
in - a BufferedReader of the process output
Returns:
the vector of ip

Copyright © 2005 Verinec, DIUF