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

#include <agent_uve_base.h>

Inheritance diagram for AgentUveBase:
Collaboration diagram for AgentUveBase:

Public Member Functions

 AgentUveBase (Agent *agent, uint64_t intvl, uint32_t default_intvl, uint32_t incremental_intvl)
 
virtual ~AgentUveBase ()
 
virtual void Shutdown ()
 
uint64_t bandwidth_intvl () const
 
VnUveTableBasevn_uve_table () const
 
VmUveTableBasevm_uve_table () const
 
Agentagent () const
 
VrouterUveEntryBasevrouter_uve_entry () const
 
ProuterUveTableprouter_uve_table () const
 
InterfaceUveTableinterface_uve_table () const
 
VrouterStatsCollectorvrouter_stats_collector () const
 
void Init ()
 
virtual void InitDone ()
 
virtual void RegisterDBClients ()
 
uint8_t ExpectedConnections (uint8_t &num_c_nodes, uint8_t &num_d_servers)
 
uint32_t default_interval () const
 
uint32_t incremental_interval () const
 
void BuildTagNamesFromList (const TagList &tl, UveTagData *info) const
 
void BuildTagIdsFromList (const TagList &tl, UveTagData *info) const
 

Static Public Member Functions

static AgentUveBaseGetInstance ()
 

Static Public Attributes

static const uint32_t kUveCountPerTimer = 64
 
static const uint32_t kDefaultInterval = (30 * 1000)
 
static const uint32_t kIncrementalInterval = (1000)
 
static const uint64_t kBandwidthInterval = (1000000)
 

Protected Attributes

boost::scoped_ptr< VnUveTableBasevn_uve_table_
 
boost::scoped_ptr< VmUveTableBasevm_uve_table_
 
boost::scoped_ptr
< VrouterUveEntryBase
vrouter_uve_entry_
 
boost::scoped_ptr
< ProuterUveTable
prouter_uve_table_
 
boost::scoped_ptr
< InterfaceUveTable
interface_uve_table_
 
uint32_t default_interval_
 
uint32_t incremental_interval_
 
boost::scoped_ptr
< VrouterStatsCollector
vrouter_stats_collector_
 

Static Protected Attributes

static AgentUveBasesingleton_
 

Private Member Functions

std::string IntegerToHexString (uint32_t value) const
 
void VrouterAgentProcessState (const std::vector< process::ConnectionInfo > &c, process::ProcessState::type &state, std::string &message)
 
void UpdateMessage (const process::ConnectionInfo &info, std::string &message)
 
bool HasSelfConfiguration () const
 
 DISALLOW_COPY_AND_ASSIGN (AgentUveBase)
 

Private Attributes

Agentagent_
 
uint64_t bandwidth_intvl_
 
process::ConnectionStateManagerconnection_state_manager_
 

Friends

class UveTest
 

Detailed Description

Definition at line 59 of file agent_uve_base.h.

Constructor & Destructor Documentation

AgentUveBase::AgentUveBase ( Agent agent,
uint64_t  intvl,
uint32_t  default_intvl,
uint32_t  incremental_intvl 
)

Definition at line 44 of file agent_uve_base.cc.

AgentUveBase::~AgentUveBase ( )
virtual

Definition at line 58 of file agent_uve_base.cc.

Member Function Documentation

Agent* AgentUveBase::agent ( ) const
inline

Definition at line 80 of file agent_uve_base.h.

uint64_t AgentUveBase::bandwidth_intvl ( ) const
inline

Definition at line 77 of file agent_uve_base.h.

void AgentUveBase::BuildTagIdsFromList ( const TagList tl,
UveTagData info 
) const

Definition at line 125 of file agent_uve_base.cc.

Here is the call graph for this function:

void AgentUveBase::BuildTagNamesFromList ( const TagList tl,
UveTagData info 
) const

Definition at line 61 of file agent_uve_base.cc.

Here is the call graph for this function:

uint32_t AgentUveBase::default_interval ( ) const
inline

Definition at line 99 of file agent_uve_base.h.

AgentUveBase::DISALLOW_COPY_AND_ASSIGN ( AgentUveBase  )
private
uint8_t AgentUveBase::ExpectedConnections ( uint8_t &  num_c_nodes,
uint8_t &  num_d_servers 
)

Definition at line 204 of file agent_uve_base.cc.

Here is the call graph for this function:

static AgentUveBase* AgentUveBase::GetInstance ( )
inlinestatic

Definition at line 97 of file agent_uve_base.h.

