36 GO4TRACE((15,
"TGo4ExampleClient::TGo4ExampleClient(const char *, const char *, Uint_t, Bool_t)",__LINE__, __FILE__));
52 GO4TRACE((15,
"TGo4ExampleClient::~TGo4ExampleClient()",__LINE__, __FILE__));
59 GO4TRACE((12,
"TGo4ExampleClient::CreateStatus()",__LINE__, __FILE__));
67 GO4TRACE((12,
"TGo4ExampleClient::UpdateStatus(TGo4ClientStatus*)",__LINE__, __FILE__));
78 GO4TRACE((12,
"TGo4ExampleClient::Stop()",__LINE__, __FILE__));
79 std::cout <<
"Stop of example client!" << std::endl;
81 TGo4Log::Debug(
" ExampleClient ''%s'' executing Stop(): stop main thread",GetName());
87 GO4TRACE((12,
"TGo4ExampleClient::Start()",__LINE__, __FILE__));
88 std::cout <<
"Start of example client!" << std::endl;
90 TGo4Log::Debug(
" ExampleClient ''%s'' executing Start(): start main thread",GetName());
96 GO4TRACE((12,
"TGo4ExampleClient::GetApplication()",__LINE__, __FILE__));
TH1D * GetHistogram(const char *HistogramName)
Class containing a pointer queue for TBuffers.
TGo4ClientTask(const char *name, const char *serverhost="localhost", UInt_t negotiationport=0, Bool_t blockingmode=kTRUE, Bool_t standalone=kFALSE, Bool_t autostart=kFALSE, Bool_t autocreate=kTRUE, Bool_t ismaster=kFALSE, Bool_t autoconnect=kTRUE)
void UpdateStatus(TGo4TaskStatus *state) override
method needed by method CreateStatus of any status subclasses to set the values of the clienttask spe...
TGo4BufferQueue * GetDataQueue(const char *task=nullptr) override
TGo4TaskHandler * GetTaskHandler() override
Example application class; this class may also run as standalone application without the threaded cli...
void SetHistoStatus(TH1 *histogram)
Set histogram status.
void SetNames(const char *main, const char *watch)
Set names of the work runnables of example.
void Start() override
General start method of client application to be called from remote command; should be re-implemented...
static const char * fgcWATCHTHREAD
Suffix for watch thread name.
TString fcWatchName
Remember name of watch thread.
TString fcMainName
Remember name of main thread.
void UpdateStatus(TGo4TaskStatus *state) override
method needed by method CreateStatus of any status subclasses to set the values of the clienttask spe...
TGo4ExampleApplication * fxApplication
aggregationByValue 1 0..1
TGo4TaskStatus * CreateStatus() override
create a status object with information on the current client state.
void Stop() override
General stop method of client application to be called from remote command; should be re-implemented ...
static const char * fgcMAINTHREAD
Suffix for main thread name.
virtual ~TGo4ExampleClient()
TGo4ExampleApplication * GetApplication()
static void Debug(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 0.
runnable performing the main action of example client task: getting commands out of command queue,...
void SetMaster(Bool_t on=kTRUE)
TGo4ThreadHandler * fxWorkHandler
Thread handler aggregate (threadsafe list of go4 threads) aggregationByValue 1 1.
void Launch()
This Method has to be called to create the startup threads and to turn on the application control tim...
runnable performing control watcher functions of example client task: status of application is send t...