OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SandeshUVEPerTypeMapImpl< T, U, P, TM > Class Template Reference

#include <sandesh_uve.h>

Collaboration diagram for SandeshUVEPerTypeMapImpl< T, U, P, TM >:

Classes

struct  HashCompare
 
struct  UVEMapEntry
 

Public Types

typedef boost::ptr_map
< std::string, UVEMapEntry
uve_table_map
 
typedef
tbb::concurrent_hash_map
< std::string, uve_table_map,
HashCompare
uve_cmap
 

Public Member Functions

 SandeshUVEPerTypeMapImpl ()
 
bool UpdateUVE (U &data, uint32_t seqnum, uint64_t mono_usec, SandeshLevel::type level)
 
uint32_t ClearUVEs (void)
 
bool InitDerivedStats (const std::map< std::string, std::string > &dsconf)
 
uint32_t SyncUVE (const std::string &table, SandeshUVE::SendType st, uint32_t seqno, uint32_t cycle, const std::string &ctx)
 
bool SendUVE (const std::string &table, const std::string &name, const std::string &ctx) const
 
std::map< std::string,
std::string > 
GetDSConf (void) const
 

Private Attributes

uve_cmap cmap_
 
std::map< std::string,
std::string > 
dsconf_
 
tbb::mutex uve_mutex_
 

Detailed Description

template<typename T, typename U, int P, int TM>
class SandeshUVEPerTypeMapImpl< T, U, P, TM >

Definition at line 109 of file sandesh_uve.h.

Member Typedef Documentation

template<typename T , typename U , int P, int TM>
typedef tbb::concurrent_hash_map<std::string, uve_table_map, HashCompare > SandeshUVEPerTypeMapImpl< T, U, P, TM >::uve_cmap

Definition at line 133 of file sandesh_uve.h.

template<typename T , typename U , int P, int TM>
typedef boost::ptr_map<std::string, UVEMapEntry> SandeshUVEPerTypeMapImpl< T, U, P, TM >::uve_table_map

Definition at line 130 of file sandesh_uve.h.

Constructor & Destructor Documentation

template<typename T , typename U , int P, int TM>
SandeshUVEPerTypeMapImpl< T, U, P, TM >::SandeshUVEPerTypeMapImpl ( )
inline

Definition at line 135 of file sandesh_uve.h.

Member Function Documentation

template<typename T , typename U , int P, int TM>
uint32_t SandeshUVEPerTypeMapImpl< T, U, P, TM >::ClearUVEs ( void  )
inline

Definition at line 199 of file sandesh_uve.h.

Here is the call graph for this function:

template<typename T , typename U , int P, int TM>
std::map<std::string, std::string> SandeshUVEPerTypeMapImpl< T, U, P, TM >::GetDSConf ( void  ) const
inline

Definition at line 338 of file sandesh_uve.h.

template<typename T , typename U , int P, int TM>
bool SandeshUVEPerTypeMapImpl< T, U, P, TM >::InitDerivedStats ( const std::map< std::string, std::string > &  dsconf)
inline

Definition at line 227 of file sandesh_uve.h.

Here is the call graph for this function:

template<typename T , typename U , int P, int TM>
bool SandeshUVEPerTypeMapImpl< T, U, P, TM >::SendUVE ( const std::string &  table,
const std::string &  name,
const std::string &  ctx 
) const
inline

Definition at line 321 of file sandesh_uve.h.

template<typename T , typename U , int P, int TM>
uint32_t SandeshUVEPerTypeMapImpl< T, U, P, TM >::SyncUVE ( const std::string &  table,
SandeshUVE::SendType  st,
uint32_t  seqno,
uint32_t  cycle,
const std::string &  ctx 
)
inline

Definition at line 271 of file sandesh_uve.h.

Here is the call graph for this function:

template<typename T , typename U , int P, int TM>
bool SandeshUVEPerTypeMapImpl< T, U, P, TM >::UpdateUVE ( U &  data,
uint32_t  seqnum,
uint64_t  mono_usec,
SandeshLevel::type  level 
)
inline

Definition at line 141 of file sandesh_uve.h.

Here is the call graph for this function:

Member Data Documentation

template<typename T , typename U , int P, int TM>
uve_cmap SandeshUVEPerTypeMapImpl< T, U, P, TM >::cmap_
private

Definition at line 344 of file sandesh_uve.h.

template<typename T , typename U , int P, int TM>
std::map<std::string, std::string> SandeshUVEPerTypeMapImpl< T, U, P, TM >::dsconf_
private

Definition at line 345 of file sandesh_uve.h.

template<typename T , typename U , int P, int TM>
tbb::mutex SandeshUVEPerTypeMapImpl< T, U, P, TM >::uve_mutex_
mutableprivate

Definition at line 346 of file sandesh_uve.h.


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