![]() |
Project
|
#include <BasicCCDBManager.h>
Inherits o2::ccdb::CCDBManagerInstance.
Static Public Member Functions | |
| static BasicCCDBManager & | instance () |
Static Public Member Functions inherited from o2::ccdb::CCDBManagerInstance | |
| static std::pair< int64_t, int64_t > | getRunDuration (o2::ccdb::CcdbApi const &api, int runnumber, bool fatal=true) |
| static std::pair< int64_t, int64_t > | getRunDuration (const MD &headers) |
Additional Inherited Members | |
Public Types inherited from o2::ccdb::CCDBManagerInstance | |
| using | MD = std::map< std::string, std::string > |
Public Member Functions inherited from o2::ccdb::CCDBManagerInstance | |
| CCDBManagerInstance (std::string const &path) | |
| void | setURL (const std::string &url) |
| set a URL to query from | |
| void | setTimestamp (long t) |
| set timestamp cache for all queries | |
| std::string const & | getURL () const |
| query current URL | |
| long | getTimestamp () const |
| query timestamp | |
| template<typename T > | |
| T * | getForTimeStamp (std::string const &path, long timestamp, std::map< std::string, std::string > *headers=nullptr) |
| retrieve an object of type T from CCDB as stored under path and timestamp. Optional to get the headers. | |
| template<typename T > | |
| T * | getForRun (std::string const &path, int runNumber, bool setRunMetadata=false) |
| retrieve an object of type T from CCDB as stored under path and using the timestamp in the middle of the run | |
| template<typename T > | |
| T * | getSpecific (std::string const &path, long timestamp=-1, MD metaData=MD(), std::map< std::string, std::string > *headers=nullptr) |
| retrieve an object of type T from CCDB as stored under path, timestamp and metaData | |
| template<typename T > | |
| T * | getSpecificForRun (std::string const &path, int runNumber, MD const &metaData=MD()) |
| retrieve an object of type T from CCDB as stored under path and using the timestamp in the middle of the run + metadata. The run number is provided separately to conform to typical analysis use (in which case metadata does not include runNumber) | |
| bool | isOnline () const |
| detect online processing modes (i.e. CCDB objects may be updated in the lifetime of the manager) | |
| template<typename T > | |
| T * | get (std::string const &path) |
| retrieve an object of type T from CCDB as stored under path; will use the timestamp member | |
| CcdbApi & | getCCDBAccessor () |
| bool | isHostReachable () const |
| void | clearCache () |
| clear all entries in the cache | |
| void | clearCache (std::string const &path) |
| clear particular entry in the cache | |
| bool | isCachingEnabled () const |
| check if caching is enabled | |
| void | setCaching (bool v) |
| disable or enable caching | |
| bool | isCachedObjectValid (std::string const &path, long timestamp) |
| Check if an object in cache is valid. | |
| bool | isLocalObjectValidityCheckingEnabled () const |
| check if checks of object validity before CCDB query is enabled | |
| void | setLocalObjectValidityChecking (bool v=true) |
| set the flag to check object validity before CCDB query | |
| void | setCreatedNotAfter (long v) |
| set the object upper validity limit | |
| long | getCreatedNotAfter () const |
| get the object upper validity limit | |
| void | resetCreatedNotAfter () |
| reset the object upper validity limit | |
| void | setCreatedNotBefore (long v) |
| set the object upper validity limit | |
| long | getCreatedNotBefore () const |
| get the object upper validity limit | |
| void | resetCreatedNotBefore () |
| reset the object upper validity limit | |
| bool | getFatalWhenNull () const |
| get the fatalWhenNull state | |
| void | setFatalWhenNull (bool b) |
| set the fatal property (when false; nullptr object responses will not abort) | |
| std::pair< int64_t, int64_t > | getRunDuration (int runnumber, bool fatal=true) |
| std::string | getSummaryString () const |
| size_t | getFetchedSize () const |
| void | report (bool longrep=false) |
| void | endOfStream () |
Definition at line 367 of file BasicCCDBManager.h.
|
inlinestatic |
Definition at line 370 of file BasicCCDBManager.h.