CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin Class Reference
Inheritance diagram for anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin:
Collaboration diagram for anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin:

Public Member Functions

 ForwardCachePlugin (struct cvmcache_callbacks *callbacks)
 
virtual ~ForwardCachePlugin ()
 
- Public Member Functions inherited from CachePlugin
bool Listen (const std::string &locator)
 
virtual ~CachePlugin ()
 
void ProcessRequests (unsigned num_workers)
 
bool IsRunning ()
 
void Terminate ()
 
void WaitFor ()
 
void AskToDetach ()
 
unsigned max_object_size () const
 
uint64_t capabilities () const
 

Protected Member Functions

virtual cvmfs::EnumStatus ChangeRefcount (const shash::Any &id, int32_t change_by)
 
virtual cvmfs::EnumStatus GetObjectInfo (const shash::Any &id, ObjectInfo *info)
 
virtual cvmfs::EnumStatus Pread (const shash::Any &id, uint64_t offset, uint32_t *size, unsigned char *buffer)
 
virtual cvmfs::EnumStatus StartTxn (const shash::Any &id, const uint64_t txn_id, const ObjectInfo &info)
 
virtual cvmfs::EnumStatus WriteTxn (const uint64_t txn_id, unsigned char *buffer, uint32_t size)
 
virtual cvmfs::EnumStatus CommitTxn (const uint64_t txn_id)
 
virtual cvmfs::EnumStatus AbortTxn (const uint64_t txn_id)
 
virtual cvmfs::EnumStatus GetInfo (Info *info)
 
virtual cvmfs::EnumStatus Shrink (uint64_t shrink_to, uint64_t *used)
 
virtual cvmfs::EnumStatus ListingBegin (uint64_t lst_id, cvmfs::EnumObjectType type)
 
virtual cvmfs::EnumStatus ListingNext (int64_t lst_id, ObjectInfo *item)
 
virtual cvmfs::EnumStatus ListingEnd (int64_t lst_id)
 
virtual cvmfs::EnumStatus LoadBreadcrumb (const std::string &fqrn, manifest::Breadcrumb *breadcrumb)
 
virtual cvmfs::EnumStatus StoreBreadcrumb (const std::string &fqrn, const manifest::Breadcrumb &breadcrumb)
 
- Protected Member Functions inherited from CachePlugin
 CachePlugin (uint64_t capabilities)
 

Private Attributes

struct cvmcache_callbacks callbacks_
 

Additional Inherited Members

- Static Public Attributes inherited from CachePlugin
static const unsigned kPbProtocolVersion = 1
 
static const uint64_t kSizeUnknown = uint64_t(-1)
 

Detailed Description

Definition at line 55 of file libcvmfs_cache.cc.

Constructor & Destructor Documentation

anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::ForwardCachePlugin ( struct cvmcache_callbacks callbacks)
inlineexplicit

Definition at line 57 of file libcvmfs_cache.cc.

Here is the call graph for this function:

virtual anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::~ForwardCachePlugin ( )
inlinevirtual

Definition at line 86 of file libcvmfs_cache.cc.

Member Function Documentation

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::AbortTxn ( const uint64_t  txn_id)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 171 of file libcvmfs_cache.cc.

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::ChangeRefcount ( const shash::Any id,
int32_t  change_by 
)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 89 of file libcvmfs_cache.cc.

Here is the call graph for this function:

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::CommitTxn ( const uint64_t  txn_id)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 163 of file libcvmfs_cache.cc.

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::GetInfo ( Info info)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 179 of file libcvmfs_cache.cc.

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::GetObjectInfo ( const shash::Any id,
ObjectInfo info 
)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 98 of file libcvmfs_cache.cc.

Here is the call graph for this function:

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::ListingBegin ( uint64_t  lst_id,
cvmfs::EnumObjectType  type 
)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 206 of file libcvmfs_cache.cc.

Here is the call graph for this function:

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::ListingEnd ( int64_t  lst_id)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 241 of file libcvmfs_cache.cc.

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::ListingNext ( int64_t  lst_id,
ObjectInfo item 
)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 218 of file libcvmfs_cache.cc.

Here is the call graph for this function:

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::LoadBreadcrumb ( const std::string &  fqrn,
manifest::Breadcrumb breadcrumb 
)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 249 of file libcvmfs_cache.cc.

Here is the call graph for this function:

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::Pread ( const shash::Any id,
uint64_t  offset,
uint32_t *  size,
unsigned char *  buffer 
)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 117 of file libcvmfs_cache.cc.

Here is the call graph for this function:

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::Shrink ( uint64_t  shrink_to,
uint64_t *  used 
)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 198 of file libcvmfs_cache.cc.

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::StartTxn ( const shash::Any id,
const uint64_t  txn_id,
const ObjectInfo info 
)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 128 of file libcvmfs_cache.cc.

Here is the call graph for this function:

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::StoreBreadcrumb ( const std::string &  fqrn,
const manifest::Breadcrumb breadcrumb 
)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 265 of file libcvmfs_cache.cc.

Here is the call graph for this function:

virtual cvmfs::EnumStatus anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::WriteTxn ( const uint64_t  txn_id,
unsigned char *  buffer,
uint32_t  size 
)
inlineprotectedvirtual

Implements CachePlugin.

Definition at line 151 of file libcvmfs_cache.cc.

Member Data Documentation

struct cvmcache_callbacks anonymous_namespace{libcvmfs_cache.cc}::ForwardCachePlugin::callbacks_
private

Definition at line 280 of file libcvmfs_cache.cc.


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