OpenSDN source code
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

◆ BasicStatsList

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

Definition at line 34 of file sandesh_statistics.h.

◆ DetailStatsList

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

Definition at line 26 of file sandesh_statistics.h.

◆ DetailStatsMap

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

Definition at line 25 of file sandesh_statistics.h.

Constructor & Destructor Documentation

◆ SandeshMessageStatistics()

SandeshMessageStatistics::SandeshMessageStatistics ( )
inline

Definition at line 13 of file sandesh_statistics.h.

Member Function Documentation

◆ Clear()

void SandeshMessageStatistics::Clear ( )

◆ Get() [1/3]

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:

◆ Get() [2/3]

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

Definition at line 27 of file sandesh_statistics.cc.

◆ Get() [3/3]

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

Definition at line 21 of file sandesh_statistics.cc.

◆ Shutdown()

void SandeshMessageStatistics::Shutdown ( void  )

Definition at line 278 of file sandesh_statistics.cc.

◆ UpdateInternal()

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:

◆ UpdateRecv()

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:

◆ UpdateRecvFailed()

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:

◆ UpdateSend()

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:

◆ UpdateSendFailed()

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

◆ deleted_

bool SandeshMessageStatistics::deleted_
private

Definition at line 41 of file sandesh_statistics.h.

◆ detail_agg_stats_

SandeshMessageStats SandeshMessageStatistics::detail_agg_stats_
private

Definition at line 48 of file sandesh_statistics.h.

◆ detail_type_stats_map_

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: