|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.importer.analysis.AnalysisThread.AnalyserStatus
public class AnalysisThread.AnalyserStatus
This Klass allows the store the actual state of the sniffing, traceroutes, host lookups and the scanning.
| Field Summary | |
|---|---|
private AnalysisThread |
analyser
|
private String |
globalState
|
(package private) double[] |
lookUpHost
The actual state of the host lookups |
private String |
lookUpHostState
The actual state of the host lookups as a string to display |
private int |
MODE
|
(package private) double[] |
scan
The actual state of the scanning |
private String |
scanState
The actual state of the scanning as a string to display |
(package private) double[][] |
sniffing
The actual state of the sniffing |
private String[] |
sniffingState
The actual state of the sniffing as a string to display |
private int |
START_TIME
|
private int |
TOTAL_HOSTS
|
(package private) double[] |
tr
The actual state of the traceroutes |
private String |
trState
The actual state of the traceroutes as a string to display |
private int |
WORKED_OFF_HOSTS
|
| Constructor Summary | |
|---|---|
AnalysisThread.AnalyserStatus(AnalysisThread analyser)
The constructor. |
|
| Method Summary | |
|---|---|
String |
getState()
Fetch the actual golbal state of the analyis process. |
void |
initLookUpHost()
Prepare the host lookup state. |
void |
initScan(int totalHosts)
Prepare the scanning state. |
void |
initSniffing(int id,
int mode,
long count)
Initialize the sniffing state of a specified divice. |
void |
initSniffingGeneral(int totalInterfaces)
Prepare the sniffing state. |
void |
initTR(int totalHosts)
Prepare the traceroute state. |
private double |
myRound(double value,
int scale)
This methode allows to round a number on a specified scale. |
void |
setHostLookUp(String state)
Set the actual state of the host lookups. |
void |
setScanState(String state)
Set the actual state of the scanning. |
void |
setSniffingState(String state)
Set the actual state of the sniffing. |
void |
setTRState(String state)
Set the actual state of the traceroutes. |
private void |
updateGlobalState()
Update the global state, i.e. the whole state of the analysis process, which will be displayed. |
void |
updateLookUpHost(int totalHosts,
int workedOfHosts)
Update the state of the host lookup. |
void |
updateScan()
Update the scan State. |
void |
updateSniffing(int id)
Update the sniffing state of a specified device. |
void |
updateTR()
Update the actual state of the traceroutes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final int TOTAL_HOSTS
private final int WORKED_OFF_HOSTS
private final int START_TIME
private final int MODE
private AnalysisThread analyser
private String globalState
double[][] sniffing
double[] tr
double[] scan
double[] lookUpHost
private String[] sniffingState
private String trState
private String scanState
private String lookUpHostState
| Constructor Detail |
|---|
public AnalysisThread.AnalyserStatus(AnalysisThread analyser)
analyser - The AnalysisThread, which calls this constructor.| Method Detail |
|---|
public void initSniffingGeneral(int totalInterfaces)
totalInterfaces -
public void initSniffing(int id,
int mode,
long count)
id - The specified device, on which the sniffer is running.mode - The mode, which is used, i.e. a number of packages or a time interval.count - The final number or time which should be reached.public void updateSniffing(int id)
id - The ID of the specified device.public void setSniffingState(String state)
state - The state so set.public void initTR(int totalHosts)
totalHosts - The number of hosts, which should be traced.public void updateTR()
public void setTRState(String state)
state - The state so set.public void initScan(int totalHosts)
totalHosts - The number of hosts, which should be scanned.public void updateScan()
public void setScanState(String state)
state - The state so set.public void initLookUpHost()
public void updateLookUpHost(int totalHosts,
int workedOfHosts)
totalHosts - workedOfHosts - public void setHostLookUp(String state)
state - The state so set.private void updateGlobalState()
public String getState()
private double myRound(double value,
int scale)
value - The number to round.scale - The scale which sould be used.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||