|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.importer.analysis.traceroute.TraceRoute
public class TraceRoute
This class manages several different possibilities to do a traceroute and allows to use them in a general, common way.
| Field Summary | |
|---|---|
private int |
algorithm
with algorithm the algorithm of the traceroute can be choosen. |
static int |
DEFAULT_MAX_HOPS
default parameter for maximum hops |
static int |
DEFAULT_MODUS
Default mode uses the shell command. |
static int |
DEFAULT_TIMEOUT
default parameter for the time out |
static int |
JPCAP
Algorithm: Use our own implementation with JPCAP. |
private Logger |
logger
The logger for this object |
static int |
OS_SHELL_COMMAND
Algorithm: Use the OS shell command |
static int |
TCP_TRACEROUTE
Algorithm: Use the TCP traceroute executable |
private ATraceRoute |
tr
the object, where the specific traceroute algorithm is implemented |
| Constructor Summary | |
|---|---|
TraceRoute()
the defalt constructor, it sets the algorithm to a default value. |
|
TraceRoute(int algorithm)
the constructor, it sets the algorithm |
|
| Method Summary | |
|---|---|
void |
abort()
Abort the executions as soon as possible. |
int |
getAlgorithm()
Fetch the used algorithm. |
String |
getUnreachableHostIP()
get the representation of an unreachable host |
void |
setModus(int algorithm)
sets the algorithm. ie the algorithm, which should be used and initialisize the AtraceRoute object |
Vector |
traceRoute(int maxHops,
int timeOut,
String target)
public traceroute command |
Vector |
traceRoute(int maxHops,
int timeOut,
String target,
int modus)
the traceRoute function. all parameter are checked here, the algorithm is set and if everything is ok, the traceroute method is called. |
Vector |
traceRoute(String target)
public traceroute command with Default parameters for maxHops, timeOut and Modus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int OS_SHELL_COMMAND
public static final int JPCAP
public static final int TCP_TRACEROUTE
public static final int DEFAULT_MODUS
private Logger logger
public static final int DEFAULT_MAX_HOPS
public static final int DEFAULT_TIMEOUT
private ATraceRoute tr
private int algorithm
| Constructor Detail |
|---|
public TraceRoute(int algorithm)
throws TraceRouteException
algorithm - The used algorithm ie. traceroute algorithm
TraceRouteException
public TraceRoute()
throws TraceRouteException
TraceRouteException| Method Detail |
|---|
public Vector traceRoute(int maxHops,
int timeOut,
String target)
throws TraceRouteException
maxHops - the maximum number of hops between the source and targed hosttimeOut - the time in ms between sending and receiving of a requesttarget - the target host IP in string representation (xxx.xxx.xxx.xxx)
TraceRouteException
public Vector traceRoute(String target)
throws TraceRouteException
target - The target host IP in string representation (xxx.xxx.xxx.xxx)
TraceRouteException
public Vector traceRoute(int maxHops,
int timeOut,
String target,
int modus)
throws TraceRouteException
maxHops - the maximum number of hops between the source and targed hosttimeOut - the time in ms between sending and receiving of a requesttarget - the target host IP in string representation (xxx.xxx.xxx.xxx)modus - the used algorithm ie. traceroute algorithm
TraceRouteException
public void setModus(int algorithm)
throws TraceRouteException
algorithm - The new algorithm.
TraceRouteExceptionpublic String getUnreachableHostIP()
public void abort()
public int getAlgorithm()
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||