GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4Master Class Reference

Master. More...

#include <TGo4Master.h>

Inheritance diagram for TGo4Master:

Public Member Functions

 TGo4Master ()
 TGo4Master ()
 TGo4Master (const char *name, Bool_t isserver=kTRUE, const char *serverhost="localhost", UInt_t negotport=5000)
 TGo4Master (const char *name, Bool_t isserver=kTRUE, const char *serverhost="localhost", UInt_t negotport=5000)
virtual ~TGo4Master ()
virtual ~TGo4Master ()
virtual TGo4TaskHandlerCommandListCreateCommandList ()
 factory method for command list; overridden by implementation
virtual TGo4TaskHandlerCommandListCreateCommandList ()
 factory method for command list; overridden by implementation
virtual Bool_t DisconnectSlave (const char *name=nullptr, Bool_t waitforslave=kTRUE)
virtual Bool_t DisconnectSlave (const char *name=nullptr, Bool_t waitforslave=kTRUE)
Bool_t SubmitCommand (const char *name)
 send command specified by name to the current slave task
Bool_t SubmitCommand (const char *name)
 send command specified by name to the current slave task
Bool_t SubmitCommand (TGo4Command *com)
 send given command to the current slave task.
Bool_t SubmitCommand (TGo4Command *com)
 send given command to the current slave task.
Bool_t SubmitEmergencyCommand (Go4EmergencyCommand_t val)
 send emergency quit command to the current slave task
Bool_t SubmitEmergencyCommand (Go4EmergencyCommand_t val)
 send emergency quit command to the current slave task
Public Member Functions inherited from TGo4TaskOwner
 TGo4TaskOwner ()
 TGo4TaskOwner ()
 TGo4TaskOwner (Bool_t isserver)
 TGo4TaskOwner (Bool_t isserver)
virtual ~TGo4TaskOwner ()
virtual ~TGo4TaskOwner ()
const char * GetName () const
const char * GetName () const
TGo4TaskGetTask () const
TGo4TaskGetTask () const
TMutex * GetTaskManagerMutex ()
 Access to taskmanager mutex; to be locked outside main mutex.
TMutex * GetTaskManagerMutex ()
 Access to taskmanager mutex; to be locked outside main mutex.
Bool_t IsBeingQuit ()
Bool_t IsBeingQuit ()
Bool_t IsConnected ()
Bool_t IsConnected ()
Bool_t IsServer () const
Bool_t IsServer () const
virtual void Quit ()
 Quit this instance and the owned task; method to be called from command object, may be overridden in user implementation.
virtual void Quit ()
 Quit this instance and the owned task; method to be called from command object, may be overridden in user implementation.
virtual Int_t StartWorkThreads ()
 Start the working threads of the task owner implementation; this method is used after the current connection has changed, to continue reading/writing the queues.
virtual Int_t StartWorkThreads ()
 Start the working threads of the task owner implementation; this method is used after the current connection has changed, to continue reading/writing the queues.
virtual Int_t StopWorkThreads ()
 stop the working threads of the task owne implementation; this method is used before the current connection is changed to prevent reading/writing and waiting for the wrong queues.
virtual Int_t StopWorkThreads ()
 stop the working threads of the task owne implementation; this method is used before the current connection is changed to prevent reading/writing and waiting for the wrong queues.
Public Member Functions inherited from TGo4CommandReceiver
 TGo4CommandReceiver ()
 TGo4CommandReceiver ()
virtual ~TGo4CommandReceiver ()
virtual ~TGo4CommandReceiver ()

Private Attributes

TString fxSlaveExec
 Name of the executable (command) that is running in the slave process.
TString fxSlaveNode
 Name of the node where the slave is running.
TString fxSlaveShell
 Name of the shell where the slave is running.

Additional Inherited Members

Protected Member Functions inherited from TGo4TaskOwner
void SetTask (TGo4Task *task, Bool_t delold=kTRUE)
void SetTask (TGo4Task *task, Bool_t delold=kTRUE)

Detailed Description

Master.

Definition at line 27 of file TGo4Master.h.

Constructor & Destructor Documentation

◆ TGo4Master() [1/4]

TGo4Master::TGo4Master ( )

