Class DataCollectorWorker
java.lang.Object
|
+----java.lang.Thread
|
+----DataCollectorWorker
- public class DataCollectorWorker
- extends Thread
Individual worker thread for parallelized network data collection.
- Version:
- $Revision: 1.7 $, $Date: 2000/10/31 20:32:02 $
- Author:
- Mike Spengler, Joseph Thomas
-
ca
- Pointer to the CollectorAnalyzer for this run
-
currentHost
- The entry describing the node we're currently working on
-
net
- Pointer to the CollectorNetwork which represents this run
-
parent
- Pointer to the DataCollector which owns this thread
-
qpause
- number of ms to pause between loops to force us to give up the CPU
-
threadCount
- The overall number of worker threads created
-
threadNum
- Our unique individual thread number
-
waiting
- Flag indicating if we're locked out from processing by an external event
-
DataCollectorWorker(DataCollector, int, CollectorAnalyzer, CollectorNetwork)
- Class constructor.
-
getCurrentHost()
- Returns the node of the host this thread is working on.
-
isWaiting()
- Returns 'waiting' status
-
run()
- Gets host on which to operate.
parent
private DataCollector parent
- Pointer to the DataCollector which owns this thread
ca
private CollectorAnalyzer ca
- Pointer to the CollectorAnalyzer for this run
qpause
private static final int qpause
- number of ms to pause between loops to force us to give up the CPU
currentHost
private HostEntry currentHost
- The entry describing the node we're currently working on
threadNum
private int threadNum
- Our unique individual thread number
threadCount
private static int threadCount
- The overall number of worker threads created
net
private CollectorNetwork net
- Pointer to the CollectorNetwork which represents this run
waiting
private boolean waiting
- Flag indicating if we're locked out from processing by an external event
DataCollectorWorker
public DataCollectorWorker(DataCollector dc,
int n,
CollectorAnalyzer ca,
CollectorNetwork net)
- Class constructor.
- Parameters:
- dc - our controlling parent thread
- n - our worker thread number
- ca - the collector analyzer
- net - pointer to ATMNetwork we're working on
run
public void run()
- Gets host on which to operate. Calls HostEntry.query() method.
- Overrides:
- run in class Thread
getCurrentHost
public HostEntry getCurrentHost()
- Returns the node of the host this thread is working on.
- Returns:
- the HostEntry for the host currently being
processed
isWaiting
public boolean isWaiting()
- Returns 'waiting' status
- Returns:
- value of waiting