CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
catalog::Counters Class Reference

#include <catalog_counters.h>

Inheritance diagram for catalog::Counters:
Collaboration diagram for catalog::Counters:

Public Member Functions

void ApplyDelta (const DeltaCounters &delta)
 
void AddAsSubtree (DeltaCounters *delta) const
 
void MergeIntoParent (DeltaCounters *parent_delta) const
 
Counters_t GetSelfEntries () const
 
Counters_t GetSubtreeEntries () const
 
Counters_t GetAllEntries () const
 
- Public Member Functions inherited from catalog::TreeCountersBase< Counters_t >
Counters_t Get (const std::string &key) const
 
bool ReadFromDatabase (const CatalogDatabase &database, const LegacyMode::Type legacy=LegacyMode::kNoLegacy)
 
bool WriteToDatabase (const CatalogDatabase &database) const
 
bool InsertIntoDatabase (const CatalogDatabase &database) const
 
void SetZero ()
 
std::map< std::string, Counters_tGetValues () const
 
std::string GetCsvMap () const
 

Static Public Member Functions

static DeltaCounters Diff (const Counters &from, const Counters &to)
 

Additional Inherited Members

- Public Attributes inherited from catalog::TreeCountersBase< Counters_t >
Fields self
 
Fields subtree
 
- Protected Types inherited from catalog::TreeCountersBase< Counters_t >
typedef std::map< std::string,
const Counters_t * > 
FieldsMap
 
- Protected Member Functions inherited from catalog::TreeCountersBase< Counters_t >
FieldsMap GetFieldsMap () const
 

Detailed Description

Definition at line 150 of file catalog_counters.h.

Member Function Documentation

void catalog::Counters::AddAsSubtree ( DeltaCounters delta) const

Definition at line 56 of file catalog_counters.cc.

Referenced by catalog::WritableCatalogManager::CreateNestedCatalog().

Here is the caller graph for this function:

DeltaCounters catalog::Counters::Diff ( const Counters from,
const Counters to 
)
static

Definition at line 83 of file catalog_counters.cc.

Referenced by catalog::WritableCatalog::RemoveFromParent(), and catalog::WritableCatalogManager::SwapNestedCatalog().

Here is the caller graph for this function:

Counters_t catalog::Counters::GetAllEntries ( ) const

Definition at line 78 of file catalog_counters.cc.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Counters_t catalog::Counters::GetSelfEntries ( ) const
Counters_t catalog::Counters::GetSubtreeEntries ( ) const

Definition at line 72 of file catalog_counters.cc.

Referenced by GetAllEntries().

Here is the caller graph for this function:

void catalog::Counters::MergeIntoParent ( DeltaCounters parent_delta) const

Definition at line 61 of file catalog_counters.cc.

Referenced by catalog::WritableCatalog::MergeIntoParent().

Here is the caller graph for this function:


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