com.isti.trinetwatch.server
Class CTA_Msg_Manager

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

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

Class CTA_Msg_Manager defines a thread that manages responses from the control agent for a station.


Constructor Summary
CTA_Msg_Manager(Server servObj, Station tmpStation)
          Create an object of type CTA_Msg_Manager().
 
Method Summary
 java.lang.String getIdString()
          Use this method to get the ID string of this object.
 java.lang.String getStationName()
          Use this method to get the name of the station this thread represents.
 void reportAckMsg(int uLevel, int timeout)
          This method is used to report an acknowledgement message for this station
 void reportDoneMsg()
          This method is used to report a done message for this station.
 void reportFailureMsg()
          This method is used to report a failure message for this station.
 void reportInProgressMsg()
          This method is used to report an in-progress message for this station.
 void reportTimeoutMsg()
          This method is used to report a timeout message for this station.
 void run()
          This method sends a message through the CTRL_MSG event channel and waits for answers to come through the CTRL_RESULT event channel upon which it then reacts.
 void terminateThread(java.lang.String message)
          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
 

Constructor Detail

CTA_Msg_Manager

public CTA_Msg_Manager(Server servObj,
                       Station tmpStation)
Create an object of type CTA_Msg_Manager().

Parameters:
servObj - A server object
Method Detail

getStationName

public java.lang.String getStationName()
Use this method to get the name of the station this thread represents.

Returns:
A string containing the name of the station this thread represents.

getIdString

public java.lang.String getIdString()
Use this method to get the ID string of this object.

Returns:
a string containing the ID string identifying this object.

terminateThread

public void terminateThread(java.lang.String message)
This method tells the thread to exit.


reportAckMsg

public void reportAckMsg(int uLevel,
                         int timeout)
This method is used to report an acknowledgement message for this station

Parameters:
uLevel - The usage level from the ack message. An integer.
timeout - The length of time(seconds) to wait for a done message before timeing out. An integer.

reportDoneMsg

public void reportDoneMsg()
This method is used to report a done message for this station.


reportFailureMsg

public void reportFailureMsg()
This method is used to report a failure message for this station.


reportTimeoutMsg

public void reportTimeoutMsg()
This method is used to report a timeout message for this station.


reportInProgressMsg

public void reportInProgressMsg()
This method is used to report an in-progress message for this station.


run

public void run()
This method sends a message through the CTRL_MSG event channel and waits for answers to come through the CTRL_RESULT event channel upon which it then reacts.

Specified by:
run in interface java.lang.Runnable