bool AgentUveBase::HasSelfConfiguration ( ) const
private

Definition at line 240 of file agent_uve_base.cc.

Here is the call graph for this function:

uint32_t AgentUveBase::incremental_interval ( ) const
inline

Definition at line 100 of file agent_uve_base.h.

void AgentUveBase::Init ( )

Definition at line 187 of file agent_uve_base.cc.

Here is the call graph for this function:

void AgentUveBase::InitDone ( )
virtual

Reimplemented in AgentUveStats.

Definition at line 334 of file agent_uve_base.cc.

string AgentUveBase::IntegerToHexString ( uint32_t  value) const
private

Definition at line 118 of file agent_uve_base.cc.

InterfaceUveTable* AgentUveBase::interface_uve_table ( ) const
inline

Definition at line 87 of file agent_uve_base.h.

ProuterUveTable* AgentUveBase::prouter_uve_table ( ) const
inline

Definition at line 84 of file agent_uve_base.h.

void AgentUveBase::RegisterDBClients ( )
virtual

Reimplemented in AgentUveStats.

Definition at line 326 of file agent_uve_base.cc.

void AgentUveBase::Shutdown ( )
virtual

Reimplemented in AgentUveStats.

Definition at line 177 of file agent_uve_base.cc.

Here is the call graph for this function:

void AgentUveBase::UpdateMessage ( const process::ConnectionInfo &  info,
std::string &  message 
)
private

Definition at line 227 of file agent_uve_base.cc.

VmUveTableBase* AgentUveBase::vm_uve_table ( ) const
inline

Definition at line 79 of file agent_uve_base.h.

VnUveTableBase* AgentUveBase::vn_uve_table ( ) const
inline

Definition at line 78 of file agent_uve_base.h.

VrouterStatsCollector* AgentUveBase::vrouter_stats_collector ( ) const
inline

Definition at line 90 of file agent_uve_base.h.

VrouterUveEntryBase* AgentUveBase::vrouter_uve_entry ( ) const
inline

Definition at line 81 of file agent_uve_base.h.

void AgentUveBase::VrouterAgentProcessState ( const std::vector< process::ConnectionInfo > &  c,
process::ProcessState::type state,
std::string &  message 
)
private

Definition at line 248 of file agent_uve_base.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class UveTest
friend

Definition at line 115 of file agent_uve_base.h.

Member Data Documentation

Agent* AgentUveBase::agent_
private

Definition at line 123 of file agent_uve_base.h.

uint64_t AgentUveBase::bandwidth_intvl_
private

Definition at line 124 of file agent_uve_base.h.

process::ConnectionStateManager* AgentUveBase::connection_state_manager_
private

Definition at line 126 of file agent_uve_base.h.

uint32_t AgentUveBase::default_interval_
protected

Definition at line 109 of file agent_uve_base.h.

uint32_t AgentUveBase::incremental_interval_
protected

Definition at line 110 of file agent_uve_base.h.

boost::scoped_ptr<InterfaceUveTable> AgentUveBase::interface_uve_table_
protected

Definition at line 108 of file agent_uve_base.h.

const uint64_t AgentUveBase::kBandwidthInterval = (1000000)
static

Definition at line 70 of file agent_uve_base.h.

const uint32_t AgentUveBase::kDefaultInterval = (30 * 1000)
static

Definition at line 64 of file agent_uve_base.h.

const uint32_t AgentUveBase::kIncrementalInterval = (1000)
static

Definition at line 68 of file agent_uve_base.h.

const uint32_t AgentUveBase::kUveCountPerTimer = 64
static

Definition at line 62 of file agent_uve_base.h.

boost::scoped_ptr<ProuterUveTable> AgentUveBase::prouter_uve_table_
protected

Definition at line 107 of file agent_uve_base.h.

AgentUveBase * AgentUveBase::singleton_
staticprotected

Definition at line 111 of file agent_uve_base.h.

boost::scoped_ptr<VmUveTableBase> AgentUveBase::vm_uve_table_
protected

Definition at line 105 of file agent_uve_base.h.

boost::scoped_ptr<VnUveTableBase> AgentUveBase::vn_uve_table_
protected

Definition at line 104 of file agent_uve_base.h.

boost::scoped_ptr<VrouterStatsCollector> AgentUveBase::vrouter_stats_collector_
protected

Definition at line 129 of file agent_uve_base.h.

boost::scoped_ptr<VrouterUveEntryBase> AgentUveBase::vrouter_uve_entry_
protected

Definition at line 106 of file agent_uve_base.h.


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