OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GenDb::DbTableStatistics Class Reference

#include <gendb_statistics.h>

Classes

struct  TableStats
 

Public Member Functions

 DbTableStatistics ()
 
void Update (const std::string &table_name, bool write, bool fail, bool back_pressure, uint64_t num)
 
void GetDiffs (std::vector< GenDb::DbTableInfo > *vdbti)
 
void GetCumulative (std::vector< GenDb::DbTableInfo > *vdbti) const
 

Private Types

typedef boost::ptr_map< const
std::string, TableStats
TableStatsMap
 

Private Member Functions

void GetInternal (std::vector< GenDb::DbTableInfo > *vdbti, bool cumulative) const
 

Private Attributes

TableStatsMap table_stats_map_
 
TableStatsMap table_stats_cumulative_map_
 

Detailed Description

Definition at line 13 of file gendb_statistics.h.

Member Typedef Documentation

typedef boost::ptr_map<const std::string, TableStats> GenDb::DbTableStatistics::TableStatsMap
private

Definition at line 42 of file gendb_statistics.h.

Constructor & Destructor Documentation

GenDb::DbTableStatistics::DbTableStatistics ( )
inline

Definition at line 15 of file gendb_statistics.h.

Member Function Documentation

void GenDb::DbTableStatistics::GetCumulative ( std::vector< GenDb::DbTableInfo > *  vdbti) const

Definition at line 79 of file gendb_statistics.cc.

Here is the call graph for this function:

void GenDb::DbTableStatistics::GetDiffs ( std::vector< GenDb::DbTableInfo > *  vdbti)

Definition at line 74 of file gendb_statistics.cc.

Here is the call graph for this function:

void GenDb::DbTableStatistics::GetInternal ( std::vector< GenDb::DbTableInfo > *  vdbti,
bool  cumulative 
) const
private

Definition at line 57 of file gendb_statistics.cc.

Here is the call graph for this function:

void GenDb::DbTableStatistics::Update ( const std::string &  table_name,
bool  write,
bool  fail,
bool  back_pressure,
uint64_t  num 
)

Definition at line 40 of file gendb_statistics.cc.

Here is the call graph for this function:

Member Data Documentation

TableStatsMap GenDb::DbTableStatistics::table_stats_cumulative_map_
private

Definition at line 45 of file gendb_statistics.h.

TableStatsMap GenDb::DbTableStatistics::table_stats_map_
private

Definition at line 43 of file gendb_statistics.h.


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