|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
verinec.importer.analysis.AAnalyserTask
verinec.importer.analysis.traceroute.TraceWorkerThread
public class TraceWorkerThread
This class does the traceroutes. First a new host to trace will be get form the StartTraceRoute Object, then the trace will be done and after that the result is sent to the StartTraceRoute and the iteration starts again.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private boolean |
DEBUG
|
private boolean |
doJob
this varibale is set to true to start the traceroutes and it is set to false to stop the job |
private int |
hops
the number of max hops |
private Logger |
log
|
private String |
name
the name of this task |
private StartTraceRoute |
starter
the StartTraceRoute object, ie the caller of this thread |
private int |
timeOut
the timeOut for the traceroute in ms |
private TraceRoute |
tr
the traceroute object |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
TraceWorkerThread(StartTraceRoute starter,
int algo,
int timeOut,
int hops,
String name)
The constructor just initialize the object. |
|
| Method Summary | |
|---|---|
void |
abortOperation()
Abort the traceroute operation. |
void |
addToResult(Vector hops,
HostCommRenderer target)
Save the result of a trace. |
void |
run()
Run the trace route thread. |
| Methods inherited from class verinec.importer.analysis.AAnalyserTask |
|---|
getStarter, printMessage, setStarter |
| 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, 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 |
|---|
private Logger log
private int timeOut
private int hops
private String name
private StartTraceRoute starter
private TraceRoute tr
private final boolean DEBUG
private boolean doJob
| Constructor Detail |
|---|
public TraceWorkerThread(StartTraceRoute starter,
int algo,
int timeOut,
int hops,
String name)
throws TraceRouteException
starter - the StartTraceRoute calleralgo - the traceroute algorithmtimeOut - the timeOut of the traceroute in mshops - the number of max hopsname - the name of this task
TraceRouteException| Method Detail |
|---|
public void run()
run in interface Runnablerun in class Threadpublic void abortOperation()
abortOperation in class AAnalyserTask
public void addToResult(Vector hops,
HostCommRenderer target)
hops - a vector with the hosts, which are found.target - the target to which the trace was done.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||