| v2.10-0 (21000JUN2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Baseclass for all slave process entities. A Slave receives commands and may send data and status objects via the TGo4Task connection. This can run either as server or client task.
Field Summary | |
private Bool_t | fbMainIsRunning True if analysis main loop is running. |
Constructor Summary | |
TGo4Slave() | |
TGo4Slave(const char * name, Bool_t isserver, const char * serverhost, UInt_t negotport) |
Destructor Summary | |
virtual synchronized | ~TGo4Slave() |
Method Summary | |
virtual TGo4TaskStatus* | CreateStatus() create a status object with information on the current (slave) task. this object may be sent to the master or may be used to restore current status by memento mechanism |
virtual void | ExecuteString(const Text_t* command) Execute string command. |
TGo4ThreadHandler* | GetThreadHandler() |
virtual Int_t | Initialization() Overrides the ThreadManager Initialization; is used to setup the client connections on demand; checks for fbConnectRequest flag |
virtual void | KillMain() Kill the main thread; method to be called from command, should be overridden in user implementation |
Bool_t& | MainIsRunning() |
TGo4Command* | NextCommand() Delivers next command from command queue. |
virtual void | RestartMain() Restart the main thread; method to be called from command, should be overridden in user implementation |
void | SendObject(TObject* obj, const char * receiver) Send object via data channel to the server. |
void | SendStatus(TGo4Status* stat, const char * receiver) Send status object via status channel to the server. |
void | SendStatusBuffer() Send internal status buffer to the server. |
void | SendStatusMessage(Int_t level, Bool_t printout, const char * text, ... ) Send message string in a status object to the gui. |
virtual void | Start() General start method of slave application to be called from remote command; should be re-implemented by application |
virtual void | Stop() General stop method of slave application to be called from remote command; should be re-implemented by application |
virtual void | Terminate(Bool_t termapp) |
virtual void | TerminateFast() |
protected virtual void | UpdateStatus(TGo4TaskStatus* state) method needed by method CreateStatus of any status subclasses to set the values of the clienttask specific part of the status object. |
void | UpdateStatusBuffer() Create status object and stream it into the status send buffer. |
Methods inherited from class Go4TaskHandler.TGo4TaskOwner |
GetName, GetTask, IsConnected, IsServer, Quit, SetTask, StartWorkThreads, StopWorkThreads |
Field Detail |
private Bool_t fbMainIsRunning
Constructor Detail |
public TGo4Slave()
public TGo4Slave(const char * name, Bool_t isserver, const char * serverhost, UInt_t negotport)
Method Detail |
public virtual synchronized ~TGo4Slave()
Method Detail |
public virtual TGo4TaskStatus* CreateStatus()
public virtual void ExecuteString(const Text_t* command)
public TGo4ThreadHandler* GetThreadHandler()
public virtual Int_t Initialization()
public virtual void KillMain()
public Bool_t& MainIsRunning()
public TGo4Command* NextCommand()
public virtual void RestartMain()
public void SendObject(TObject* obj, const char * receiver)
public void SendStatus(TGo4Status* stat, const char * receiver)
public void SendStatusBuffer()
public void SendStatusMessage(Int_t level, Bool_t printout, const char * text, ... )
public virtual void Start()
public virtual void Stop()
public virtual void Terminate(Bool_t termapp)
public virtual void TerminateFast()
protected virtual void UpdateStatus(TGo4TaskStatus* state)
public void UpdateStatusBuffer()
| J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |