v2.10-0 (21000JUN2005)

Go4TaskHandler
Class TGo4CommandRunnable


class TGo4CommandRunnable
derived from TGo4TaskHandlerRunnable

Runnable responsible for command exchange between transport (socket) and buffer (queue)
In receiver mode, commands are received from transport, checked if sync or not, the
command receiver of system (client) commands is set to the clienttask, sync commands are executed
directly, async commands are passed to the queue
in not receiver mode, runnables waits for the queue and sends all commands from the queue
over the transport

Stereotype thread

Field Summary
 private TGo4CommandInvoker*fxInvoker
          client mode: link to external (static) invoker singleton, that is
used to execute the async commands before the command queue
server mode: not used

Fields inherited from class Go4TaskHandler.TGo4TaskHandlerRunnable
fbReceiverMode, fxBufferQueue, fxTaskHandler, fxTransport

Fields inherited from class Go4ThreadManager.TGo4Runnable
fxGo4Thread, fxManager

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
 TGo4CommandRunnable(const char * name, TGo4ThreadManager* man, TGo4TaskHandler* hand, Bool_t receivermode)
           
 private TGo4CommandRunnable()
           

Destructor Summary
 virtual synchronized ~TGo4CommandRunnable()
           

Method Summary
 private voidRedirectIO()
          for error in socket: redirect cout/cerr to dummy buffer to
avoid trouble if client is running in dying QProcess
 virtual Int_tRun(void * ptr)
           

Methods inherited from class Go4TaskHandler.TGo4TaskHandlerRunnable
CheckStopBuffer, CheckTransportOpen, GetTaskHandler

Methods inherited from class Go4ThreadManager.TGo4Runnable
GetThread, GetThreadManager, operator=, PostRun, PreRun, SetThread, ThreadCatch, UnexpectedCatch

Methods inherited from class TNamed
operator=, Clear, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Print, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Field Detail

fxInvoker

private TGo4CommandInvoker* fxInvoker
client mode: link to external (static) invoker singleton, that is
used to execute the async commands before the command queue
server mode: not used
Constructor Detail

TGo4CommandRunnable

public TGo4CommandRunnable(const char * name, TGo4ThreadManager* man, TGo4TaskHandler* hand, Bool_t receivermode)

TGo4CommandRunnable

private TGo4CommandRunnable()
Method Detail

~TGo4CommandRunnable

public virtual synchronized ~TGo4CommandRunnable()
Method Detail

RedirectIO

private void RedirectIO()
for error in socket: redirect cout/cerr to dummy buffer to
avoid trouble if client is running in dying QProcess

Run

public virtual Int_t Run(void * ptr)

Association Links

to Class TGo4CommandInvoker

client mode: link to external (static) invoker singleton, that is
used to execute the async commands before the command queue
server mode: not used

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005