Definition at line 21 of file TGo4Master.cxx.

References TGo4TaskOwner::TGo4TaskOwner().

Referenced by TGo4Display::TGo4Display().

◆ TGo4Master() [2/4]

TGo4Master::TGo4Master ( const char * name,
Bool_t isserver = kTRUE,
const char * serverhost = "localhost",
UInt_t negotport = 5000 )

◆ ~TGo4Master() [1/2]

TGo4Master::~TGo4Master ( )
virtual

Definition at line 50 of file TGo4Master.cxx.

References TGo4CommandInvoker::UnRegister().

◆ TGo4Master() [3/4]

TGo4Master::TGo4Master ( )

◆ TGo4Master() [4/4]

TGo4Master::TGo4Master ( const char * name,
Bool_t isserver = kTRUE,
const char * serverhost = "localhost",
UInt_t negotport = 5000 )

◆ ~TGo4Master() [2/2]

virtual TGo4Master::~TGo4Master ( )
virtual

Member Function Documentation

◆ CreateCommandList() [1/2]

TGo4TaskHandlerCommandList * TGo4Master::CreateCommandList ( )
virtual

factory method for command list; overridden by implementation

Definition at line 55 of file TGo4Master.cxx.

◆ CreateCommandList() [2/2]

virtual TGo4TaskHandlerCommandList * TGo4Master::CreateCommandList ( )
virtual

factory method for command list; overridden by implementation

◆ DisconnectSlave() [1/2]

Bool_t TGo4Master::DisconnectSlave ( const char * name = nullptr,
Bool_t waitforslave = kTRUE )
virtual

◆ DisconnectSlave() [2/2]

virtual Bool_t TGo4Master::DisconnectSlave ( const char * name = nullptr,
Bool_t waitforslave = kTRUE )
virtual

Reimplemented in TGo4Display, and TGo4Display.

References fxSlaveExec, fxSlaveNode, and fxSlaveShell.

◆ SubmitCommand() [1/4]

Bool_t TGo4Master::SubmitCommand ( const char * name)

send command specified by name to the current slave task

Definition at line 60 of file TGo4Master.cxx.

References TGo4TaskOwner::GetTask(), and TGo4Task::SubmitCommand().

◆ SubmitCommand() [2/4]

Bool_t TGo4Master::SubmitCommand ( const char * name)

send command specified by name to the current slave task

◆ SubmitCommand() [3/4]

Bool_t TGo4Master::SubmitCommand ( TGo4Command * com)

send given command to the current slave task.

Command object is deleted after this call internally!

Definition at line 72 of file TGo4Master.cxx.

References TGo4TaskOwner::GetTask(), and TGo4Task::SubmitCommand().

◆ SubmitCommand() [4/4]

Bool_t TGo4Master::SubmitCommand ( TGo4Command * com)

send given command to the current slave task.

Command object is deleted after this call internally!

◆ SubmitEmergencyCommand() [1/2]

Bool_t TGo4Master::SubmitEmergencyCommand ( Go4EmergencyCommand_t val)

send emergency quit command to the current slave task

Definition at line 66 of file TGo4Master.cxx.

References TGo4TaskOwner::GetTask(), and TGo4Task::SubmitEmergencyCommand().

◆ SubmitEmergencyCommand() [2/2]

Bool_t TGo4Master::SubmitEmergencyCommand ( Go4EmergencyCommand_t val)

send emergency quit command to the current slave task

Field Documentation

◆ fxSlaveExec

TString TGo4Master::fxSlaveExec
private

Name of the executable (command) that is running in the slave process.

Used to kill it later.

Definition at line 67 of file TGo4Master.h.

Referenced by DisconnectSlave().

◆ fxSlaveNode

TString TGo4Master::fxSlaveNode
private

Name of the node where the slave is running.

Used to kill it later.

Definition at line 56 of file TGo4Master.h.

Referenced by DisconnectSlave().

◆ fxSlaveShell

TString TGo4Master::fxSlaveShell
private

Name of the shell where the slave is running.

Used to kill it later.

Definition at line 61 of file TGo4Master.h.

Referenced by DisconnectSlave().


The documentation for this class was generated from the following files: