GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4Master.h
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#ifndef TGO4MASTER_H
15#define TGO4MASTER_H
16
17#include "TGo4TaskOwner.h"
18#include "TString.h"
20
21class TGo4Command;
23
27class TGo4Master : public TGo4TaskOwner {
28 public:
29 TGo4Master();
30
31 TGo4Master(const char *name, Bool_t isserver = kTRUE, const char *serverhost = "localhost", UInt_t negotport = 5000);
32
33 virtual ~TGo4Master();
34
36 Bool_t SubmitCommand(const char *name);
37
40
43 Bool_t SubmitCommand(TGo4Command *com);
44
47
48 virtual Bool_t DisconnectSlave(const char *name = nullptr,
49 Bool_t waitforslave=kTRUE );
50
51private:
52
56 TString fxSlaveNode;
57
61 TString fxSlaveShell;
62
67 TString fxSlaveExec;
68};
69
70#endif //TGO4MASTER_H
Go4EmergencyCommand_t
This is the Go4 Abstract Command Class; part of the Base command pattern.
Definition TGo4Command.h:35
virtual Bool_t DisconnectSlave(const char *name=nullptr, Bool_t waitforslave=kTRUE)
TString fxSlaveExec
Name of the executable (command) that is running in the slave process.
Definition TGo4Master.h:67
TString fxSlaveNode
Name of the node where the slave is running.
Definition TGo4Master.h:56
Bool_t SubmitEmergencyCommand(Go4EmergencyCommand_t val)
send emergency quit command to the current slave task
Bool_t SubmitCommand(const char *name)
send command specified by name to the current slave task
virtual ~TGo4Master()
TString fxSlaveShell
Name of the shell where the slave is running.
Definition TGo4Master.h:61
virtual TGo4TaskHandlerCommandList * CreateCommandList()
factory method for command list; overridden by implementation
Class containing all command prototypes of the TaskHandler system commands (and the basic test comman...