CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
catalog::TreeCountersBase< FieldT > Class Template Reference

#include <catalog_counters.h>

Inheritance diagram for catalog::TreeCountersBase< FieldT >:
Collaboration diagram for catalog::TreeCountersBase< FieldT >:

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
 

Detailed Description

template<typename FieldT>
class catalog::TreeCountersBase< FieldT >

Definition at line 35 of file catalog_counters.h.

Member Typedef Documentation

template<typename FieldT>
typedef std::map<std::string, const FieldT*> catalog::TreeCountersBase< FieldT >::FieldsMap
protected

Definition at line 41 of file catalog_counters.h.

Member Function Documentation

template<typename FieldT>
catalog::TreeCountersBase< FieldT >::FRIEND_TEST ( T_CatalogCounters  ,
FieldsCombinations   
)
private
template<typename FieldT>
catalog::TreeCountersBase< FieldT >::FRIEND_TEST ( T_CatalogCounters  ,
FieldsMap   
)
private
template<typename FieldT >
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().

Here is the caller graph for this function:

template<typename FieldT >
std::string catalog::TreeCountersBase< FieldT >::GetCsvMap ( ) const

Definition at line 54 of file catalog_counters_impl.h.

Referenced by CatalogCountersMagicXattr::FinalizeValue(), and RepoCountersMagicXattr::FinalizeValue().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename FieldT >
TreeCountersBase< FieldT >::FieldsMap catalog::TreeCountersBase< FieldT >::GetFieldsMap ( ) const
protected

Definition at line 27 of file catalog_counters_impl.h.

Referenced by swissknife::CommandCheck::CompareCounters().

Here is the caller graph for this function:

template<typename FieldT >
std::map< std::string, FieldT > catalog::TreeCountersBase< FieldT >::GetValues ( ) const

Definition at line 36 of file catalog_counters_impl.h.

template<typename FieldT >
bool catalog::TreeCountersBase< FieldT >::InsertIntoDatabase ( const CatalogDatabase database) const
template<typename FieldT >
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().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename FieldT >
void catalog::TreeCountersBase< FieldT >::SetZero ( )

Definition at line 180 of file catalog_counters_impl.h.

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

Here is the caller graph for this function:

template<typename FieldT >
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().

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

template<typename FieldT>
friend class swissknife::CommandCheck
friend

Definition at line 36 of file catalog_counters.h.

Member Data Documentation


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