#include <TGo4ExampleServer.h>
Public Member Functions | |
TGo4ExampleServer (const char *name, UInt_t negotiationport=0, Bool_t blockingmode=kFALSE) | |
virtual | ~TGo4ExampleServer () |
TGo4ExampleController * | GetController () |
TGo4TaskHandlerCommandList * | CreateCommandList () |
virtual Int_t | StartWorkThreads () |
virtual Int_t | StopWorkThreads () |
Static Public Attributes | |
static const char * | fgcCONTROLTHREAD = "CONTROL-" |
static const char * | fgcLOGGINGTHREAD = "LOGGER-" |
Private Member Functions | |
TGo4ExampleServer () | |
Private Attributes | |
TGo4ExampleController * | fxController |
TString | fcControlName |
TString | fcLoggingName |
example class for a server task that fits to the example application
Definition at line 25 of file TGo4ExampleServer.h.
TGo4ExampleServer::TGo4ExampleServer | ( | const char * | name, | |
UInt_t | negotiationport = 0 , |
|||
Bool_t | blockingmode = kFALSE | |||
) |
Definition at line 42 of file TGo4ExampleServer.cxx.
References TGo4Log::Debug(), fcControlName, fcLoggingName, fgcCONTROLTHREAD, fgcLOGGINGTHREAD, fxController, TGo4ThreadManager::fxWorkHandler, GO4TRACE, TGo4ThreadManager::Launch(), and TGo4ThreadHandler::NewThread().
TGo4ExampleServer::~TGo4ExampleServer | ( | ) | [virtual] |
Definition at line 34 of file TGo4ExampleServer.cxx.
References TGo4ThreadHandler::CancelAll(), fxController, TGo4ThreadManager::fxWorkHandler, and GO4TRACE.
TGo4ExampleServer::TGo4ExampleServer | ( | ) | [private] |
TGo4TaskHandlerCommandList * TGo4ExampleServer::CreateCommandList | ( | ) | [virtual] |
factory method for command list; overridden by implementation
Reimplemented from TGo4Task.
Definition at line 68 of file TGo4ExampleServer.cxx.
TGo4ExampleController * TGo4ExampleServer::GetController | ( | ) |
Definition at line 28 of file TGo4ExampleServer.cxx.
References fxController, and GO4TRACE.
Referenced by TGo4ControllerRunnable::TGo4ControllerRunnable(), and TGo4LoggingRunnable::TGo4LoggingRunnable().
Int_t TGo4ExampleServer::StartWorkThreads | ( | ) | [virtual] |
start the working threads of the task implementation; this method is used after the current connection has changed, to continue reading/writing the queues. To be overridden by the derived task.
Reimplemented from TGo4Task.
Definition at line 107 of file TGo4ExampleServer.cxx.
References TGo4Log::Debug(), fcControlName, fcLoggingName, TGo4ThreadManager::GetWorkHandler(), and TGo4ThreadHandler::Start().
Int_t TGo4ExampleServer::StopWorkThreads | ( | ) | [virtual] |
stop the working threads of the task implementation; this method is used before the current connection is changed to prevent reading/writing and waiting for the wrong queues. To be overridden by the derived task.
Reimplemented from TGo4Task.
Definition at line 73 of file TGo4ExampleServer.cxx.
References TGo4BufferQueue::AddBufferFromObject(), TGo4Log::Debug(), fcControlName, fcLoggingName, TGo4ServerTask::GetDataQueue(), TGo4ServerTask::GetStatusQueue(), TGo4ThreadManager::GetWorkHandler(), and TGo4ThreadHandler::Stop().
TString TGo4ExampleServer::fcControlName [private] |
remember name of controller thread
Definition at line 59 of file TGo4ExampleServer.h.
Referenced by StartWorkThreads(), StopWorkThreads(), and TGo4ExampleServer().
TString TGo4ExampleServer::fcLoggingName [private] |
remember name of logging thread
Definition at line 62 of file TGo4ExampleServer.h.
Referenced by StartWorkThreads(), StopWorkThreads(), and TGo4ExampleServer().
const char * TGo4ExampleServer::fgcCONTROLTHREAD = "CONTROL-" [static] |
suffix for controller thread name
Definition at line 44 of file TGo4ExampleServer.h.
Referenced by TGo4ExampleServer().
const char * TGo4ExampleServer::fgcLOGGINGTHREAD = "LOGGER-" [static] |
suffix for logging thread name
Definition at line 47 of file TGo4ExampleServer.h.
Referenced by TGo4ExampleServer().
Definition at line 56 of file TGo4ExampleServer.h.
Referenced by GetController(), TGo4ExampleServer(), and ~TGo4ExampleServer().