17 #include "TGo4LockGuard.h"
26 const char* serverhost,
27 UInt_t negotiationport,
34 TGo4Task(name,blockingmode,autostart,autocreate,ismaster),
40 TString nomen(
"TaskHandler of "); nomen+=name;
98 TGo4Log::Warn(
" ClientTask::ConnectServer ''%s'': ServerTask already connected",
133 SendStatusMessage(1,kTRUE,
"Client %s connected successfully to Server task at node %s",
139 TGo4Log::Error(
" ClientTask ''%s'': FAILED connection to ServerTask at node %s",
206 TGo4Log::Debug(
" !!! ClientTask - ERROR adding local command - no command queue !!! ");
virtual void UpdateStatus(TGo4TaskStatus *state)
Bool_t DisConnect(Bool_t waitforclient=kTRUE)
virtual Int_t StartWorkThreads()
TGo4BufferQueue * fxStatusQ
void WakeCommandQueue(Int_t id=0)
Bool_t DisconnectServer(Bool_t isterminating=kFALSE)
virtual Int_t Initialization()
TGo4ThreadHandler * fxWorkHandler
TGo4BufferQueue * GetStatusQueue(const char *task=0)
static void SetObservAccount(const char *name, const char *passwd)
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)
TGo4Queue * GetStatusQueue() const
virtual TGo4TaskStatus * CreateStatus()
virtual ~TGo4ClientTask()
static void Warn(const char *text,...)
static void SetCtrlAccount(const char *name, const char *passwd)
TGo4BufferQueue * fxCommandQ
void SendStopBuffers(const char *taskname=0)
TGo4TaskHandler * fxTaskHandler
TGo4BufferQueue * GetDataQueue(const char *task=0)
TGo4Queue * GetCommandQueue() const
virtual Int_t StopWorkThreads()
TGo4BufferQueue * GetCommandQueue(const char *task=0)
TGo4Queue * GetDataQueue() const
TGo4BufferQueue * fxDataQ
virtual Int_t Initialization()
void SetNames(const char *serverhost)
void SetNegotiationPort(UInt_t port)
void SendStatusMessage(Int_t level, Bool_t printout, const char *text,...)
Bool_t ConnectServer(const char *node, UInt_t negport, Go4CommandMode_t role=kGo4ComModeRefused, const char *passwd=0)
virtual void Terminate(Bool_t termapp=kTRUE)
const char * GetServerHostName()
TGo4TaskHandler * GetTaskHandler()
void SetRole(Go4CommandMode_t role)
static void SetAdminAccount(const char *name, const char *passwd)
void AddLocalCommand(TGo4Command *com)
static Int_t Get_fgiTERMID()
static void Error(const char *text,...)
void AddBufferFromObject(TObject *object)
virtual void Clear(Option_t *opt="")
Bool_t Connect(const char *host="localhost", TGo4Socket *negotiator=0)
static void Debug(const char *text,...)
virtual void UpdateStatus(TGo4TaskStatus *state)