com.isti.trinetwatch.server
Class GatherStations

java.lang.Object
  extended by com.isti.trinetwatch.server.GatherStations
All Implemented Interfaces:
java.lang.Runnable

 class GatherStations
extends java.lang.Object
implements java.lang.Runnable

Class GatherStations attempts to make sure all stations have received their static parameters.


Field Summary
(package private)  java.util.Enumeration sNamesEnum
           
 
Constructor Summary
GatherStations(Server servObj, CA2S_sp_impl spRec, S2CA_impl spReq, java.util.Enumeration stationNamesEnum, java.util.Hashtable compStat)
          Creates an object of GatherStations.
 
Method Summary
 void run()
          This method makes sure all (or as many as possible) stations have gotten their static parameter information from the collection agents.
 void terminateThread()
          This method tells the thread to exit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sNamesEnum

final java.util.Enumeration sNamesEnum
Constructor Detail

GatherStations

public GatherStations(Server servObj,
                      CA2S_sp_impl spRec,
                      S2CA_impl spReq,
                      java.util.Enumeration stationNamesEnum,
                      java.util.Hashtable compStat)
Creates an object of GatherStations.

Parameters:
servObj - the Server object.
spRec - the collection-agent-to-server channel for static parameters.
spReq - the server-to-collection-agent channel for requesting static parameters.
stationNamesEnum - an Enumeration of name-strings of stations for which static parameters should be requested (if necessary).
compStat - the Hashtable of stations that have received their static parameters; filled in via the Server object.
Method Detail

terminateThread

public void terminateThread()
This method tells the thread to exit.


run

public void run()
This method makes sure all (or as many as possible) stations have gotten their static parameter information from the collection agents. It runs in its own thread.

Specified by:
run in interface java.lang.Runnable