AliRoot Core  ee782a0 (ee782a0)
AliCDBStorage Class Referenceabstract

#include <AliCDBStorage.h>

Inheritance diagram for AliCDBStorage:

Public Member Functions

 AliCDBStorage ()
 
void SetURI (const TString &uri)
 
const TString & GetURI () const
 
const TString & GetType () const
 
const TString & GetBaseFolder () const
 
AliCDBManager::DataType GetDataType () const
 
void ReadSelectionFromFile (const char *fileName)
 
void AddSelection (const AliCDBId &selection)
 
void AddSelection (const AliCDBPath &path, const AliCDBRunRange &runRange, Int_t version, Int_t subVersion=-1)
 
void AddSelection (const AliCDBPath &path, Int_t firstRun, Int_t lastRun, Int_t version, Int_t subVersion=-1)
 
void RemoveSelection (const AliCDBId &selection)
 
void RemoveSelection (const AliCDBPath &path, const AliCDBRunRange &runRange)
 
void RemoveSelection (const AliCDBPath &path, Int_t firstRun=-1, Int_t lastRun=-1)
 
void RemoveSelection (int position)
 
void RemoveAllSelections ()
 
void PrintSelectionList ()
 
AliCDBEntryGet (const AliCDBId &query)
 
AliCDBEntryGet (const AliCDBPath &path, Int_t runNumber, Int_t version=-1, Int_t subVersion=-1)
 
AliCDBEntryGet (const AliCDBPath &path, const AliCDBRunRange &runRange, Int_t version=-1, Int_t subVersion=-1)
 
TList * GetAll (const AliCDBId &query)
 
TList * GetAll (const AliCDBPath &path, Int_t runNumber, Int_t version=-1, Int_t subVersion=-1)
 
TList * GetAll (const AliCDBPath &path, const AliCDBRunRange &runRange, Int_t version=-1, Int_t subVersion=-1)
 
AliCDBIdGetId (const AliCDBId &query)
 
AliCDBIdGetId (const AliCDBPath &path, Int_t runNumber, Int_t version=-1, Int_t subVersion=-1)
 
AliCDBIdGetId (const AliCDBPath &path, const AliCDBRunRange &runRange, Int_t version=-1, Int_t subVersion=-1)
 
Bool_t Put (TObject *object, AliCDBId &id, AliCDBMetaData *metaData, const char *mirrors="", AliCDBManager::DataType type=AliCDBManager::kPrivate)
 
Bool_t Put (AliCDBEntry *entry, const char *mirrors="", AliCDBManager::DataType type=AliCDBManager::kPrivate)
 
virtual void SetMirrorSEs (const char *mirrors)
 
virtual const char * GetMirrorSEs () const
 
virtual Bool_t IsReadOnly () const =0
 
virtual Bool_t HasSubVersion () const =0
 
virtual Bool_t Contains (const char *path) const =0
 
virtual Bool_t IdToFilename (const AliCDBId &id, TString &filename) const =0
 
void QueryCDB (Int_t run, const char *pathFilter="*", Int_t version=-1, AliCDBMetaData *mdFilter=0)
 
void PrintQueryCDB ()
 
TObjArrayGetQueryCDBList ()
 
virtual void SetRetry (Int_t nretry, Int_t initsec)=0
 
void SetMaxDate (time_t maxDate)
 
void SetMaxDate (TTimeStamp maxDate)
 
time_t GetMaxDate () const
 

Protected Member Functions

virtual ~AliCDBStorage ()
 
void GetSelection (AliCDBId *id)
 
virtual AliCDBEntryGetEntry (const AliCDBId &query)=0
 
virtual AliCDBIdGetEntryId (const AliCDBId &query)=0
 
virtual TList * GetEntries (const AliCDBId &query)=0
 
virtual Bool_t PutEntry (AliCDBEntry *entry, const char *mirrors="")=0
 
virtual TList * GetIdListFromFile (const char *fileName)=0
 
