30 GO4TRACE((12,
"TGo4ExampleServer::GetController()",__LINE__, __FILE__));
36 GO4TRACE((15,
"TGo4ExampleServer::~TGo4ExampleServer()",__LINE__, __FILE__));
43 UInt_t negotiationport,
47 GO4TRACE((15,
"TGo4ExampleServer::TGo4ExampleServer(const char *, Bool_t)",__LINE__, __FILE__));
53 auto controlrun =
new TGo4ControllerRunnable(TString::Format(
"ControllerRunnable of %s",GetName()).Data(),
this);
55 auto logrun =
new TGo4LoggingRunnable(TString::Format(
"LoggerRunnable of %s",GetName()).Data(),
this);
Class containing a pointer queue for TBuffers.
void AddBufferFromObject(TObject *object)
Reconstruct a TObject queue entry from a given TBuffer pointer.
runnable performing the main action of example client task: getting commands out of command queue,...
example class for a user control interface (might be a kind of GUI later on); methods of this class a...
Int_t StartWorkThreads() override
start the working threads of the task implementation; this method is used after the current connectio...
Int_t StopWorkThreads() override
stop the working threads of the task implementation; this method is used before the current connectio...
TString fcControlName
remember name of controller thread
TGo4TaskHandlerCommandList * CreateCommandList() override
factory method for command list; overridden by implementation
static const char * fgcCONTROLTHREAD
suffix for controller thread name
TString fcLoggingName
remember name of logging thread
virtual ~TGo4ExampleServer()
static const char * fgcLOGGINGTHREAD
suffix for logging thread name
TGo4ExampleController * fxController
aggregationByValue 1 0..1
TGo4ExampleController * GetController()
static void Debug(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 0.
runnable performing control watcher functions of example client task: status of application is send t...
TGo4ServerTask(const char *name, UInt_t negotiationport=0, Bool_t blockingmode=kFALSE, Bool_t standalone=kFALSE, Bool_t autostart=kTRUE, Bool_t autocreate=kTRUE, Bool_t ismaster=kTRUE)
TGo4BufferQueue * GetStatusQueue(const char *task=nullptr) override
TGo4BufferQueue * GetDataQueue(const char *task=nullptr) override
Class containing all command prototypes of the TaskHandler system commands (and the basic test comman...
virtual Int_t StopWorkThreads()
stop the working threads of the task implementation; this method is used before the current connectio...
virtual Int_t StartWorkThreads()
start the working threads of the task implementation; this method is used after the current connectio...
Bool_t Start(const char *thname)
Starts work function of the Go4 Thread of name 'name'.
Bool_t Stop(const char *thname)
Stops work function of the Go4 Thread of name 'name'.
TGo4ThreadHandler * fxWorkHandler
Thread handler aggregate (threadsafe list of go4 threads) aggregationByValue 1 1.
TGo4ThreadHandler * GetWorkHandler() const
Access to ThreadHandler for working threads.
void Launch()
This Method has to be called to create the startup threads and to turn on the application control tim...