CernVM-FS
2.12.0
|
#include <cache.h>
Public Member Functions | |
Label () | |
bool | IsCatalog () const |
bool | IsPinned () const |
bool | IsExternal () const |
bool | IsCertificate () const |
std::string | GetDescription () const |
Public Attributes | |
int | flags |
uint64_t | size |
unzipped size, if known More... | |
zlib::Algorithms | zip_algorithm |
off_t | range_offset |
std::string | path |
Meta-data of an object that the cache may or may not maintain/use. Good cache implementations should at least distinguish between volatile and regular objects. The data in the label are sufficient to download an object, if necessary.
|
inline |
The description for the quota manager
Definition at line 110 of file cache.h.
Referenced by PosixCacheManager::CommitTxn(), RamCacheManager::CtrlTxn(), and ExternalCacheManager::Flush().
|
inline |
Definition at line 102 of file cache.h.
Referenced by PosixCacheManager::CommitTxn().
|
inline |
Definition at line 104 of file cache.h.
Referenced by StreamingCacheManager::SelectDownloadManager(), and StreamingCacheManager::Stream().
|
inline |
Definition at line 103 of file cache.h.
Referenced by PosixCacheManager::CommitTxn().
int CacheManager::Label::flags |
Definition at line 124 of file cache.h.
Referenced by PosixCacheManager::CommitTxn(), RamCacheManager::CtrlTxn(), cvmfs::cvmfs_open(), cvmfs::cvmfs_read(), catalog::ClientCatalogManager::FetchCatalogByHash(), catalog::CachedManifestEnsemble::FetchCertificate(), MountPoint::FetchHistory(), LHashMagicXattr::FinalizeValue(), RepoMetainfoMagicXattr::FinalizeValue(), ExternalCacheManager::Flush(), GetDescription(), IsCatalog(), IsCertificate(), IsExternal(), IsPinned(), catalog::ClientCatalogManager::LoadCatalogByHash(), LibContext::Open(), cvmfs::Pin(), anonymous_namespace{cvmfs_cache_posix.cc}::posix_start_txn(), LibContext::Pread(), and catalog::ClientCatalogManager::StageNestedCatalogByHash().
std::string CacheManager::Label::path |
The logical path on the mountpoint connected to the object. For meta- data objects, e.g. certificate, catalog, it's the repository name (which does not start with a slash).
Definition at line 133 of file cache.h.
Referenced by spec_builder.SpecPoint::__eq__(), spec_builder.SpecPoint::__gt__(), spec_builder.TracePoint::__gt__(), spec_builder.SpecPoint::__lt__(), spec_builder.TracePoint::__lt__(), spec_builder.SpecPoint::__ne__(), spec_builder.TracePoint::__ne__(), spec_builder.SpecPoint::__str__(), cvmfs::cvmfs_open(), cvmfs::cvmfs_read(), catalog::ClientCatalogManager::FetchCatalogByHash(), catalog::CachedManifestEnsemble::FetchCertificate(), MountPoint::FetchHistory(), LHashMagicXattr::FinalizeValue(), RepoMetainfoMagicXattr::FinalizeValue(), GetDescription(), spec_builder.SpecPoint::isParentOf(), catalog::ClientCatalogManager::LoadCatalogByHash(), LibContext::Open(), cvmfs::Pin(), anonymous_namespace{cvmfs_cache_posix.cc}::posix_start_txn(), LibContext::Pread(), catalog::ClientCatalogManager::StageNestedCatalogByHash(), and StreamingCacheManager::Stream().
off_t CacheManager::Label::range_offset |
Definition at line 127 of file cache.h.
Referenced by cvmfs::cvmfs_read(), cvmfs::Pin(), LibContext::Pread(), and StreamingCacheManager::Stream().
uint64_t CacheManager::Label::size |
unzipped size, if known
Definition at line 125 of file cache.h.
Referenced by cvmfs::cvmfs_open(), cvmfs::cvmfs_read(), LibContext::Open(), cvmfs::Pin(), LibContext::Pread(), and StreamingCacheManager::Stream().
zlib::Algorithms CacheManager::Label::zip_algorithm |
Definition at line 126 of file cache.h.
Referenced by cvmfs::cvmfs_open(), cvmfs::cvmfs_read(), LibContext::Open(), cvmfs::Pin(), LibContext::Pread(), and StreamingCacheManager::Stream().