virtual void QueryValidFiles ()=0
 
void LoadTreeFromFile (AliCDBEntry *entry) const
 
time_t GuidToCreationTimestamp (const TString &guid) const
 

Protected Attributes

TObjArray fValidFileIds
 
Int_t fRun
 
AliCDBPath fPathFilter
 
Int_t fVersion
 
AliCDBMetaDatafMetaDataFilter
 
TList fSelections
 
TString fURI
 
TString fType
 
TString fBaseFolder
 Local, Grid: base folder name - Dump: file name. More...
 
Short_t fNretry
 Local, Grid: base folder name - Dump: file name. More...
 
Short_t fInitRetrySeconds
 
time_t fMaxDate
 

Private Member Functions

 AliCDBStorage (const AliCDBStorage &source)
 
AliCDBStorageoperator= (const AliCDBStorage &source)
 

Detailed Description

Definition at line 27 of file AliCDBStorage.h.

Constructor & Destructor Documentation

AliCDBStorage::AliCDBStorage ( )

Definition at line 30 of file AliCDBStorage.cxx.

AliCDBStorage::~AliCDBStorage ( )
protectedvirtual

Definition at line 51 of file AliCDBStorage.cxx.

Referenced by GetMaxDate().

AliCDBStorage::AliCDBStorage ( const AliCDBStorage source)
private

Member Function Documentation

void AliCDBStorage::AddSelection ( const AliCDBId selection)

Definition at line 111 of file AliCDBStorage.cxx.

Referenced by AddSelection(), GetBaseFolder(), and ReadSelectionFromFile().

void AliCDBStorage::AddSelection ( const AliCDBPath path,
const AliCDBRunRange runRange,
Int_t  version,
Int_t  subVersion = -1 
)

Definition at line 132 of file AliCDBStorage.cxx.

void AliCDBStorage::AddSelection ( const AliCDBPath path,
Int_t  firstRun,
Int_t  lastRun,
Int_t  version,
Int_t  subVersion = -1 
)

Definition at line 140 of file AliCDBStorage.cxx.

virtual Bool_t AliCDBStorage::Contains ( const char *  path) const
pure virtual

Implemented in AliCDBDump, AliCDBGrid, and AliCDBLocal.

Referenced by GetBaseFolder().

AliCDBEntry * AliCDBStorage::Get ( const AliCDBPath path,
Int_t  runNumber,
Int_t  version = -1,
Int_t  subVersion = -1 
)

Definition at line 241 of file AliCDBStorage.cxx.

AliCDBEntry * AliCDBStorage::Get ( const AliCDBPath path,
const AliCDBRunRange runRange,
Int_t  version = -1,
Int_t  subVersion = -1 
)

Definition at line 249 of file AliCDBStorage.cxx.

TList * AliCDBStorage::GetAll ( const AliCDBId query)

Definition at line 258 of file AliCDBStorage.cxx.

Referenced by GetAll(), and GetBaseFolder().

TList * AliCDBStorage::GetAll ( const AliCDBPath path,
Int_t  runNumber,
Int_t  version = -1,
Int_t  subVersion = -1 
)

Definition at line 305 of file AliCDBStorage.cxx.

TList * AliCDBStorage::GetAll ( const AliCDBPath path,
const AliCDBRunRange runRange,
Int_t  version = -1,
Int_t  subVersion = -1 
)

Definition at line 314 of file AliCDBStorage.cxx.

const TString& AliCDBStorage::GetBaseFolder ( ) const
inline
AliCDBManager::DataType AliCDBStorage::GetDataType ( ) const

Definition at line 513 of file AliCDBStorage.cxx.

Referenced by GetBaseFolder(), and Put().

virtual TList* AliCDBStorage::GetEntries ( const AliCDBId query)
protectedpure virtual

Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.

Referenced by GetAll(), and GetMaxDate().

virtual AliCDBEntry* AliCDBStorage::GetEntry ( const AliCDBId query)
protectedpure virtual

Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.

