]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - SHUTTLE/AliShuttleConfig.h
An additional label
[u/mrichter/AliRoot.git] / SHUTTLE / AliShuttleConfig.h
index af9417f7e6cd80afb79cb27fd02907c1fd91e5c1..c85b40213b64090d213d6d76454efec708b5686f 100644 (file)
 class AliShuttleConfig: public TObject {
 public:
        enum RunMode {kTest=0, kProd};
-        enum SystemCode { kDAQ = 0, kDCS, kHLT, kGlobal, kAmanda };
+        enum SystemCode { kDAQ = 0, kDCS, kHLT, kDQM, 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;};
 
@@ -71,6 +69,8 @@ public:
        UInt_t GetDCSDelay() const { return fDCSDelay; }
        Int_t GetPPMaxMem() const { return fPPMaxMem; }
 
+       const char* GetTerminateFilePath() const { return fTerminateFilePath; }
+
        Bool_t KeepDCSMap() const { return fKeepDCSMap; }
        Bool_t KeepTempFolder() const { return fKeepTempFolder; }
        
@@ -79,6 +79,9 @@ public:
        const char* GetMonitorTable() const {return fMonitorTable.Data();}
 
        Int_t GetTriggerWait() const {return fTriggerWait;}
+       const char* GetShuttleFileSystem() const {return fShuttleFileSystem.Data();}
+       Int_t GetFreeDiskWarningThreshold() const {return fFreeDiskWarningThreshold;}
+       Int_t GetFreeDiskFatalThreshold() const {return fFreeDiskFatalThreshold;}
        
        RunMode GetRunMode() const {return fRunMode;}
        
@@ -183,6 +186,8 @@ private:
        };
 
 
+       AliShuttleConfig(const AliShuttleConfig& other);
+       AliShuttleConfig& operator= (const AliShuttleConfig& other);
        UInt_t SetGlobalConfig(TList* globalList);
        UInt_t SetSysConfig(TList* sysList);
        UInt_t SetPasswords();
@@ -203,18 +208,20 @@ private:
        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 fFXSHost[4];            // Host of the [DAQ, DCS, HLT, DQM] File eXchange Server
+       UInt_t  fFXSPort[4];            // Port of the [DAQ, DCS, HLT, DQM] File eXchange Server
+       TString fFXSUser[4];            // username of the [DAQ, DCS, HLT, DQM] File eXchange Server
+       TString fFXSPass[4];            // password of the [DAQ, DCS, HLT, DQM] File eXchange Server
+       TString fFXSBaseFolder[4];      // base folder of the [DAQ, DCS, HLT, DQM] File eXchange Server
+
+       TString fFXSdbHost[4];          // Host of the [DAQ, DCS, HLT, DQM] FXS database
+       UInt_t  fFXSdbPort[4];          // Port of the [DAQ, DCS, HLT, DQM] FXS database
+       TString fFXSdbUser[4];          // username of the [DAQ, DCS, HLT, DQM] FXS database
+       TString fFXSdbPass[4];          // password of the [DAQ, DCS, HLT, DQM] FXS database
+       TString fFXSdbName[4];          // name of the [DAQ, DCS, HLT, DQM] FXS database
+       TString fFXSdbTable[4];         // Table name of the [DAQ, DCS, HLT, DQM] FXS database
 
-       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
+       TString fTerminateFilePath;     // File for inter-process communcation to terminate the Shuttle
 
        Int_t fMaxRetries;              // number of retries of a failed preprocessor
        
@@ -230,12 +237,15 @@ private:
        TString fMonitorTable;          // Monalisa's SHUTTLE table name
        
        Int_t fTriggerWait;             // time to wait for DIM trigger before starting new collection 
+       TString fShuttleFileSystem;     // path of the Shuttle file system
+       Int_t fFreeDiskWarningThreshold;   // threshold for free space in the Shuttle file system to send a mail to the responsibles
+       Int_t fFreeDiskFatalThreshold;     // threshold for free space in the Shuttle file system to send a mail to the responsibles and terminate the Shuttle
        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)
+       TObjArray *fAdmin[6];           // Array of system administrators' email addresses (DAQ, DCS, HLT, DQM, Global, Amanda)
 
        TString fShuttleInstanceHost;   // Instance of the SHUTTLE
        TObjArray fProcessedDetectors;  // list of the detector to be processed by this machine