CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
manifest::Breadcrumb Struct Reference

#include <manifest.h>

Collaboration diagram for manifest::Breadcrumb:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

manifest::Breadcrumb::Breadcrumb ( )
inline

Definition at line 25 of file manifest.h.

manifest::Breadcrumb::Breadcrumb ( const shash::Any h,
uint64_t  t,
uint64_t  r 
)
inline

Definition at line 26 of file manifest.h.

manifest::Breadcrumb::Breadcrumb ( const std::string &  from_string)
explicit

Definition at line 19 of file manifest.cc.

Here is the call graph for this function:

Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

bool manifest::Breadcrumb::IsValid ( ) const
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().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string manifest::Breadcrumb::ToString ( ) const

Definition at line 72 of file manifest.cc.

Referenced by catalog::ClientCatalogManager::GetNewRootCatalogContext().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const uint64_t manifest::Breadcrumb::kInvalidRevision = -1ul
static

Definition at line 23 of file manifest.h.

Referenced by catalog::ClientCatalogManager::GetNewRootCatalogContext(), and IsValid().


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