Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4ExampleServer Class Reference

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

#include <TGo4ExampleServer.h>

Inheritance diagram for TGo4ExampleServer:

TGo4ServerTask TGo4Task TGo4ThreadManager TGo4CommandReceiver List of all members.

Public Methods

 TGo4ExampleServer (const char *name, UInt_t negotiationport=0, Bool_t blockingmode=kFALSE)
virtual ~TGo4ExampleServer ()
TGo4ExampleControllerGetController ()
TGo4TaskHandlerCommandListCreateCommandList ()
 factory method for command list; overridden by implementation. More...

virtual Int_t StartWorkThreads ()
 start the working threads of the task implementation; this method is used after the current connection has changed, to continue reading/writing the queues. More...

virtual Int_t StopWorkThreads ()
 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. More...


Static Public Attributes

const Text_t fgcCONTROLTHREAD [] = "CONTROL-"
 suffix for controller thread name. More...

const Text_t fgcLOGGINGTHREAD [] = "LOGGER-"
 suffix for logging thread name. More...


Private Methods

 TGo4ExampleServer ()

Private Attributes

TGo4ExampleControllerfxController
  More...

Text_t * fcControlName
 remember name of controller thread. More...

Text_t * fcLoggingName
 remember name of logging thread. More...


Detailed Description

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

Definition at line 27 of file TGo4ExampleServer.h.


Constructor & Destructor Documentation

TGo4ExampleServer::TGo4ExampleServer const char *    name,
UInt_t    negotiationport = 0,
Bool_t    blockingmode = kFALSE
 

Definition at line 44 of file TGo4ExampleServer.cxx.

References TGo4Log::Debug(), fcControlName, fcLoggingName, fgcCONTROLTHREAD, fgcLOGGINGTHREAD, TGo4ThreadManager::fguTEXTLENGTH, fxController, TGo4ThreadManager::fxWorkHandler, TGo4ThreadManager::Launch(), TGo4ThreadHandler::NewThread(), and TRACE.

TGo4ExampleServer::~TGo4ExampleServer   [virtual]
 

Definition at line 34 of file TGo4ExampleServer.cxx.

References TGo4ThreadHandler::CancelAll(), fcControlName, fcLoggingName, fxController, TGo4ThreadManager::fxWorkHandler, and TRACE.

TGo4ExampleServer::TGo4ExampleServer   [private]
 


Member Function Documentation

TGo4ExampleController * TGo4ExampleServer::GetController  
 

Definition at line 28 of file TGo4ExampleServer.cxx.

References fxController, and TRACE.

TGo4TaskHandlerCommandList * TGo4ExampleServer::CreateCommandList   [virtual]
 

factory method for command list; overridden by implementation.

Reimplemented from TGo4Task.

Definition at line 76 of file TGo4ExampleServer.cxx.

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 115 of file TGo4ExampleServer.cxx.

References TGo4Log::Debug(), fcControlName, fcLoggingName, TGo4ThreadManager::GetWorkHandler(), TGo4ThreadHandler::Start(), and TGo4Task::StartWorkThreads().

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 81 of file TGo4ExampleServer.cxx.

References TGo4BufferQueue::AddBufferFromObject(), TGo4Log::Debug(), fcControlName, fcLoggingName, TGo4ServerTask::GetDataQueue(), TGo4ServerTask::GetStatusQueue(), TGo4ThreadManager::GetWorkHandler(), TGo4ThreadHandler::Stop(), and TGo4Task::StopWorkThreads().


Member Data Documentation

const Text_t TGo4ExampleServer::fgcCONTROLTHREAD = "CONTROL-" [static]
 

suffix for controller thread name.

Definition at line 27 of file TGo4ExampleServer.cxx.

Referenced by TGo4ExampleServer().

const Text_t TGo4ExampleServer::fgcLOGGINGTHREAD = "LOGGER-" [static]
 

suffix for logging thread name.

Definition at line 26 of file TGo4ExampleServer.cxx.

Referenced by TGo4ExampleServer().

TGo4ExampleController* TGo4ExampleServer::fxController [private]
 

Definition at line 58 of file TGo4ExampleServer.h.

Referenced by GetController(), TGo4ExampleServer(), and ~TGo4ExampleServer().

Text_t* TGo4ExampleServer::fcControlName [private]
 

remember name of controller thread.

Definition at line 61 of file TGo4ExampleServer.h.

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

Text_t* TGo4ExampleServer::fcLoggingName [private]
 

remember name of logging thread.

Definition at line 64 of file TGo4ExampleServer.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:38 2005 for Go4-v2.10-5 by doxygen1.2.15