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

#include <sandesh_statistics.h>

Public Types

typedef boost::ptr_map
< std::string,
SandeshMessageTypeStats > 
DetailStatsMap
 
typedef std::vector
< SandeshMessageTypeStats > 
DetailStatsList
 
typedef std::vector
< SandeshMessageTypeBasicStats > 
BasicStatsList
 

Public Member Functions

 SandeshMessageStatistics ()
 
void UpdateSend (const std::string &msg_name, uint64_t bytes)
 
void UpdateSendFailed (const std::string &msg_name, uint64_t bytes, SandeshTxDropReason::type dreason)
 
void UpdateRecv (const std::string &msg_name, uint64_t bytes)
 
void UpdateRecvFailed (const std::string &msg_name, uint64_t bytes, SandeshRxDropReason::type dreason)
 
void Clear ()
 
void Get (DetailStatsList *v_detail_type_stats, SandeshMessageStats *detail_agg_stats) const
 
void Get (DetailStatsMap *m_detail_type_stats, SandeshMessageStats *detail_agg_stats) const
 
void Get (BasicStatsList *v_basic_type_stats, SandeshMessageBasicStats *basic_agg_stats) const
 
void Shutdown ()
 

Private Member Functions

void UpdateInternal (const std::string &msg_name, uint64_t bytes, bool is_tx, bool dropped, SandeshTxDropReason::type send_dreason, SandeshRxDropReason::type recv_dreason)
 

Private Attributes

bool deleted_
 
DetailStatsMap detail_type_stats_map_
 
SandeshMessageStats detail_agg_stats_
 

Detailed Description

Definition at line 11 of file sandesh_statistics.h.

Member Typedef Documentation

typedef std::vector<SandeshMessageTypeBasicStats> SandeshMessageStatistics::BasicStatsList

Definition at line 34 of file sandesh_statistics.h.

typedef std::vector<SandeshMessageTypeStats> SandeshMessageStatistics::DetailStatsList

Definition at line 26 of file sandesh_statistics.h.

typedef boost::ptr_map<std::string, SandeshMessageTypeStats> SandeshMessageStatistics::DetailStatsMap

Definition at line 25 of file sandesh_statistics.h.

Constructor & Destructor Documentation

SandeshMessageStatistics::SandeshMessageStatistics ( )
inline

Definition at line 13 of file sandesh_statistics.h.

Member Function Documentation

void SandeshMessageStatistics::Clear ( )
void SandeshMessageStatistics::Get ( DetailStatsList v_detail_type_stats,
SandeshMessageStats *  detail_agg_stats 
) const

Definition at line 27 of file sandesh_statistics.cc.

void SandeshMessageStatistics::Get ( DetailStatsMap m_detail_type_stats,
SandeshMessageStats *  detail_agg_stats 
) const

Definition at line 21 of file sandesh_statistics.cc.

void SandeshMessageStatistics::Get ( BasicStatsList v_basic_type_stats,
SandeshMessageBasicStats *  basic_agg_stats 
) const

Definition at line 58 of file sandesh_statistics.cc.

Here is the call graph for this function:

void SandeshMessageStatistics::Shutdown ( void  )

Definition at line 278 of file sandesh_statistics.cc.

void SandeshMessageStatistics::UpdateInternal ( const std::string &  msg_name,
uint64_t  bytes,
bool  is_tx,
bool  dropped,
SandeshTxDropReason::type  send_dreason,
SandeshRxDropReason::type  recv_dreason 
)
private

Definition at line 235 of file sandesh_statistics.cc.

Here is the call graph for this function:

void SandeshMessageStatistics::UpdateRecv ( const std::string &  msg_name,
uint64_t  bytes 
)

Definition at line 223 of file sandesh_statistics.cc.

Here is the call graph for this function:

void SandeshMessageStatistics::UpdateRecvFailed ( const std::string &  msg_name,
uint64_t  bytes,
SandeshRxDropReason::type  dreason 
)

Definition at line 229 of file sandesh_statistics.cc.

Here is the call graph for this function:

void SandeshMessageStatistics::UpdateSend ( const std::string &  msg_name,
uint64_t  bytes 
)

Definition at line 211 of file sandesh_statistics.cc.

Here is the call graph for this function:

void SandeshMessageStatistics::UpdateSendFailed ( const std::string &  msg_name,
uint64_t  bytes,
SandeshTxDropReason::type  dreason 
)

Definition at line 217 of file sandesh_statistics.cc.

Here is the call graph for this function:

Member Data Documentation

bool SandeshMessageStatistics::deleted_
private

Definition at line 41 of file sandesh_statistics.h.

SandeshMessageStats SandeshMessageStatistics::detail_agg_stats_
private

Definition at line 48 of file sandesh_statistics.h.

DetailStatsMap SandeshMessageStatistics::detail_type_stats_map_
private

Definition at line 47 of file sandesh_statistics.h.


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