|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.importer.analysis.StartLookUpHost
public class StartLookUpHost
This class manages the lookup of the host names. To do this, a threadpool form java 1.5 is used.
| Nested Class Summary | |
|---|---|
class |
StartLookUpHost.HostNameLookUpThread
A thread that populates a host name in a host renderer. |
| Field Summary | |
|---|---|
private boolean |
abort
|
private AnalysisThread |
analyser
The AnalysisThread, which owns the StartLookUpHost object |
private java.util.concurrent.ScheduledThreadPoolExecutor |
my_executor
The executor of the threadpool |
| Constructor Summary | |
|---|---|
StartLookUpHost(int paralleLoockUps,
AnalysisThread analyser)
This constuructor just initializes the executor for the threadpool. |
|
| Method Summary | |
|---|---|
void |
abortOperation()
Abort the lookups as soon as possible. |
int |
getFinishedTasks()
Get the number of looked up hosts. |
int |
getQueuedTasks()
Get the number of the queued host to look up. |
boolean |
isFinished()
Find out whether the lookup is finished. |
void |
lookUpHostName(HostCommRenderer host)
Look up the name of a host. |
private void |
updateState()
Update the actual state of the queued and finished lookups. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.concurrent.ScheduledThreadPoolExecutor my_executor
private AnalysisThread analyser
private boolean abort
| Constructor Detail |
|---|
public StartLookUpHost(int paralleLoockUps,
AnalysisThread analyser)
paralleLoockUps - The number of parallel Lookupsanalyser - The AnalysisThread, which owns the StartLookUpHost object| Method Detail |
|---|
public void abortOperation()
abortOperation in interface IOperationpublic void lookUpHostName(HostCommRenderer host)
host - The host to look up.public int getFinishedTasks()
public int getQueuedTasks()
public boolean isFinished()
private void updateState()
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||