From c49185943239e585a0fe82de1b30346a939b7d5c Mon Sep 17 00:00:00 2001 From: rgrosso Date: Wed, 5 Sep 2012 08:42:42 +0000 Subject: [PATCH 1/1] AliShuttle can set mirror SEs for OCDB uploads via static method --- SHUTTLE/AliShuttle.cxx | 1 + SHUTTLE/AliShuttle.h | 1 + STEER/CDB/AliShuttleInterface.cxx | 1 + STEER/CDB/AliShuttleInterface.h | 4 +++- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/SHUTTLE/AliShuttle.cxx b/SHUTTLE/AliShuttle.cxx index d64cc712881..a7c1833b482 100644 --- a/SHUTTLE/AliShuttle.cxx +++ b/SHUTTLE/AliShuttle.cxx @@ -357,6 +357,7 @@ Int_t AliShuttle::StoreOCDB(const TString& gridURI) Form("StoreOCDB - cannot activate main %s storage", type)); return -2; } + gridSto->SetMirrorSEs(fgkMirrorSEs.Data()); gridIds = gridSto->GetQueryCDBList(); diff --git a/SHUTTLE/AliShuttle.h b/SHUTTLE/AliShuttle.h index d738d514f24..b5492ce715f 100644 --- a/SHUTTLE/AliShuttle.h +++ b/SHUTTLE/AliShuttle.h @@ -87,6 +87,7 @@ public: static void SetMainRefStorage (TString mainRefStorage) {fgkMainRefStorage = mainRefStorage;} static void SetLocalRefStorage (TString localRefStorage) {fgkLocalRefStorage = localRefStorage;} + static void SetMirrorSEs (TString mirrors) {fgkMirrorSEs = mirrors;} static void SetShuttleTempDir (const char* tmpDir); static void SetShuttleLogDir (const char* logDir); diff --git a/STEER/CDB/AliShuttleInterface.cxx b/STEER/CDB/AliShuttleInterface.cxx index 269c700a118..0ef84de69e5 100644 --- a/STEER/CDB/AliShuttleInterface.cxx +++ b/STEER/CDB/AliShuttleInterface.cxx @@ -44,6 +44,7 @@ TString AliShuttleInterface::fgkMainCDB("alien://folder=ShuttleCDB"); TString AliShuttleInterface::fgkLocalCDB("local://LocalShuttleCDB"); TString AliShuttleInterface::fgkMainRefStorage("alien://folder=ShuttleReference"); TString AliShuttleInterface::fgkLocalRefStorage("local://LocalReferenceStorage"); +TString AliShuttleInterface::fgkMirrorSEs("ALICE::CERN::OCDB"); TString AliShuttleInterface::fgkShuttleTempDir("/tmp"); TString AliShuttleInterface::fgkShuttleLogDir("/tmp/log"); diff --git a/STEER/CDB/AliShuttleInterface.h b/STEER/CDB/AliShuttleInterface.h index 40bf087e740..86a7e19e4f2 100644 --- a/STEER/CDB/AliShuttleInterface.h +++ b/STEER/CDB/AliShuttleInterface.h @@ -60,9 +60,10 @@ class AliShuttleInterface : public TObject static TString GetMainCDB () {return fgkMainCDB;} static TString GetLocalCDB () {return fgkLocalCDB;} - static TString GetMainRefStorage() {return fgkMainRefStorage;} static TString GetLocalRefStorage() {return fgkLocalRefStorage;} + static TString GetMirrorSEs () {return fgkMirrorSEs;} + static const char* GetShuttleLogDir() {return fgkShuttleLogDir.Data();} static const char* GetShuttleTempDir() {return fgkShuttleTempDir.Data();} @@ -79,6 +80,7 @@ class AliShuttleInterface : public TObject static TString fgkLocalCDB; // URI of the local backup CDB storage static TString fgkMainRefStorage; // URI of the main (Grid) REFERENCE storage static TString fgkLocalRefStorage; // URI of the local REFERENCE storage + static TString fgkMirrorSEs; // mirror SEs for the main (Grid) CDB storage static TString fgkShuttleTempDir; // path of SHUTTLE temp folder static TString fgkShuttleLogDir; // path of SHUTTLE log folder -- 2.39.3