CernVM-FS
2.12.0
|
#include <catalog_counters.h>
Classes | |
struct | Fields |
Public Member Functions | |
FieldT | 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, FieldT > | GetValues () const |
std::string | GetCsvMap () const |
Public Attributes | |
Fields | self |
Fields | subtree |
Protected Types | |
typedef std::map< std::string, const FieldT * > | FieldsMap |
Protected Member Functions | |
FieldsMap | GetFieldsMap () const |
Private Member Functions | |
FRIEND_TEST (T_CatalogCounters, FieldsCombinations) | |
FRIEND_TEST (T_CatalogCounters, FieldsMap) | |
Friends | |
class | swissknife::CommandCheck |
Definition at line 35 of file catalog_counters.h.
|
protected |
Definition at line 41 of file catalog_counters.h.
|
private |
|
private |
FieldT catalog::TreeCountersBase< FieldT >::Get | ( | const std::string & | key | ) | const |
Definition at line 17 of file catalog_counters_impl.h.
Referenced by catalog::Catalog::GetNumChunks().
std::string catalog::TreeCountersBase< FieldT >::GetCsvMap | ( | ) | const |
Definition at line 54 of file catalog_counters_impl.h.
Referenced by CatalogCountersMagicXattr::FinalizeValue(), and RepoCountersMagicXattr::FinalizeValue().
|
protected |
Definition at line 27 of file catalog_counters_impl.h.
Referenced by swissknife::CommandCheck::CompareCounters().
std::map< std::string, FieldT > catalog::TreeCountersBase< FieldT >::GetValues | ( | ) | const |
Definition at line 36 of file catalog_counters_impl.h.
bool catalog::TreeCountersBase< FieldT >::InsertIntoDatabase | ( | const CatalogDatabase & | database | ) | const |
Definition at line 155 of file catalog_counters_impl.h.
Referenced by swissknife::CommandMigrate::MigrationWorker_217::GenerateNewStatisticsCounters(), catalog::CatalogDatabase::InsertInitialValues(), and swissknife::CommandMigrate::StatsMigrationWorker::RepairStatisticsCounters().
bool catalog::TreeCountersBase< FieldT >::ReadFromDatabase | ( | const CatalogDatabase & | database, |
const LegacyMode::Type | legacy = LegacyMode::kNoLegacy |
||
) |
Definition at line 70 of file catalog_counters_impl.h.
Referenced by swissknife::CommandMigrate::MigrationWorker_217::GenerateNewStatisticsCounters(), and catalog::Catalog::ReadCatalogCounters().
void catalog::TreeCountersBase< FieldT >::SetZero | ( | ) |
Definition at line 180 of file catalog_counters_impl.h.
Referenced by catalog::WritableCatalogManager::CatalogUploadCallback().
bool catalog::TreeCountersBase< FieldT >::WriteToDatabase | ( | const CatalogDatabase & | database | ) | const |
Definition at line 130 of file catalog_counters_impl.h.
Referenced by swissknife::CommandMigrate::MigrationWorker_20x::GenerateCatalogStatistics(), and catalog::WritableCatalog::UpdateCounters().
|
friend |
Definition at line 36 of file catalog_counters.h.
Fields catalog::TreeCountersBase< FieldT >::self |
Definition at line 129 of file catalog_counters.h.
Referenced by catalog::WritableCatalog::AddFileChunk(), catalog::Counters::ApplyDelta(), catalog::WritableCatalog::CopyCatalogsToParent(), catalog::Counters::Diff(), swissknife::CommandCheck::Find(), swissknife::CommandMigrate::MigrationWorker_20x::GenerateCatalogStatistics(), swissknife::CommandMigrate::MigrationWorker_217::GenerateNewStatisticsCounters(), catalog::CatalogDatabase::InsertInitialValues(), catalog::WritableCatalog::InsertNestedCatalog(), swissknife::CommandCheck::InspectTree(), catalog::Counters::MergeIntoParent(), anonymous_namespace{cmd_diff.cc}::DiffReporter::OnStats(), catalog::WritableCatalog::RemoveFileChunks(), catalog::DeltaCounters::RemoveFromSubtree(), catalog::WritableCatalog::RemoveNestedCatalog(), swissknife::CommandMigrate::StatsMigrationWorker::RepairStatisticsCounters(), and catalog::WritableCatalog::TouchEntry().
Fields catalog::TreeCountersBase< FieldT >::subtree |
Definition at line 130 of file catalog_counters.h.
Referenced by catalog::Counters::AddAsSubtree(), catalog::Counters::ApplyDelta(), catalog::Counters::Diff(), catalog::Counters::MergeIntoParent(), anonymous_namespace{cmd_diff.cc}::DiffReporter::OnStats(), catalog::WritableCatalog::Partition(), catalog::DeltaCounters::PopulateToParent(), and catalog::DeltaCounters::RemoveFromSubtree().