GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4TaskHandler.h>
Public Member Functions | |
TGo4TaskHandler (const char *name, TGo4ThreadManager *threadmanager, Bool_t clientmode=kFALSE, Bool_t mastermode=kTRUE, UInt_t negotiationport=0) | |
virtual | ~TGo4TaskHandler () |
Bool_t | ConnectServerChannel (const char *name, TGo4Socket *negotiator, TGo4Socket *channel, const char *host) |
Bool_t | ConnectClientChannel (const char *name, TGo4Socket *negotiator, TGo4Socket *channel, const char *host) |
TGo4Socket * | ServerRequest (const char *host="localhost") |
Bool_t | ServerLogin (TGo4Socket *connector, Go4CommandMode_t account) |
Bool_t | Connect (const char *host="localhost", TGo4Socket *negotiator=0) |
Bool_t | DisConnect (Bool_t waitforclient=kTRUE) |
TGo4ThreadManager * | GetThreadManager () const |
Int_t | WaitGetPort (TGo4Socket *sock) |
void | SetNegotiationPort (UInt_t port) |
TGo4Socket * | GetCommandTransport () const |
TGo4Socket * | GetStatusTransport () const |
TGo4Socket * | GetDataTransport () const |
TGo4Queue * | GetCommandQueue () const |
TGo4Queue * | GetStatusQueue () const |
TGo4Queue * | GetDataQueue () const |
const char * | GetHostName () const |
const char * | GetComName () const |
const char * | GetDatName () const |
const char * | GetStatName () const |
Int_t | GetComPort () const |
Int_t | GetDatPort () const |
Int_t | GetStatPort () const |
Go4CommandMode_t | GetRole () |
void | SetRole (Go4CommandMode_t role) |
TGo4CommandInvoker * | GetInvoker () const |
Bool_t | IsClientMode () const |
Bool_t | IsMasterMode () const |
void | SetAborting (Bool_t isaborting=kTRUE) |
Bool_t | IsAborting () const |
void | SetInvoker (TGo4CommandInvoker *inv) |
virtual TGo4TaskHandlerStatus * | CreateStatus () |
Bool_t | StopTransportThreads (Bool_t wait=kTRUE) |
void | StartTransportThreads () |
Bool_t | WaitThreadStop (const char *name) |
void | CloseChannels (Option_t *opt="") |
void | ClearQueues () |
Static Public Member Functions | |
static void | SetAdminAccount (const char *name, const char *passwd) |
static void | SetCtrlAccount (const char *name, const char *passwd) |
static void | SetObservAccount (const char *name, const char *passwd) |
static const char * | Get_fgcOK () |
static const char * | Get_fgcERROR () |
static UInt_t | Get_fguPORTWAITTIME () |
static Int_t | Get_fgiPORTWAITCYCLES () |
Static Protected Attributes | |
static const UInt_t | fguCONNECTORPORT =5000 |
static const Int_t | fgiTHREADSTOPCYCLES =6 |
static const UInt_t | fguTHREADSTOPTIME =500 |
static const UInt_t | fguTRANSPORTCHECKDELAY =5000 |
static const UInt_t | fguSTATUSQUEUESIZE =1000 |
static const UInt_t | fguDATAQUEUESIZE =1000 |
static const UInt_t | fguCOMMANDQUEUESIZE =1000 |
static const char * | fgcCONNECT ="CONNECT-VERSION-300" |
static const char * | fgcDISCONNECT ="DISCONNECT-VERSION-300" |
static const char * | fgcMASTER ="Master-VERSION-300" |
static const char * | fgcSLAVE ="Slave-VERSION-300" |
static const char * | fgcCOMMANDTHREAD ="COMMAND-" |
static const char * | fgcSTATUSTHREAD ="STATUS-" |
static const char * | fgcDATATHREAD ="DATA-" |
Private Member Functions | |
TGo4TaskHandler () | |
Private Attributes | |
Bool_t | fbClientMode |
Bool_t | fbMasterMode |
Bool_t | fbIsAborting |
TGo4ThreadManager * | fxThreadManager |
TGo4ThreadHandler * | fxThreadHandler |
TGo4CommandInvoker * | fxInvoker |
TGo4Queue * | fxCommandQueue |
TGo4Queue * | fxStatusQueue |
TGo4Queue * | fxDataQueue |
TGo4Socket * | fxCommandTransport |
TGo4Socket * | fxStatusTransport |
TGo4Socket * | fxDataTransport |
TString | fxComName |
TString | fxStatName |
TString | fxDatName |
TString | fxHostName |
UInt_t | fuNegPort |
Int_t | fiComPort |
Int_t | fiStatPort |
Int_t | fiDatPort |
Go4CommandMode_t | fiRole |
TGo4StatusRunnable * | fxStatusRun |
TGo4DataRunnable * | fxDataRun |
TGo4CommandRunnable * | fxCommandRun |
Static Private Attributes | |
static TNamed | fgxADMINISTRATORACCOUNT |
static TNamed | fgxOBSERVERACCOUNT |
static TNamed | fgxCONTROLLERACCOUNT |
static const char * | fgcERROR = "ERROR-VERSION-300" |
static const char * | fgcOK = "OK-VERSION-300" |
static const UInt_t | fguPORTWAITTIME =200 |
static const Int_t | fgiPORTWAITCYCLES =150 |
Friends | |
class | TGo4TaskManager |
This class is responsible for the interconnection of two tasks: provided are three communication channels (data, command, status), one thread runnable is acting on each transport channel (e.g. socket); one queue (buffer) is assigned to each channel depending on client or server mode of the task handler, the threads get objects from transporl and put them into the queue, or vice versa. (servertask sends commands, but receives data and status objects) taskhander is named such that it can be found in a list (i.e. task manager) by the server task which may serve more than one client tasks
Definition at line 42 of file TGo4TaskHandler.h.
TGo4TaskHandler::TGo4TaskHandler | ( | const char * | name, |
TGo4ThreadManager * | threadmanager, | ||
Bool_t | clientmode = kFALSE , |
||
Bool_t | mastermode = kTRUE , |
||
UInt_t | negotiationport = 0 |
||
) |
Definition at line 66 of file TGo4TaskHandler.cxx.
References TGo4Log::Debug(), fbClientMode, fbMasterMode, fgcCOMMANDTHREAD, fgcDATATHREAD, fgcSTATUSTHREAD, fguCOMMANDQUEUESIZE, fguCONNECTORPORT, fguDATAQUEUESIZE, fguSTATUSQUEUESIZE, fuNegPort, fxCommandQueue, fxCommandRun, fxCommandTransport, fxComName, fxDataQueue, fxDataRun, fxDataTransport, fxDatName, fxInvoker, fxStatName, fxStatusQueue, fxStatusRun, fxStatusTransport, fxThreadHandler, fxThreadManager, GetComName(), GetDatName(), GetStatName(), TGo4ThreadManager::GetWorkHandler(), IsClientMode(), IsMasterMode(), TGo4ThreadHandler::NewThread(), and TGo4Queue::SetMaxEntries().
|
virtual |
Definition at line 141 of file TGo4TaskHandler.cxx.
References fxCommandQueue, fxCommandTransport, fxDataQueue, fxDataTransport, fxStatusQueue, fxStatusTransport, fxThreadHandler, GetComName(), GetDatName(), GetStatName(), and TGo4ThreadHandler::RemoveThread().
|
private |
Referenced by TGo4TaskManager::NewTaskHandler().
void TGo4TaskHandler::ClearQueues | ( | ) |
Clear all entries of queues.
Definition at line 428 of file TGo4TaskHandler.cxx.
References TGo4Queue::Clear(), fxCommandQueue, fxDataQueue, and fxStatusQueue.
Referenced by CloseChannels(), and TGo4ClientTask::ConnectServer().
void TGo4TaskHandler::CloseChannels | ( | Option_t * | opt = "" | ) |
Close transport channels and clear queues. Option may indicate root TSocket Close option, e.g. "force" to force socket close
Definition at line 402 of file TGo4TaskHandler.cxx.
References ClearQueues(), TGo4Socket::Close(), fxCommandTransport, fxDataTransport, and fxStatusTransport.
Referenced by DisConnect().
Bool_t TGo4TaskHandler::Connect | ( | const char * | host = "localhost" , |
TGo4Socket * | negotiator = 0 |
||
) |
establishes the connections of all three transport channels and starts the service threads
Definition at line 196 of file TGo4TaskHandler.cxx.
References TGo4Socket::Close(), ConnectClientChannel(), ConnectServerChannel(), TGo4Log::Debug(), fbClientMode, fgcCONNECT, fgcOK, fiComPort, fiDatPort, fiStatPort, fxCommandTransport, fxDataTransport, fxHostName, fxStatusTransport, Get_fgcERROR(), TGo4Socket::RecvRaw(), TGo4Socket::Send(), ServerRequest(), SetAborting(), StartTransportThreads(), and WaitGetPort().
Referenced by TGo4TaskManager::AddClient(), and TGo4ClientTask::ConnectServer().
Bool_t TGo4TaskHandler::ConnectClientChannel | ( | const char * | name, |
TGo4Socket * | negotiator, | ||
TGo4Socket * | channel, | ||
const char * | host | ||
) |
method defining the connection protocol of one data transport channel (data, status, or command). For client socket mode (used by taskhandler)
Definition at line 527 of file TGo4TaskHandler.cxx.
References TGo4Log::Debug(), fgcOK, TGo4Socket::IsOpen(), TGo4Socket::Open(), TGo4Socket::RecvRaw(), and TGo4Socket::Send().
Referenced by Connect().
Bool_t TGo4TaskHandler::ConnectServerChannel | ( | const char * | name, |
TGo4Socket * | negotiator, | ||
TGo4Socket * | channel, | ||
const char * | host | ||
) |
Method defining the connection protocol of one data transport channel (data, status, or command). For server socket mode (used by taskmanager)
Definition at line 448 of file TGo4TaskHandler.cxx.
References TGo4Log::Debug(), fgcOK, fxThreadManager, TGo4Socket::IsOpen(), TGo4Socket::RecvRaw(), TGo4Socket::Send(), TGo4ServerTask::SetConnect(), TGo4ServerTask::WaitForConnection(), TGo4ServerTask::WaitForOpen(), and WaitGetPort().
Referenced by Connect().
|
virtual |
create a status object with information on the current taskhandler state. this object may be sent to the server or may be used to restore current status by memento mechanism
Definition at line 436 of file TGo4TaskHandler.cxx.
References fbIsAborting, fiComPort, fiDatPort, fiStatPort, fuNegPort, GetComName(), GetDatName(), GetHostName(), GetStatName(), TGo4TaskHandlerStatus::SetFlags(), TGo4TaskHandlerStatus::SetNames(), and TGo4TaskHandlerStatus::SetPorts().
Referenced by TGo4Task::UpdateStatus().
Bool_t TGo4TaskHandler::DisConnect | ( | Bool_t | waitforclient = kTRUE | ) |
Closes the connections of all three transport channels. Argument waitforclient specifies if server shall wait for client handshake over negotiation channel before shutting down the sockets.
Definition at line 340 of file TGo4TaskHandler.cxx.
References TGo4Socket::Close(), CloseChannels(), TGo4Log::Debug(), fbClientMode, fgcDISCONNECT, fgcOK, GetHostName(), IsAborting(), TGo4Socket::Send(), ServerRequest(), and StopTransportThreads().
Referenced by TGo4TaskManager::DisConnectClient(), and TGo4ClientTask::DisconnectServer().
|
static |
Definition at line 665 of file TGo4TaskHandler.cxx.
References fgcERROR.
Referenced by TGo4TaskManager::AddClient(), TGo4HistogramServer::CheckLogin(), Connect(), TGo4CommandRunnable::Run(), TGo4HistogramServer::SendObject(), TGo4TaskManager::ServeClient(), ServerLogin(), ServerRequest(), and TGo4ServerTask::StopConnectorThread().
|
static |
Definition at line 660 of file TGo4TaskHandler.cxx.
References fgcOK.
Referenced by TGo4HistogramServer::CheckLogin(), TGo4TaskManager::ClientLogin(), TGo4ObjClient::ConnectServer(), TGo4TaskManager::DisConnectClient(), TGo4ObjClient::ReceiveObject(), TGo4CommandRunnable::Run(), TGo4HistogramServer::SendObject(), and TGo4TaskManager::ServeClient().
|
static |
Definition at line 675 of file TGo4TaskHandler.cxx.
References fgiPORTWAITCYCLES.
Referenced by TGo4HistogramServer::ConnectObjectClient(), and TGo4TaskManager::ServeClient().
|
static |
Definition at line 670 of file TGo4TaskHandler.cxx.
References fguPORTWAITTIME.
Referenced by TGo4TaskHandlerRunnable::CheckTransportOpen(), TGo4HistogramServer::ConnectObjectClient(), and TGo4TaskManager::ServeClient().
|
inline |
Definition at line 110 of file TGo4TaskHandler.h.
References fxCommandQueue.
Referenced by TGo4ServerTask::GetCommandQueue(), TGo4ServerTask::NextCommand(), StopTransportThreads(), TGo4ClientTask::TGo4ClientTask(), and TGo4CommandRunnable::TGo4CommandRunnable().
|
inline |
Definition at line 104 of file TGo4TaskHandler.h.
References fxCommandTransport.
Referenced by TGo4CommandRunnable::TGo4CommandRunnable().
|
inline |
Definition at line 118 of file TGo4TaskHandler.h.
References fxComName.
Referenced by CreateStatus(), StartTransportThreads(), StopTransportThreads(), TGo4TaskHandler(), and ~TGo4TaskHandler().
|
inline |
Definition at line 124 of file TGo4TaskHandler.h.
References fiComPort.
Referenced by TGo4TaskManager::AddClient().
|
inline |
Definition at line 114 of file TGo4TaskHandler.h.
References fxDataQueue.
Referenced by TGo4ServerTask::GetDataQueue(), TGo4ClientTask::TGo4ClientTask(), and TGo4DataRunnable::TGo4DataRunnable().
|
inline |
Definition at line 108 of file TGo4TaskHandler.h.
References fxDataTransport.
Referenced by TGo4DataRunnable::TGo4DataRunnable().
|
inline |
Definition at line 120 of file TGo4TaskHandler.h.
References fxDatName.
Referenced by CreateStatus(), StartTransportThreads(), StopTransportThreads(), TGo4TaskHandler(), and ~TGo4TaskHandler().
|
inline |
Definition at line 126 of file TGo4TaskHandler.h.
References fiDatPort.
Referenced by TGo4TaskManager::AddClient().
|
inline |
Definition at line 116 of file TGo4TaskHandler.h.
References fxHostName.
Referenced by CreateStatus(), and DisConnect().
|
inline |
returns pointer to copy of client invoker which may be used by server to check the valid command clients
Definition at line 137 of file TGo4TaskHandler.h.
References fxInvoker.
|
inline |
Definition at line 130 of file TGo4TaskHandler.h.
References fiRole.
Referenced by TGo4TaskManager::AddClient(), TGo4TaskManager::DisConnectClient(), TGo4AnalysisProxy::GetRole(), TGo4ServerTask::NextCommand(), TGo4CommandRunnable::Run(), and ServerRequest().
|
inline |
Definition at line 122 of file TGo4TaskHandler.h.
References fxStatName.
Referenced by CreateStatus(), StartTransportThreads(), StopTransportThreads(), TGo4TaskHandler(), and ~TGo4TaskHandler().
|
inline |
Definition at line 128 of file TGo4TaskHandler.h.
References fiStatPort.
Referenced by TGo4TaskManager::AddClient().
|
inline |
Definition at line 112 of file TGo4TaskHandler.h.
References fxStatusQueue.
Referenced by TGo4ServerTask::GetStatusQueue(), TGo4ClientTask::TGo4ClientTask(), and TGo4StatusRunnable::TGo4StatusRunnable().
|
inline |
Definition at line 106 of file TGo4TaskHandler.h.
References fxStatusTransport.
Referenced by TGo4StatusRunnable::TGo4StatusRunnable().
|
inline |
Definition at line 88 of file TGo4TaskHandler.h.
References fxThreadManager.
Referenced by TGo4TaskHandlerException::TGo4TaskHandlerException().
|
inline |
Check whether this instance is currently being aborted
Definition at line 152 of file TGo4TaskHandler.h.
References fbIsAborting.
Referenced by DisConnect(), TGo4TaskHandlerAbortException::Handle(), and TGo4Task::SendStopBuffers().
|
inline |
Check whether this instance is client or server taskhandler
Definition at line 140 of file TGo4TaskHandler.h.
References fbClientMode.
Referenced by TGo4TaskHandlerAbortException::Handle(), TGo4CommandRunnable::Run(), and TGo4TaskHandler().
|
inline |
Check whether this instance is client or server taskhandler
Definition at line 143 of file TGo4TaskHandler.h.
References fbMasterMode.
Referenced by StopTransportThreads(), and TGo4TaskHandler().
Bool_t TGo4TaskHandler::ServerLogin | ( | TGo4Socket * | connector, |
Go4CommandMode_t | account | ||
) |
Negotiate login to requested server channel with account type
Definition at line 295 of file TGo4TaskHandler.cxx.
References fbMasterMode, fgcMASTER, fgcOK, fgcSLAVE, fgxADMINISTRATORACCOUNT, fgxCONTROLLERACCOUNT, fgxOBSERVERACCOUNT, Get_fgcERROR(), kGo4ComModeAdministrator, kGo4ComModeController, kGo4ComModeObserver, TGo4Socket::RecvRaw(), and TGo4Socket::Send().
Referenced by ServerRequest().
TGo4Socket * TGo4TaskHandler::ServerRequest | ( | const char * | host = "localhost" | ) |
request to server at host to connect or disconnect us, returns negotiation channel
Definition at line 154 of file TGo4TaskHandler.cxx.
References TGo4Socket::Close(), TGo4Log::Debug(), fbClientMode, fuNegPort, fxThreadManager, Get_fgcERROR(), GetRole(), TGo4Socket::Open(), TGo4Socket::Send(), and ServerLogin().
Referenced by Connect(), and DisConnect().
|
inline |
sets the internal aborting state of this taskhandler instance; will be checked before an exception tries to cancel this taskhandler
Definition at line 149 of file TGo4TaskHandler.h.
References fbIsAborting.
Referenced by Connect(), and TGo4TaskHandlerAbortException::Handle().
|
static |
Specify login name and password for administrator account. This is used when client requests for a server connection. For multiple master clients at a slave server, there can be only one controller, but many observers with restricted command rights.
Definition at line 642 of file TGo4TaskHandler.cxx.
References fgxADMINISTRATORACCOUNT.
Referenced by TGo4ClientTask::ConnectServer(), and TGo4AnalysisClient::Constructor().
|
static |
Specify login name and password for controller account. This is used when client requests for a server connection. For multiple master clients at a slave server, there can be only one controller. Master server at slave client has always controller role.
Definition at line 648 of file TGo4TaskHandler.cxx.
References fgxCONTROLLERACCOUNT.
Referenced by TGo4ClientTask::ConnectServer(), and TGo4AnalysisClient::Constructor().
|
inline |
sets pointer to client invoker which may be used by server to check the valid command clients
Definition at line 158 of file TGo4TaskHandler.h.
References fxInvoker.
|
inline |
Set port for the negotiation channel (client mode). Required if connection should be done on different port after taskhandler was created.
Definition at line 102 of file TGo4TaskHandler.h.
References fuNegPort.
Referenced by TGo4ClientTask::ConnectServer().
|
static |
Specify login name and password for observer account. This is used when client requests for a server connection. For multiple master clients at a slave server, there can be only one controller, but many observers with restricted command rights.
Definition at line 654 of file TGo4TaskHandler.cxx.
References fgxOBSERVERACCOUNT.
Referenced by TGo4ClientTask::ConnectServer(), and TGo4AnalysisClient::Constructor().
|
inline |
Definition at line 131 of file TGo4TaskHandler.h.
References fiRole.
Referenced by TGo4TaskManager::AddClient(), and TGo4ClientTask::ConnectServer().
void TGo4TaskHandler::StartTransportThreads | ( | ) |
Start all transport threads of this taskhandler (command, data, status).
Definition at line 591 of file TGo4TaskHandler.cxx.
References fxThreadHandler, GetComName(), GetDatName(), GetStatName(), and TGo4ThreadHandler::Start().
Referenced by Connect().
Bool_t TGo4TaskHandler::StopTransportThreads | ( | Bool_t | wait = kTRUE | ) |
Stop all transport threads of this taskhandler (command, data, status). If wait is true, wait until threads are really stopped before return. If not all threads were stopped within defined stoptime and waitcycles, return value is false.
Definition at line 598 of file TGo4TaskHandler.cxx.
References fxThreadHandler, GetCommandQueue(), GetComName(), GetDatName(), GetStatName(), IsMasterMode(), TGo4ThreadHandler::Stop(), WaitThreadStop(), and TGo4Queue::Wake().
Referenced by DisConnect().
Int_t TGo4TaskHandler::WaitGetPort | ( | TGo4Socket * | sock | ) |
Get actual local port number of specified Go4 socket. Method polls until the port number is not zero, i.e. the created server socket has been bound to that number. Used by the Connect protocol to find out server port before sending it to the client.
Definition at line 564 of file TGo4TaskHandler.cxx.
References fgiPORTWAITCYCLES, fguPORTWAITTIME, fxThreadManager, TGo4Socket::GetPort(), TGo4ThreadManager::IsTerminating(), and TGo4Thread::Sleep().
Referenced by Connect(), and ConnectServerChannel().
Bool_t TGo4TaskHandler::WaitThreadStop | ( | const char * | name | ) |
Wait for the thread of name to be stopped. Returns false if thread has not reached stopped state within the defined stoptime and cycles.
Definition at line 622 of file TGo4TaskHandler.cxx.
References TGo4Log::Debug(), fgiTHREADSTOPCYCLES, fguTHREADSTOPTIME, fxThreadHandler, TGo4ThreadHandler::GetThread(), TGo4Thread::IsWaiting(), and TGo4Thread::Sleep().
Referenced by StopTransportThreads().
|
friend |
Definition at line 46 of file TGo4TaskHandler.h.
|
private |
True if taskhandler runs in client mode
Definition at line 307 of file TGo4TaskHandler.h.
Referenced by Connect(), DisConnect(), IsClientMode(), ServerRequest(), and TGo4TaskHandler().
|
private |
True if taskhandler is being aborted e.g. by remove exception
Definition at line 313 of file TGo4TaskHandler.h.
Referenced by CreateStatus(), IsAborting(), and SetAborting().
|
private |
True if taskhandler runs in master mode (sends commands, receives data and status). Otherwise false.
Definition at line 310 of file TGo4TaskHandler.h.
Referenced by IsMasterMode(), ServerLogin(), and TGo4TaskHandler().
|
staticprotected |
Suffix for command thread name
Definition at line 262 of file TGo4TaskHandler.h.
Referenced by TGo4TaskHandler().
|
staticprotected |
Initial string for connect request (raw transport)
Definition at line 249 of file TGo4TaskHandler.h.
Referenced by Connect(), and TGo4TaskManager::ServeClient().
|
staticprotected |
Suffix for data thread name
Definition at line 268 of file TGo4TaskHandler.h.
Referenced by TGo4TaskHandler().
|
staticprotected |
Initial string for disconnect request (raw transport)
Definition at line 252 of file TGo4TaskHandler.h.
Referenced by DisConnect(), and TGo4TaskManager::ServeClient().
|
staticprivate |
Error string for client connect negotiations (raw transport)
Definition at line 295 of file TGo4TaskHandler.h.
Referenced by Get_fgcERROR().
|
staticprotected |
Task identifier for client connect negotiations (raw transport)
Definition at line 255 of file TGo4TaskHandler.h.
Referenced by TGo4TaskManager::ClientLogin(), and ServerLogin().
|
staticprivate |
Ok string for client connect negotiations (raw transport)
Definition at line 298 of file TGo4TaskHandler.h.
Referenced by Connect(), ConnectClientChannel(), ConnectServerChannel(), DisConnect(), Get_fgcOK(), and ServerLogin().
|
staticprotected |
Task identifier for client connect negotiations (raw transport)
Definition at line 258 of file TGo4TaskHandler.h.
Referenced by TGo4TaskManager::ClientLogin(), and ServerLogin().
|
staticprotected |
Suffix for status thread name
Definition at line 265 of file TGo4TaskHandler.h.
Referenced by TGo4TaskHandler().
|
staticprivate |
Cycles to wait for a nonzero portnumber
Definition at line 304 of file TGo4TaskHandler.h.
Referenced by Get_fgiPORTWAITCYCLES(), and WaitGetPort().
|
staticprotected |
cycles to wait for taskhandler thread stop on disconnection
Definition at line 231 of file TGo4TaskHandler.h.
Referenced by WaitThreadStop().
|
staticprotected |
Maximum entries allowed for command queue
Definition at line 246 of file TGo4TaskHandler.h.
Referenced by TGo4TaskHandler().
|
staticprotected |
Default port number of negotiation connection (raw transport)
Definition at line 228 of file TGo4TaskHandler.h.
Referenced by TGo4TaskHandler(), and TGo4TaskManager::TGo4TaskManager().
|
staticprotected |
Maximum entries allowed for data queue
Definition at line 243 of file TGo4TaskHandler.h.
Referenced by TGo4TaskHandler().
|
staticprivate |
Time for each waitgetport cycle
Definition at line 301 of file TGo4TaskHandler.h.
Referenced by Get_fguPORTWAITTIME(), and WaitGetPort().
|
staticprotected |
Maximum entries allowed for status queue
Definition at line 240 of file TGo4TaskHandler.h.
Referenced by TGo4TaskHandler().
|
staticprotected |
time for each threadstop wait cycle
Definition at line 234 of file TGo4TaskHandler.h.
Referenced by WaitThreadStop().
|
staticprotected |
Delay time (ms) to wait between two checks of transport connection
Definition at line 237 of file TGo4TaskHandler.h.
|
staticprivate |
This keeps account for admin connection. Name is accountname, title is password. May be set from outside by public methods SetObservAccount and SetObservPasswd. Later we might keep this with encryption...
Definition at line 279 of file TGo4TaskHandler.h.
Referenced by TGo4TaskManager::ClientLogin(), ServerLogin(), and SetAdminAccount().
|
staticprivate |
This keeps account for controller connection. Name is accountname, title is password. May be set from outside by public methods SetCtrlAccount and SetCtrlPasswd. Later we might keep this with encryption...
Definition at line 292 of file TGo4TaskHandler.h.
Referenced by TGo4TaskManager::ClientLogin(), ServerLogin(), and SetCtrlAccount().
|
staticprivate |
This keeps account for observer connection. Name is accountname, title is password. May be set from outside by public methods SetObservAccount and SetObservPasswd. Later we might keep this with encryption...
Definition at line 286 of file TGo4TaskHandler.h.
Referenced by TGo4TaskManager::ClientLogin(), ServerLogin(), and SetObservAccount().
|
private |
Command connection port number
Definition at line 355 of file TGo4TaskHandler.h.
Referenced by Connect(), CreateStatus(), and GetComPort().
|
private |
Data connection port number
Definition at line 361 of file TGo4TaskHandler.h.
Referenced by Connect(), CreateStatus(), and GetDatPort().
|
private |
For server connection to client: This indicates role of connected client, if client is master. Depending on role, some actions may be forbidden. Role is equivalent to allowed command execution mode.
Definition at line 367 of file TGo4TaskHandler.h.
|
private |
Status connection port number
Definition at line 358 of file TGo4TaskHandler.h.
Referenced by Connect(), CreateStatus(), and GetStatPort().
|
private |
Actual port number of negotiation connection (raw transport)
Definition at line 352 of file TGo4TaskHandler.h.
Referenced by CreateStatus(), ServerRequest(), SetNegotiationPort(), and TGo4TaskHandler().
|
private |
Buffers (queues) for the three transport channels:
Definition at line 330 of file TGo4TaskHandler.h.
Referenced by ClearQueues(), GetCommandQueue(), TGo4TaskHandler(), and ~TGo4TaskHandler().
|
private |
link to command runnable which is managed by thread handler 1 1
Definition at line 382 of file TGo4TaskHandler.h.
Referenced by TGo4TaskHandler().
|
private |
Transport channels (e.g. sockets) for command, status, data
Definition at line 335 of file TGo4TaskHandler.h.
Referenced by CloseChannels(), Connect(), GetCommandTransport(), TGo4TaskHandler(), and ~TGo4TaskHandler().
|
private |
Remember name of command thread
Definition at line 340 of file TGo4TaskHandler.h.
Referenced by GetComName(), and TGo4TaskHandler().
|
private |
Definition at line 332 of file TGo4TaskHandler.h.
Referenced by ClearQueues(), GetDataQueue(), TGo4TaskHandler(), and ~TGo4TaskHandler().
|
private |
link to data runnable which is managed by thread handler 1 1
Definition at line 377 of file TGo4TaskHandler.h.
Referenced by TGo4TaskHandler().
|
private |
Definition at line 337 of file TGo4TaskHandler.h.
Referenced by CloseChannels(), Connect(), GetDataTransport(), TGo4TaskHandler(), and ~TGo4TaskHandler().
|
private |
Remember name of data thread
Definition at line 346 of file TGo4TaskHandler.h.
Referenced by GetDatName(), and TGo4TaskHandler().
|
private |
Remember name of remote task handler
Definition at line 349 of file TGo4TaskHandler.h.
Referenced by Connect(), and GetHostName().
|
private |
Link to external command invoker instance used for direct command in client mode:
Definition at line 327 of file TGo4TaskHandler.h.
Referenced by GetInvoker(), SetInvoker(), and TGo4TaskHandler().
|
private |
Remember name of status thread
Definition at line 343 of file TGo4TaskHandler.h.
Referenced by GetStatName(), and TGo4TaskHandler().
|
private |
Definition at line 331 of file TGo4TaskHandler.h.
Referenced by ClearQueues(), GetStatusQueue(), TGo4TaskHandler(), and ~TGo4TaskHandler().
|
private |
link to status runnable which is managed by thread handler 1 1
Definition at line 372 of file TGo4TaskHandler.h.
Referenced by TGo4TaskHandler().
|
private |
Definition at line 336 of file TGo4TaskHandler.h.
Referenced by CloseChannels(), Connect(), GetStatusTransport(), TGo4TaskHandler(), and ~TGo4TaskHandler().
|
private |
link to external threadhandler which is used for the transport service threads (runnables); these runnables are instantiated from the task handler ctor and passed to the thread handler who takes over the responsibility for the runnables (threadhandler internal mode threads) <{TGo4ThreadHandler}>
Definition at line 324 of file TGo4TaskHandler.h.
Referenced by StartTransportThreads(), StopTransportThreads(), TGo4TaskHandler(), WaitThreadStop(), and ~TGo4TaskHandler().
|
private |
Link to threadmanager that owns the task handler, used for runnable ctors
Definition at line 316 of file TGo4TaskHandler.h.
Referenced by ConnectServerChannel(), GetThreadManager(), ServerRequest(), TGo4TaskHandler(), and WaitGetPort().