![]() |
ATLAS Offline Software
|
#include <IFileCatalog.h>
Public Types | |
| typedef Gaudi::IFileCatalog::Files | Files |
| typedef Gaudi::IFileCatalog::Strings | Strings |
| typedef Gaudi::IFileCatalogMgr::Catalogs | Catalogs |
Public Member Functions | |
| IFileCatalog () | |
| ~IFileCatalog () | |
| std::string | createFID () const |
| Create file identifier using UUID mechanism. More... | |
| void | connect () |
| void | disconnect () |
| const std::string & | connectInfo () const |
| Get the connect string. More... | |
| void | start () |
| redirect to init() for Gaudi FC More... | |
| void | init () |
| Parse the DOM tree of the XML catalog. More... | |
| void | commit () |
| Save catalog to file. More... | |
| void | rollback () |
| Save catalog to file. More... | |
| bool | readOnly () const |
| Check if the catalog is read-only. More... | |
| bool | dirty () const |
| Check if the catalog should be updated. More... | |
| void | getFIDs (Strings &fids) const |
| Get all FIDs. More... | |
| void | getLFNs (const std::string &fid, Files &files) const |
| Get all logical names for a given FID. Return pairs <LFN,FID> More... | |
| void | getPFNs (const std::string &fid, Files &files) const |
| Dump all PFNames of the catalog and their attributes associate to the FileID. More... | |
| void | getFirstPFN (const std::string &fid, std::string &pfn, std::string &tech) const |
| Get the first PFN + filetype for the given FID. More... | |
| void | lookupFileByPFN (const std::string &pfn, std::string &fid, std::string &tech) const |
| Get FID and filetype for a given PFN. More... | |
| bool | existsPFN (const std::string &pfn) const |
| Return the status of a PFName. More... | |
| std::string | lookupPFN (const std::string &pfn) const |
| Lookup file identifier by physical file name. More... | |
| void | lookupFileByLFN (const std::string &lfn, std::string &fid) const |
| Return the status of a LFName. More... | |
| std::string | lookupLFN (const std::string &lfn) const |
| void | deleteFID (const std::string &FileID) |
| Return the status of a FileID. More... | |
| void | deletePFN (const std::string &pfn) |
| Delete PFN from the catalog (delete entire FID entry if it was the last PFN) More... | |
| void | registerPFN (const std::string &pfn, const std::string &ftype, std::string &fid) |
| Register PFN, assign new FID if not given. More... | |
| void | renamePFN (const std::string &pfn, const std::string &newpfn) |
| Rename PFN. More... | |
| void | addReplicaPFN (const std::string &pfn, const std::string &replica_pfn) |
| adding replica to an existing PFN More... | |
| void | addReplicaFID (const std::string &fid, const std::string &replica_pfn, const std::string &replica_tech="ROOT_All") |
| adding replica to an existing FID More... | |
| void | registerLFN (const std::string &fid, const std::string &lfn) const |
| Create a Node for a FileID and DOM Node of the LFN with all the attributes. More... | |
| void | addReadCatalog (const std::string &connect) |
| Add new catalog identified by name to the existing ones. More... | |
| void | addCatalog (const std::string &connect) |
| void | removeCatalog (const std::string &connect) |
| Add new catalog identified by reference to the existing ones. More... | |
| Catalogs & | catalogs () |
| Remove catalog identified by reference from the existing ones. More... | |
| const Catalogs & | catalogs () const |
| Access catalog container (CONST) More... | |
| void | setWriteCatalog (const std::string &connect) |
| Access to the (first) writable file catalog. More... | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. More... | |
| MsgStream & | msg () const |
| The standard message stream. More... | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. More... | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. More... | |
Protected Attributes | |
| SmartIF< Gaudi::IFileCatalogMgr > | m_mgr |
| SmartIF< Gaudi::IFileCatalog > | m_fc |
Private Member Functions | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. More... | |
Private Attributes | |
| std::string | m_nm |
| Message source name. More... | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) More... | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. More... | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. More... | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) More... | |
Definition at line 23 of file IFileCatalog.h.
| typedef Gaudi::IFileCatalogMgr::Catalogs pool::IFileCatalog::Catalogs |
Definition at line 28 of file IFileCatalog.h.
| typedef Gaudi::IFileCatalog::Files pool::IFileCatalog::Files |
Definition at line 26 of file IFileCatalog.h.
| typedef Gaudi::IFileCatalog::Strings pool::IFileCatalog::Strings |
Definition at line 27 of file IFileCatalog.h.
| pool::IFileCatalog::IFileCatalog | ( | ) |
|
inline |
Definition at line 32 of file IFileCatalog.h.
| void pool::IFileCatalog::addCatalog | ( | const std::string & | connect | ) |
|
inline |
Add new catalog identified by name to the existing ones.
Definition at line 116 of file IFileCatalog.h.
| void pool::IFileCatalog::addReplicaFID | ( | const std::string & | fid, |
| const std::string & | replica_pfn, | ||
| const std::string & | replica_tech = "ROOT_All" |
||
| ) |
adding replica to an existing FID
adding replica to an existing PFN
|
inline |
Remove catalog identified by reference from the existing ones.
Access catalog container
Definition at line 128 of file IFileCatalog.h.
|
inline |
|
inline |
Definition at line 39 of file IFileCatalog.h.
|
inline |
| std::string pool::IFileCatalog::createFID | ( | ) | const |
Create file identifier using UUID mechanism.
|
inline |
Return the status of a FileID.
Delete FileID Node from the catalog
Definition at line 89 of file IFileCatalog.h.
|
inline |
Delete PFN from the catalog (delete entire FID entry if it was the last PFN)
Definition at line 92 of file IFileCatalog.h.
|
inline |
|
inline |
Definition at line 40 of file IFileCatalog.h.
|
inline |
|
inline |
| void pool::IFileCatalog::getFirstPFN | ( | const std::string & | fid, |
| std::string & | pfn, | ||
| std::string & | tech | ||
| ) | const |
Get the first PFN + filetype for the given FID.
Get all logical names for a given FID. Return pairs <LFN,FID>
Definition at line 61 of file IFileCatalog.h.
Dump all PFNames of the catalog and their attributes associate to the FileID.
Definition at line 64 of file IFileCatalog.h.
|
inline |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inline |
Return the status of a LFName.
Lookup file identified by logical file name
Definition at line 82 of file IFileCatalog.h.
| void pool::IFileCatalog::lookupFileByPFN | ( | const std::string & | pfn, |
| std::string & | fid, | ||
| std::string & | tech | ||
| ) | const |
Get FID and filetype for a given PFN.
|
inline |
Definition at line 83 of file IFileCatalog.h.
|
inline |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
inline |
|
inline |
Create a Node for a FileID and DOM Node of the LFN with all the attributes.
Definition at line 110 of file IFileCatalog.h.
| void pool::IFileCatalog::registerPFN | ( | const std::string & | pfn, |
| const std::string & | ftype, | ||
| std::string & | fid | ||
| ) |
Register PFN, assign new FID if not given.
|
inline |
Add new catalog identified by reference to the existing ones.
Remove catalog identified by name from the existing ones. * or '' removes all
Definition at line 123 of file IFileCatalog.h.
|
inline |
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
| void pool::IFileCatalog::setWriteCatalog | ( | const std::string & | connect | ) |
Access to the (first) writable file catalog.
Define the writable catalog identified by reference Define the writable catalog identified by name
|
inline |
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
protected |
Definition at line 141 of file IFileCatalog.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
protected |
Definition at line 140 of file IFileCatalog.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
1.8.18