Referenced by Get(), and GetMaxDate().

virtual AliCDBId* AliCDBStorage::GetEntryId ( const AliCDBId query)
protectedpure virtual

Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.

Referenced by GetId(), and GetMaxDate().

AliCDBId * AliCDBStorage::GetId ( const AliCDBId query)

Definition at line 322 of file AliCDBStorage.cxx.

Referenced by GetBaseFolder(), GetId(), and AliCDBManager::GetId().

AliCDBId * AliCDBStorage::GetId ( const AliCDBPath path,
Int_t  runNumber,
Int_t  version = -1,
Int_t  subVersion = -1 
)

Definition at line 345 of file AliCDBStorage.cxx.

AliCDBId * AliCDBStorage::GetId ( const AliCDBPath path,
const AliCDBRunRange runRange,
Int_t  version = -1,
Int_t  subVersion = -1 
)

Definition at line 353 of file AliCDBStorage.cxx.

virtual TList* AliCDBStorage::GetIdListFromFile ( const char *  fileName)
protectedpure virtual

Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.

Referenced by GetMaxDate(), and ReadSelectionFromFile().

time_t AliCDBStorage::GetMaxDate ( ) const
inline

Definition at line 106 of file AliCDBStorage.h.

Referenced by AliCDBManager::QueryCDB().

const char * AliCDBStorage::GetMirrorSEs ( ) const
virtual

Reimplemented in AliCDBGrid.

Definition at line 543 of file AliCDBStorage.cxx.

Referenced by GetBaseFolder(), and AliCDBManager::GetMirrorSEs().

TObjArray* AliCDBStorage::GetQueryCDBList ( )
inline

Definition at line 102 of file AliCDBStorage.h.

void AliCDBStorage::GetSelection ( AliCDBId id)
protected
time_t AliCDBStorage::GuidToCreationTimestamp ( const TString &  guid) const
protected

Definition at line 419 of file AliCDBStorage.cxx.

Referenced by GetMaxDate(), and AliCDBGrid::QueryValidFiles().

virtual Bool_t AliCDBStorage::HasSubVersion ( ) const
pure virtual

Implemented in AliCDBDump, AliCDBGrid, and AliCDBLocal.

Referenced by GetBaseFolder().

virtual Bool_t AliCDBStorage::IdToFilename ( const AliCDBId id,
TString &  filename 
) const
pure virtual

Implemented in AliCDBDump, AliCDBGrid, and AliCDBLocal.

Referenced by GetBaseFolder().

virtual Bool_t AliCDBStorage::IsReadOnly ( ) const
pure virtual

Implemented in AliCDBDump, AliCDBGrid, and AliCDBLocal.

Referenced by GetBaseFolder().

void AliCDBStorage::LoadTreeFromFile ( AliCDBEntry entry) const
protected

Definition at line 557 of file AliCDBStorage.cxx.

Referenced by AliCDBGrid::GetEntryFromFile(), and GetMaxDate().

AliCDBStorage& AliCDBStorage::operator= ( const AliCDBStorage source)
private
void AliCDBStorage::PrintQueryCDB ( )

Definition at line 483 of file AliCDBStorage.cxx.

Referenced by GetBaseFolder().

void AliCDBStorage::PrintSelectionList ( )

Definition at line 192 of file AliCDBStorage.cxx.

Referenced by GetBaseFolder(), and ReadSelectionFromFile().

Bool_t AliCDBStorage::Put ( AliCDBEntry entry,
const char *  mirrors = "",
AliCDBManager::DataType  type = AliCDBManager::kPrivate 
)

Definition at line 376 of file AliCDBStorage.cxx.

virtual Bool_t AliCDBStorage::PutEntry ( AliCDBEntry entry,
const char *  mirrors = "" 
)
protectedpure virtual

Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.

Referenced by GetMaxDate(), and Put().

