X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=SHUTTLE%2FAliShuttleConfig.h;h=a296be7b1d172b3510c231c04a601f68b19c255c;hb=ee5be070c6ac6a5e5cd2b9dab01e36f6c6ca5232;hp=7f0bf23771d0d5f2068c49b3d0c8f83d4e0fc0c1;hpb=542b6cc878cc2fe12fd1450c43f63f1e286d464e;p=u%2Fmrichter%2FAliRoot.git diff --git a/SHUTTLE/AliShuttleConfig.h b/SHUTTLE/AliShuttleConfig.h index 7f0bf23771d..a296be7b1d1 100644 --- a/SHUTTLE/AliShuttleConfig.h +++ b/SHUTTLE/AliShuttleConfig.h @@ -20,15 +20,22 @@ class AliShuttleConfig: public TObject { public: + enum RunMode {kTest=0, kProd}; + enum SystemCode { kDAQ = 0, kDCS, kHLT, kGlobal, kAmanda }; + AliShuttleConfig(const char* host, Int_t port = LDAP_PORT, const char* binddn = 0, const char* password = 0, const char* basedn = "o=alice,dc=cern,dc=ch"); virtual ~AliShuttleConfig(); + AliShuttleConfig(const AliShuttleConfig & other); + AliShuttleConfig& operator= (const AliShuttleConfig& other); Bool_t IsValid() const {return fIsValid;}; const char* GetConfigHost() const {return fConfigHost.Data();} + const char* GetAlienPath() const {return fAlienPath.Data();} + const char* GetDAQlbHost() const {return fDAQlbHost.Data();} UInt_t GetDAQlbPort() const {return fDAQlbPort;} const char* GetDAQlbUser() const {return fDAQlbUser.Data();} @@ -38,23 +45,41 @@ public: const char* GetShuttlelbTable() const {return fShuttlelbTable.Data();} const char* GetRunTypelbTable() const {return fRunTypelbTable.Data();} - const char* GetFXSHost(Int_t system) const {return fFXSHost[system].Data();} - UInt_t GetFXSPort(Int_t system) const {return fFXSPort[system];} - const char* GetFXSUser(Int_t system) const {return fFXSUser[system].Data();} - const char* GetFXSPass(Int_t system) const {return fFXSPass[system].Data();} + const char* GetFXSHost(Int_t sys) const {return fFXSHost[sys].Data();} + UInt_t GetFXSPort(Int_t sys) const {return fFXSPort[sys];} + const char* GetFXSUser(Int_t sys) const {return fFXSUser[sys].Data();} + const char* GetFXSPass(Int_t sys) const {return fFXSPass[sys].Data();} + const char* GetFXSBaseFolder(Int_t sys) const {return fFXSBaseFolder[sys].Data();} - const char* GetFXSdbHost(Int_t system) const {return fFXSdbHost[system].Data();} - UInt_t GetFXSdbPort(Int_t system) const {return fFXSdbPort[system];} - const char* GetFXSdbUser(Int_t system) const {return fFXSdbUser[system].Data();} - const char* GetFXSdbPass(Int_t system) const {return fFXSdbPass[system].Data();} - const char* GetFXSdbName(Int_t system) const {return fFXSdbName[system].Data();} - const char* GetFXSdbTable(Int_t system) const {return fFXSdbTable[system].Data();} + const char* GetFXSdbHost(Int_t sys) const {return fFXSdbHost[sys].Data();} + UInt_t GetFXSdbPort(Int_t sys) const {return fFXSdbPort[sys];} + const char* GetFXSdbUser(Int_t sys) const {return fFXSdbUser[sys].Data();} + const char* GetFXSdbPass(Int_t sys) const {return fFXSdbPass[sys].Data();} + const char* GetFXSdbName(Int_t sys) const {return fFXSdbName[sys].Data();} + const char* GetFXSdbTable(Int_t sys) const {return fFXSdbTable[sys].Data();} + const TObjArray* GetAdmins(Int_t sys) const; + + Bool_t SendMail() const { return fSendMail; } + Int_t GetMaxRetries() const { return fMaxRetries; } Int_t GetPPTimeOut() const { return fPPTimeOut; } + Int_t GetDCSTimeOut() const { return fDCSTimeOut; } + Int_t GetDCSRetries() const { return fDCSRetries; } Int_t GetPPMaxMem() const { return fPPMaxMem; } + Bool_t KeepDCSMap() const { return fKeepDCSMap; } + Bool_t KeepTempFolder() const { return fKeepTempFolder; } + + + const char* GetMonitorHost() const {return fMonitorHost.Data();} + const char* GetMonitorTable() const {return fMonitorTable.Data();} + + Int_t GetTriggerWait() const {return fTriggerWait;} + + RunMode GetRunMode() const {return fRunMode;} + const TObjArray* GetDetectors() const; Bool_t HasDetector(const char* detector) const; @@ -158,44 +183,65 @@ private: UInt_t SetGlobalConfig(TList* globalList); UInt_t SetSysConfig(TList* sysList); + UInt_t SetPasswords(); UInt_t SetDetConfig(TList* detList, TList* dcsList); UInt_t SetHostConfig(TList* hostList); - TString fConfigHost; //! Host of the Shuttle configuration LDAP server - - TString fDAQlbHost; //! Host of the DAQ logbook MySQL Server - UInt_t fDAQlbPort; //! port of the DAQ logbook MySQL Server - TString fDAQlbUser; //! username of the DAQ logbook MySQL Server - TString fDAQlbPass; //! password of the DAQ logbook MySQL Server - TString fDAQlbDB; //! DB name of the DAQ logbook MySQL Server - TString fDAQlbTable; //! Table name of the DAQ logbook - TString fShuttlelbTable; //! Table name of the Shuttle logbook - TString fRunTypelbTable; //! Table name of the Run typr logbook - - TString fFXSHost[3]; //! Host of the [DAQ, DCS, HLT] File eXchange Server - UInt_t fFXSPort[3]; //! Port of the [DAQ, DCS, HLT] File eXchange Server - TString fFXSUser[3]; //! username of the [DAQ, DCS, HLT] File eXchange Server - TString fFXSPass[3]; //! password of the [DAQ, DCS, HLT] File eXchange Server - - TString fFXSdbHost[3]; //! Host of the [DAQ, DCS, HLT] FXS database - UInt_t fFXSdbPort[3]; //! Port of the [DAQ, DCS, HLT] FXS database - TString fFXSdbUser[3]; //! username of the [DAQ, DCS, HLT] FXS database - TString fFXSdbPass[3]; //! password of the [DAQ, DCS, HLT] FXS database - TString fFXSdbName[3]; //! name of the [DAQ, DCS, HLT] FXS database - TString fFXSdbTable[3]; //! Table name of the [DAQ, DCS, HLT] FXS database - - Int_t fMaxRetries; // number of retries of a failed preprocessor - - Int_t fPPTimeOut; // timeout until a preprocessor is killed - Int_t fPPMaxMem; // maximum allowed memory until a preprocessor is killed - - TMap fDetectorMap; //! Map of the detector-by-detector configuration - TObjArray fDetectorList; //! List of detectors with valid configuration - - TString fShuttleInstanceHost; //! Instance of the SHUTTLE - TObjArray fProcessedDetectors; //! list of the detector to be processed by this machine - Bool_t fProcessAll; //! flag indicating that all detectors will be processed - Bool_t fIsValid; //! flag for the validity of the configuration + TString fConfigHost; // Host of the Shuttle configuration LDAP server + + TString fAlienPath; // Alien Path for CDB/Reference objs in the Alien catalogue + + TString fDAQlbHost; // Host of the DAQ logbook MySQL Server + UInt_t fDAQlbPort; // port of the DAQ logbook MySQL Server + TString fDAQlbUser; // username of the DAQ logbook MySQL Server + TString fDAQlbPass; // password of the DAQ logbook MySQL Server + TString fDAQlbDB; // DB name of the DAQ logbook MySQL Server + TString fDAQlbTable; // Table name of the DAQ logbook + TString fShuttlelbTable; // Table name of the Shuttle logbook + TString fRunTypelbTable; // Table name of the Run typr logbook + TString fPasswdFilePath; // Path for the local file where the passwords are stored + + TString fFXSHost[3]; // Host of the [DAQ, DCS, HLT] File eXchange Server + UInt_t fFXSPort[3]; // Port of the [DAQ, DCS, HLT] File eXchange Server + TString fFXSUser[3]; // username of the [DAQ, DCS, HLT] File eXchange Server + TString fFXSPass[3]; // password of the [DAQ, DCS, HLT] File eXchange Server + TString fFXSBaseFolder[3]; // base folder of the [DAQ, DCS, HLT] File eXchange Server + + TString fFXSdbHost[3]; // Host of the [DAQ, DCS, HLT] FXS database + UInt_t fFXSdbPort[3]; // Port of the [DAQ, DCS, HLT] FXS database + TString fFXSdbUser[3]; // username of the [DAQ, DCS, HLT] FXS database + TString fFXSdbPass[3]; // password of the [DAQ, DCS, HLT] FXS database + TString fFXSdbName[3]; // name of the [DAQ, DCS, HLT] FXS database + TString fFXSdbTable[3]; // Table name of the [DAQ, DCS, HLT] FXS database + + Int_t fMaxRetries; // number of retries of a failed preprocessor + + Int_t fPPTimeOut; // timeout until a preprocessor is killed + Int_t fDCSTimeOut; // timeout until the query to DCS is terminated + Int_t fDCSRetries; // number of retries until the query to DCS connection is terminated + Int_t fPPMaxMem; // maximum allowed memory until a preprocessor is killed + + TString fMonitorHost; // host of the MonaLisa monitoring server + TString fMonitorTable; // Monalisa's SHUTTLE table name + + Int_t fTriggerWait; // time to wait for DIM trigger before starting new collection + RunMode fRunMode; // Working mode (0=test; 1=prod) + + TMap fDetectorMap; // Map of the detector-by-detector configuration + TObjArray fDetectorList; // List of detectors with valid configuration + + TObjArray *fAdmin[5]; // Array of system administrators' email addresses (DAQ, DCS, HLT, Global, Amanda) + + TString fShuttleInstanceHost; // Instance of the SHUTTLE + TObjArray fProcessedDetectors; // list of the detector to be processed by this machine + + Bool_t fKeepDCSMap; // Flag to keep DCS map also in case of success + Bool_t fKeepTempFolder; // Flag to keep temp folder also in case of success + + Bool_t fSendMail; // Send mail flag + + Bool_t fProcessAll; // flag indicating that all detectors will be processed + Bool_t fIsValid; // flag for the validity of the configuration ClassDef(AliShuttleConfig, 0); };