00001 // $Id: TGo4Master.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4MASTER_H 00015 #define TGO4MASTER_H 00016 00017 #include "TGo4TaskOwner.h" 00018 00019 #include "TString.h" 00020 #include "TGo4Command.h" 00021 #include "Go4EmergencyCommands.h" 00022 00023 class TGo4TaskHandlerCommandList; 00024 00025 class TGo4Master : public TGo4TaskOwner { 00026 public: 00027 TGo4Master() ; 00028 00029 TGo4Master(const char* name, Bool_t isserver=kTRUE, const char* serverhost="localhost", UInt_t negotport=5000) ; 00030 00031 virtual ~TGo4Master() ; 00032 00034 Bool_t SubmitCommand(const char* name); 00035 00037 Bool_t SubmitEmergencyCommand(Go4EmergencyCommand_t val); 00038 00041 Bool_t SubmitCommand(TGo4Command* com); 00042 00044 virtual TGo4TaskHandlerCommandList* CreateCommandList(); 00045 00046 virtual Bool_t DisconnectSlave(const char* name=0, 00047 Bool_t waitforslave=kTRUE ); 00048 00049 private: 00050 00054 TString fxSlaveNode; 00055 00059 TString fxSlaveShell; 00060 00065 TString fxSlaveExec; 00066 }; 00067 #endif //TGO4MASTER_H