CernVM-FS
2.12.0
|
#include <catalog_counters.h>
Public Member Functions | |
void | PopulateToParent (DeltaCounters *parent) const |
void | RemoveFromSubtree (const DeltaCounters &child) |
void | Increment (const DirectoryEntry &dirent) |
void | Decrement (const DirectoryEntry &dirent) |
Public Member Functions inherited from catalog::TreeCountersBase< DeltaCounters_t > | |
DeltaCounters_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, DeltaCounters_t > | GetValues () const |
std::string | GetCsvMap () const |
Private Member Functions | |
void | ApplyDelta (const DirectoryEntry &dirent, const int delta) |
Friends | |
class | Counters |
Additional Inherited Members | |
Public Attributes inherited from catalog::TreeCountersBase< DeltaCounters_t > | |
Fields | self |
Fields | subtree |
Protected Types inherited from catalog::TreeCountersBase< DeltaCounters_t > | |
typedef std::map< std::string, const DeltaCounters_t * > | FieldsMap |
Protected Member Functions inherited from catalog::TreeCountersBase< DeltaCounters_t > | |
FieldsMap | GetFieldsMap () const |
Definition at line 135 of file catalog_counters.h.
|
private |
Definition at line 12 of file catalog_counters.cc.
Referenced by Decrement(), and Increment().
|
inline |
Definition at line 142 of file catalog_counters.h.
Referenced by catalog::WritableCatalog::RemoveEntry().
|
inline |
void catalog::DeltaCounters::PopulateToParent | ( | DeltaCounters * | parent | ) | const |
Definition at line 39 of file catalog_counters.cc.
Referenced by swissknife::CommandMigrate::MigrationWorker_20x::GenerateCatalogStatistics(), swissknife::CommandMigrate::MigrationWorker_217::GenerateNewStatisticsCounters(), swissknife::CommandCheck::InspectTree(), catalog::WritableCatalog::MergeIntoParent(), swissknife::CommandMigrate::StatsMigrationWorker::RepairStatisticsCounters(), catalog::WritableCatalogManager::SwapNestedCatalog(), and catalog::WritableCatalog::UpdateNestedCatalog().
void catalog::DeltaCounters::RemoveFromSubtree | ( | const DeltaCounters & | child | ) |
Definition at line 44 of file catalog_counters.cc.
Referenced by catalog::WritableCatalog::RemoveFromParent().
|
friend |
Definition at line 136 of file catalog_counters.h.