void AliCDBStorage::QueryCDB ( Int_t  run,
const char *  pathFilter = "*",
Int_t  version = -1,
AliCDBMetaData mdFilter = 0 
)
virtual void AliCDBStorage::QueryValidFiles ( )
protectedpure virtual

Implemented in AliCDBGrid, AliCDBDump, and AliCDBLocal.

Referenced by GetMaxDate(), and QueryCDB().

void AliCDBStorage::ReadSelectionFromFile ( const char *  fileName)

Definition at line 86 of file AliCDBStorage.cxx.

Referenced by GetBaseFolder().

void AliCDBStorage::RemoveAllSelections ( )

Definition at line 185 of file AliCDBStorage.cxx.

Referenced by GetBaseFolder(), ReadSelectionFromFile(), and ~AliCDBStorage().

void AliCDBStorage::RemoveSelection ( const AliCDBId selection)

Definition at line 148 of file AliCDBStorage.cxx.

Referenced by GetBaseFolder(), and RemoveSelection().

void AliCDBStorage::RemoveSelection ( const AliCDBPath path,
const AliCDBRunRange runRange 
)

Definition at line 162 of file AliCDBStorage.cxx.

void AliCDBStorage::RemoveSelection ( const AliCDBPath path,
Int_t  firstRun = -1,
Int_t  lastRun = -1 
)

Definition at line 170 of file AliCDBStorage.cxx.

void AliCDBStorage::RemoveSelection ( int  position)

Definition at line 178 of file AliCDBStorage.cxx.

void AliCDBStorage::SetMaxDate ( time_t  maxDate)
void AliCDBStorage::SetMaxDate ( TTimeStamp  maxDate)
inline

Definition at line 105 of file AliCDBStorage.h.

Referenced by SetMaxDate().

void AliCDBStorage::SetMirrorSEs ( const char *  mirrors)
virtual

Reimplemented in AliCDBGrid.

Definition at line 529 of file AliCDBStorage.cxx.

Referenced by GetBaseFolder(), and AliCDBManager::SetMirrorSEs().

virtual void AliCDBStorage::SetRetry ( Int_t  nretry,
Int_t  initsec 
)
pure virtual

Implemented in AliCDBDump, AliCDBGrid, and AliCDBLocal.

Referenced by GetQueryCDBList().

void AliCDBStorage::SetURI ( const TString &  uri)
inline

Definition at line 33 of file AliCDBStorage.h.

Referenced by AliCDBManager::GetStorage().

Member Data Documentation

TString AliCDBStorage::fBaseFolder
protected

Local, Grid: base folder name - Dump: file name.

Definition at line 131 of file AliCDBStorage.h.

Referenced by GetBaseFolder(), and QueryCDB().

Short_t AliCDBStorage::fInitRetrySeconds
protected

Definition at line 133 of file AliCDBStorage.h.

Referenced by AliCDBGrid::PutEntry(), and AliCDBGrid::SetRetry().

time_t AliCDBStorage::fMaxDate
protected

Definition at line 135 of file AliCDBStorage.h.

Referenced by GetMaxDate(), AliCDBGrid::QueryValidFiles(), and SetMaxDate().

AliCDBMetaData* AliCDBStorage::fMetaDataFilter
protected
Short_t AliCDBStorage::fNretry
protected

Local, Grid: base folder name - Dump: file name.

Definition at line 132 of file AliCDBStorage.h.

Referenced by AliCDBGrid::PutEntry(), and AliCDBGrid::SetRetry().

AliCDBPath AliCDBStorage::fPathFilter
protected
Int_t AliCDBStorage::fRun
protected
TList AliCDBStorage::fSelections
protected
TString AliCDBStorage::fType
protected

Definition at line 130 of file AliCDBStorage.h.

Referenced by GetType(), and QueryCDB().

TString AliCDBStorage::fURI
protected

Definition at line 129 of file AliCDBStorage.h.

Referenced by GetURI(), and SetURI().

Int_t AliCDBStorage::fVersion
protected

The documentation for this class was generated from the following files: