Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes

TGo4ExampleServer Class Reference

#include <TGo4ExampleServer.h>

Inheritance diagram for TGo4ExampleServer:
TGo4ServerTask TGo4Task TGo4ThreadManager TGo4CommandReceiver

List of all members.

Public Member Functions

 TGo4ExampleServer (const char *name, UInt_t negotiationport=0, Bool_t blockingmode=kFALSE)
virtual ~TGo4ExampleServer ()
TGo4ExampleControllerGetController ()
TGo4TaskHandlerCommandListCreateCommandList ()
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

TGo4ExampleControllerfxController
TString fcControlName
TString fcLoggingName

Detailed Description

example class for a server task that fits to the example application

Definition at line 25 of file TGo4ExampleServer.h.


Constructor & Destructor Documentation

TGo4ExampleServer::TGo4ExampleServer ( const char *  name,
UInt_t  negotiationport = 0,
Bool_t  blockingmode = kFALSE 
)
TGo4ExampleServer::~TGo4ExampleServer (  )  [virtual]
TGo4ExampleServer::TGo4ExampleServer (  )  [private]

Member Function Documentation

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 (  ) 
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().


Member Data Documentation

remember name of controller thread

Definition at line 59 of file TGo4ExampleServer.h.

Referenced by StartWorkThreads(), StopWorkThreads(), and TGo4ExampleServer().

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines