|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
verinec.importer.analysis.traceroute.ATraceRoute
public abstract class ATraceRoute
This abstract class defines some abstract methodes, which has to be implemented of every TraceRoute class and it provides some common methods.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private boolean |
cancled
Variable to cancle the execution of the traceroute |
protected Logger |
logger
Logging |
static short |
MAX_RETRIES
Number of tries for an unreachable host ie. timeout |
static short |
MAX_UNREACHABLE_HOSTS
Number of left out hosts which are unreachable (ie. a timeout occured). |
protected int |
maxHops
The number of maximum steps to a target host. |
protected String |
targetHost
The ip adress of the target host in string representation. |
protected int |
timeOut
time out in ms between sending and receiving of a packet |
static String |
UNREACHABLE_HOST_IP
Standart ip for an host which is unreachable ie. a timeout occred |
static String |
UNREACHABLE_HOST_NAME
Standart host name for an host which is unreachable ie. a timeout occred |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ATraceRoute()
|
|
| Method Summary | |
|---|---|
protected void |
abort()
Cancle the execution as soon as possible. |
protected boolean |
isCancled()
Test if the execution was cancled. |
protected abstract Vector |
traceRoute(int maxHops,
int timeOut,
String target)
The traceroute method, which has to be implemented. |
| 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 |
|---|
protected Logger logger
public static final String UNREACHABLE_HOST_IP
public static final String UNREACHABLE_HOST_NAME
public static final short MAX_UNREACHABLE_HOSTS
public static final short MAX_RETRIES
protected int timeOut
protected int maxHops
protected String targetHost
private boolean cancled
| Constructor Detail |
|---|
public ATraceRoute()
| Method Detail |
|---|
protected abstract 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)
TraceRouteExceptionprotected void abort()
protected boolean isCancled()
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||