CernVM-FS
2.12.0
|
#include <catalog_counters.h>
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_t > | GetValues () 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 |
Definition at line 150 of file catalog_counters.h.
void catalog::Counters::AddAsSubtree | ( | DeltaCounters * | delta | ) | const |
Definition at line 56 of file catalog_counters.cc.
Referenced by catalog::WritableCatalogManager::CreateNestedCatalog().
void catalog::Counters::ApplyDelta | ( | const DeltaCounters & | delta | ) |
Definition at line 50 of file catalog_counters.cc.
Referenced by swissknife::CommandMigrate::MigrationWorker_217::GenerateNewStatisticsCounters(), swissknife::CommandCheck::InspectTree(), catalog::WritableCatalog::MergeIntoParent(), and swissknife::CommandMigrate::StatsMigrationWorker::RepairStatisticsCounters().
|
static |
Definition at line 83 of file catalog_counters.cc.
Referenced by catalog::WritableCatalog::RemoveFromParent(), and catalog::WritableCatalogManager::SwapNestedCatalog().
Counters_t catalog::Counters::GetAllEntries | ( | ) | const |
Definition at line 78 of file catalog_counters.cc.
Referenced by catalog::ClientCatalogManager::ActivateCatalog().
Counters_t catalog::Counters::GetSelfEntries | ( | ) | const |
Definition at line 67 of file catalog_counters.cc.
Referenced by catalog::ClientCatalogManager::ActivateCatalog(), catalog::WritableCatalogManager::FinalizeCatalog(), GetAllEntries(), and catalog::ClientCatalogManager::UnloadCatalog().
Counters_t catalog::Counters::GetSubtreeEntries | ( | ) | const |
Definition at line 72 of file catalog_counters.cc.
Referenced by GetAllEntries().
void catalog::Counters::MergeIntoParent | ( | DeltaCounters * | parent_delta | ) | const |
Definition at line 61 of file catalog_counters.cc.
Referenced by catalog::WritableCatalog::MergeIntoParent().