CernVM-FS
2.12.0
|
#include <manifest.h>
Public Member Functions | |
Breadcrumb () | |
Breadcrumb (const shash::Any &h, uint64_t t, uint64_t r) | |
Breadcrumb (const std::string &from_string) | |
bool | Export (const std::string &fqrn, const std::string &directory, const int mode) const |
std::string | ToString () const |
bool | IsValid () const |
Public Attributes | |
shash::Any | catalog_hash |
uint64_t | timestamp |
uint64_t | revision |
Static Public Attributes | |
static const uint64_t | kInvalidRevision = -1ul |
The breadcrumb stores the catalog root hash, its revision and a time stamp. It is used to store the last known copy of the catalog in the cache.
Definition at line 22 of file manifest.h.
|
inline |
Definition at line 25 of file manifest.h.
|
inline |
Definition at line 26 of file manifest.h.
|
explicit |
bool manifest::Breadcrumb::Export | ( | const std::string & | fqrn, |
const std::string & | directory, | ||
const int | mode | ||
) | const |
Definition at line 48 of file manifest.cc.
Referenced by PosixCacheManager::StoreBreadcrumb().
|
inline |
Definition at line 35 of file manifest.h.
Referenced by catalog::ClientCatalogManager::GetNewRootCatalogContext(), CachePlugin::HandleBreadcrumbLoad(), TieredCacheManager::LoadBreadcrumb(), and anonymous_namespace{cvmfs_cache_posix.cc}::posix_breadcrumb_load().
std::string manifest::Breadcrumb::ToString | ( | ) | const |
Definition at line 72 of file manifest.cc.
Referenced by catalog::ClientCatalogManager::GetNewRootCatalogContext().
shash::Any manifest::Breadcrumb::catalog_hash |
Definition at line 39 of file manifest.h.
Referenced by catalog::ClientCatalogManager::GetNewRootCatalogContext(), CachePlugin::HandleBreadcrumbLoad(), CachePlugin::HandleBreadcrumbStore(), IsValid(), ExternalCacheManager::LoadBreadcrumb(), anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::LoadBreadcrumb(), anonymous_namespace{cvmfs_cache_posix.cc}::posix_breadcrumb_load(), and anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::StoreBreadcrumb().
|
static |
Definition at line 23 of file manifest.h.
Referenced by catalog::ClientCatalogManager::GetNewRootCatalogContext(), and IsValid().
uint64_t manifest::Breadcrumb::revision |
Definition at line 41 of file manifest.h.
Referenced by catalog::ClientCatalogManager::GetNewRootCatalogContext(), CachePlugin::HandleBreadcrumbLoad(), CachePlugin::HandleBreadcrumbStore(), IsValid(), ExternalCacheManager::LoadBreadcrumb(), anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::LoadBreadcrumb(), anonymous_namespace{cvmfs_cache_posix.cc}::posix_breadcrumb_load(), and anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::StoreBreadcrumb().
uint64_t manifest::Breadcrumb::timestamp |
Definition at line 40 of file manifest.h.
Referenced by catalog::ClientCatalogManager::GetNewRootCatalogContext(), CachePlugin::HandleBreadcrumbLoad(), CachePlugin::HandleBreadcrumbStore(), IsValid(), ExternalCacheManager::LoadBreadcrumb(), anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::LoadBreadcrumb(), anonymous_namespace{cvmfs_cache_posix.cc}::posix_breadcrumb_load(), and anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::StoreBreadcrumb().