30 #include "Riostream.h"
72 TGo4Log::Debug(
" Command runnable executing direct command QUIT... ");
81 TGo4Log::Debug(
" Command runnable executing direct command KILL MAIN... ");
86 TGo4Log::Debug(
" Command runnable executing direct command RESTART MAIN... ");
91 TGo4Log::Debug(
"NEVER COME HERE: Command runnable has direct command CLOSE INPUT");
96 TGo4Log::Debug(
" Command runnable direct command value %d UNKNOWN! ",
121 TGo4Log::Debug(
"Receive Error in %s during threadmanager termination. Ignored.",GetName());
128 TGo4Log::Debug(
"Receive Error in %s, aborting taskhandler...",GetName());
145 if(stopmode)
return 0;
161 TGo4Log::Debug(
" !!!Connection Error -1 in CommandRunnable ''%s''!!!",GetName());
177 TGo4Log::Debug(
" CommandRunnable ''%s'' received command error string!!!",GetName());
182 TGo4Log::Debug(
" !!!Connection Error -3 in CommandRunnable ''%s''!!!",GetName());
207 std::ostringstream* strout =
new std::ostringstream;
209 std::cout.rdbuf(strout->rdbuf());
210 std::ostringstream* strerr =
new std::ostringstream;
212 std::cerr.rdbuf(strerr->rdbuf());
TGo4Socket * GetCommandTransport() const
Bool_t SubmitLocalCommand(TGo4Command *com)
TGo4ThreadManager * fxManager
const TBuffer * GetBuffer() const
virtual Int_t Send(TObject *obj)
Int_t SendBuffer(TBuffer *buf)
virtual Int_t Run(void *ptr)
TGo4Thread * GetThread() const
static const char * Get_fgcERROR()
static const char * Get_fgcOK()
Bool_t IsClientMode() const
virtual void RestartMain()
static void SetLastSignal(Int_t v=0)
TGo4Queue * GetCommandQueue() const
static bool IsLastSignalWINCH()
static TGo4CommandInvoker * Instance()
TGo4CommandInvoker * fxInvoker
void AddBuffer(TBuffer *buffer, Bool_t clone=kFALSE)
virtual ~TGo4CommandRunnable()
TGo4TaskHandler * fxTaskHandler
Bool_t CheckStopBuffer(TBuffer *buf, Int_t *result=0)
Go4CommandMode_t GetRole()
void SetBeingQuit(Bool_t on)
Bool_t IsTerminating() const
TGo4BufferQueue * fxBufferQueue
virtual char * RecvRaw(const char *name=0)
void FreeBuffer(TBuffer *buffer)
Bool_t CheckTransportOpen()
static void Debug(const char *text,...)