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

#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
 

Detailed Description

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.

Definition at line 95 of file cache.h.

Constructor & Destructor Documentation

CacheManager::Label::Label ( )
inline

Definition at line 96 of file cache.h.

Member Function Documentation

std::string CacheManager::Label::GetDescription ( ) const
inline

The description for the quota manager

Definition at line 110 of file cache.h.

Referenced by PosixCacheManager::CommitTxn(), RamCacheManager::CtrlTxn(), and ExternalCacheManager::Flush().

Here is the caller graph for this function:

bool CacheManager::Label::IsCatalog ( ) const
inline

Definition at line 102 of file cache.h.

Referenced by PosixCacheManager::CommitTxn().

Here is the caller graph for this function:

bool CacheManager::Label::IsCertificate ( ) const
inline

Definition at line 105 of file cache.h.

bool CacheManager::Label::IsExternal ( ) const
inline

Definition at line 104 of file cache.h.

Referenced by StreamingCacheManager::SelectDownloadManager(), and StreamingCacheManager::Stream().

Here is the caller graph for this function:

bool CacheManager::Label::IsPinned ( ) const
inline

Definition at line 103 of file cache.h.

Referenced by PosixCacheManager::CommitTxn().

Here is the caller graph for this function:

Member Data Documentation

off_t CacheManager::Label::range_offset
uint64_t CacheManager::Label::size
zlib::Algorithms CacheManager::Label::zip_algorithm

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