class TList;
class AliCDBMetaData;
class AliCDBPath;
+class AliCDBPath;
class AliTestShuttle : public AliShuttleInterface
{
void AddInputFile(Int_t system, const char* detector, const char* id, const char* source, const char* fileName);
void SetDCSInput(TMap* dcsAliasMap) { fDcsAliasMap = dcsAliasMap; }
void AddInputRunParameter(const char* key, const char* value);
+ void SetInputRunType(const char* runType) { fRunType = runType; }
+ Bool_t AddInputCDBEntry(AliCDBEntry* entry);
void Process();
// AliShuttleInterface functions
- virtual UInt_t Store(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData,
+ virtual Bool_t Store(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData,
Int_t validityStart = 0, Bool_t validityInfinite = kFALSE);
- virtual UInt_t StoreReferenceData(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData);
+ virtual Bool_t StoreReferenceData(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData);
+ virtual Bool_t StoreReferenceFile(const char* detector, const char* localFile, const char* gridFileName);
virtual const char* GetFile(Int_t system, const char* detector, const char* id, const char* source);
virtual TList* GetFileSources(Int_t system, const char* detector, const char* id);
virtual const char* GetRunParameter(const char* key);
+ virtual AliCDBEntry* GetFromOCDB(const char* detector, const AliCDBPath& path);
+ virtual const char* GetRunType();
virtual void Log(const char* detector, const char* message);
- static TString GetMainCDB () {return fgkMainCDB;}
+ virtual void RegisterPreprocessor(AliPreprocessor* preprocessor);
+
static void SetMainCDB (TString mainCDB) {fgkMainCDB = mainCDB;}
- static TString GetMainRefStorage() {return fgkMainRefStorage;}
+ static void SetLocalCDB (TString localCDB) {fgkLocalCDB = localCDB;}
+
static void SetMainRefStorage (TString mainRefStorage) {fgkMainRefStorage = mainRefStorage;}
+ static void SetLocalRefStorage (TString localRefStorage) {fgkLocalRefStorage = localRefStorage;}
static void SetShuttleTempDir (const char* tmpDir);
- static const char* GetShuttleTempDir() {return fgkShuttleTempDir.Data();}
static void SetShuttleLogDir (const char* logDir);
- static const char* GetShuttleLogDir() {return fgkShuttleLogDir.Data();}
-
- virtual void RegisterPreprocessor(AliPreprocessor* preprocessor);
protected:
- static TString fgkMainCDB; // URI of the main (Grid) CDB storage
- static TString fgkMainRefStorage; // URI of the main (Grid) REFERENCE storage
- static TString fgkShuttleTempDir; // base path of SHUTTLE temp folder
- static TString fgkShuttleLogDir; // path of SHUTTLE log folder
Int_t fRun; // run that is simulated with the AliTestShuttle
UInt_t fStartTime; // starttime that is simulated with the AliTestShuttle
UInt_t fEndTime; // endtime that is simulated with the AliTestShuttle
TMap* fInputFiles; // files for GetFile, GetFileSources
- TMap* fRunParameters; // run parameters
+ TMap* fRunParameters; // run parameters
+ TString fRunType; // run type
TObjArray* fPreprocessors; // list of preprocessors that are to be tested
TMap* fDcsAliasMap; // DCS data for testing