GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4Master.h>
Public Member Functions | |
TGo4Master () | |
TGo4Master (const char *name, Bool_t isserver=kTRUE, const char *serverhost="localhost", UInt_t negotport=5000) | |
virtual | ~TGo4Master () |
Bool_t | SubmitCommand (const char *name) |
Bool_t | SubmitEmergencyCommand (Go4EmergencyCommand_t val) |
Bool_t | SubmitCommand (TGo4Command *com) |
virtual TGo4TaskHandlerCommandList * | CreateCommandList () |
virtual Bool_t | DisconnectSlave (const char *name=0, Bool_t waitforslave=kTRUE) |
Public Member Functions inherited from TGo4TaskOwner | |
TGo4TaskOwner () | |
TGo4TaskOwner (Bool_t isserver) | |
virtual | ~TGo4TaskOwner () |
Bool_t | IsServer () |
TGo4Task * | GetTask () |
virtual Int_t | StartWorkThreads () |
virtual Int_t | StopWorkThreads () |
virtual void | Quit () |
const char * | GetName () const |
Bool_t | IsConnected () |
Bool_t | IsBeingQuit () |
TMutex * | GetTaskManagerMutex () |
Public Member Functions inherited from TGo4CommandReceiver | |
virtual | ~TGo4CommandReceiver () |
TGo4CommandReceiver () | |
Private Attributes | |
TString | fxSlaveNode |
TString | fxSlaveShell |
TString | fxSlaveExec |
Additional Inherited Members | |
Protected Member Functions inherited from TGo4TaskOwner | |
void | SetTask (TGo4Task *task, Bool_t delold=kTRUE) |
Definition at line 25 of file TGo4Master.h.
TGo4Master::TGo4Master | ( | ) |
Definition at line 25 of file TGo4Master.cxx.
TGo4Master::TGo4Master | ( | const char * | name, |
Bool_t | isserver = kTRUE , |
||
const char * | serverhost = "localhost" , |
||
UInt_t | negotport = 5000 |
||
) |
Definition at line 30 of file TGo4Master.cxx.
References TGo4CommandInvoker::Instance(), TGo4TaskOwner::IsServer(), TGo4CommandInvoker::Register(), TGo4TaskOwner::SetTask(), and TGo4TaskOwner::TGo4ServerTask.
|
virtual |
Definition at line 54 of file TGo4Master.cxx.
References TGo4CommandInvoker::UnRegister().
|
virtual |
factory method for command list; overridden by implementation
Definition at line 59 of file TGo4Master.cxx.
Referenced by TGo4Task::Initialization().
|
virtual |
Reimplemented in TGo4Display.
Definition at line 82 of file TGo4Master.cxx.
References TGo4ClientTask::DisconnectServer(), TGo4TaskOwner::GetTask(), TGo4TaskOwner::IsServer(), TGo4ServerTask::RemoveClient(), and TGo4Task::Terminate().
Referenced by TGo4Display::DisconnectSlave(), and TGo4ComDisconnectSlave::ExeCom().
Bool_t TGo4Master::SubmitCommand | ( | const char * | name | ) |
send command specified by name to the current slave task
Definition at line 64 of file TGo4Master.cxx.
References TGo4TaskOwner::GetTask(), and TGo4Task::SubmitCommand().
Referenced by TGo4AnalysisProxy::ChageObjectProtection(), TGo4AnalysisProxy::ClearAnalysisObject(), TGo4AnalysisProxy::CloseAnalysisSettings(), TGo4AnalysisProxy::DisconnectAnalysis(), TGo4AnalysisProxy::ExecuteLine(), TGo4AnalysisProxy::LoadConfigFile(), TGo4AnalysisProxy::PrintDynListEntry(), TGo4AnalysisProxy::RefreshNamesList(), TGo4AnalysisProxy::RemotePrintEvent(), TGo4AnalysisProxy::RemoteTreeDraw(), TGo4AnalysisProxy::RemoveObjectFromAnalysis(), TGo4AnalysisProxy::RequestAnalysisSettings(), TGo4AnalysisProxy::RequestEventStatus(), TGo4AnalysisProxy::SaveConfigFile(), TGo4AnalysisProxy::StartAnalysis(), TGo4AnalysisProxy::StopAnalysis(), TGo4AnalysisProxy::SubmitAnalysisSettings(), TGo4AnalysisProxy::SubmitProxy(), TGo4AnalysisProxy::UpdateAnalysisObject(), TGo4AnalysisProxy::WriteAutoSave(), and TGo4AnalysisProxy::~TGo4AnalysisProxy().
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 76 of file TGo4Master.cxx.
References TGo4TaskOwner::GetTask(), and TGo4Task::SubmitCommand().
Bool_t TGo4Master::SubmitEmergencyCommand | ( | Go4EmergencyCommand_t | val | ) |
send emergency quit command to the current slave task
Definition at line 70 of file TGo4Master.cxx.
References TGo4TaskOwner::GetTask(), and TGo4Task::SubmitEmergencyCommand().
|
private |
Name of the executable (command) that is running in the slave process. Used to kill it later.
Definition at line 65 of file TGo4Master.h.
|
private |
Name of the node where the slave is running. Used to kill it later.
Definition at line 54 of file TGo4Master.h.
|
private |
Name of the shell where the slave is running. Used to kill it later.
Definition at line 59 of file TGo4Master.h.