Shuttle getters and setters of main/local OCDB/Reference storages, temp and log
[u/mrichter/AliRoot.git] / SHUTTLE / TestShuttle / AliTestShuttle.h
CommitLineData
5c6b40ae 1#ifndef ALI_TEST_SHUTTLE_H
2#define ALI_TEST_SHUTTLE_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
9//
10// test implementation of the AliShuttleInterface, to be used for local tests of preprocessors
11//
12
13#include <AliShuttleInterface.h>
eba76848 14#include <TString.h>
5c6b40ae 15
16class TMap;
17class TList;
18class AliCDBMetaData;
84090f85 19class AliCDBPath;
5c6b40ae 20
21class AliTestShuttle : public AliShuttleInterface
22{
23 public:
17111222 24 AliTestShuttle(Int_t run, UInt_t startTime, UInt_t endTime);
5c6b40ae 25 virtual ~AliTestShuttle();
26
36137ac1 27 void AddInputFile(Int_t system, const char* detector, const char* id, const char* source, const char* fileName);
28 void SetDCSInput(TMap* dcsAliasMap) { fDcsAliasMap = dcsAliasMap; }
eba76848 29 void AddInputRunParameter(const char* key, const char* value);
36137ac1 30
31 void Process();
32
33 // AliShuttleInterface functions
84090f85 34 virtual UInt_t Store(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData,
35 Int_t validityStart = 0, Bool_t validityInfinite = kFALSE);
8c77aee7 36 virtual UInt_t StoreReferenceData(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData);
5c6b40ae 37 virtual const char* GetFile(Int_t system, const char* detector, const char* id, const char* source);
38 virtual TList* GetFileSources(Int_t system, const char* detector, const char* id);
eba76848 39 virtual const char* GetRunParameter(const char* key);
5c6b40ae 40 virtual void Log(const char* detector, const char* message);
41
36137ac1 42 virtual void RegisterPreprocessor(AliPreprocessor* preprocessor);
43
5c6b40ae 44 protected:
eba76848 45
17111222 46 Int_t fRun; // run that is simulated with the AliTestShuttle
47 UInt_t fStartTime; // starttime that is simulated with the AliTestShuttle
48 UInt_t fEndTime; // endtime that is simulated with the AliTestShuttle
49
eba76848 50 TMap* fInputFiles; // files for GetFile, GetFileSources
51 TMap* fRunParameters; // run parameters
36137ac1 52 TObjArray* fPreprocessors; // list of preprocessors that are to be tested
53 TMap* fDcsAliasMap; // DCS data for testing
5c6b40ae 54
55 private:
56 ClassDef(AliTestShuttle, 0);
57};
58
59#endif