|
OpenSDN source code
|
#include <stats_manager.h>

Classes | |
| struct | FlowRuleMatchInfo |
| struct | InterfaceStats |
| struct | VrfStats |
Public Types | |
| typedef std::map< const Interface *, InterfaceStats > | InterfaceStatsTree |
| typedef std::pair< const Interface *, InterfaceStats > | InterfaceStatsPair |
| typedef std::map< int, VrfStats > | VrfIdToVrfStatsTree |
| typedef std::pair< int, VrfStats > | VrfStatsPair |
| typedef std::map< const boost::uuids::uuid, FlowRuleMatchInfo > | FlowAceTree |
| typedef std::pair< const boost::uuids::uuid, FlowRuleMatchInfo > | FlowAcePair |
Public Member Functions | |
| StatsManager (Agent *agent) | |
| virtual | ~StatsManager () |
| vr_drop_stats_req | drop_stats () const |
| void | set_drop_stats (const vr_drop_stats_req &req) |
| InterfaceStats * | GetInterfaceStats (const Interface *intf) |
| VrfStats * | GetVrfStats (int vrf_id) |
| std::string | GetNamelessVrf () |
| int | GetNamelessVrfId () |
| void | Shutdown (void) |
| void | RegisterDBClients () |
| void | InitDone () |
| bool | RequestHandler (boost::shared_ptr< FlowUveStatsRequest > req) |
| void | EnqueueEvent (const boost::shared_ptr< FlowUveStatsRequest > &req) |
| bool | BuildFlowRate (AgentStats::FlowCounters &created, AgentStats::FlowCounters &aged, FlowRateComputeInfo &flow_info, VrouterFlowRate &flow_rate) const |
| void | BuildDropStats (const vr_drop_stats_req &r, AgentDropStats &ds) const |
Private Member Functions | |
| void | VrfNotify (DBTablePartBase *partition, DBEntryBase *e) |
| void | InterfaceNotify (DBTablePartBase *part, DBEntryBase *e) |
| void | AddNamelessVrfStatsEntry () |
| void | AddInterfaceStatsEntry (const Interface *intf) |
| void | DelInterfaceStatsEntry (const Interface *intf) |
| void | AddUpdateVrfStatsEntry (const VrfEntry *intf) |
| void | DelVrfStatsEntry (const VrfEntry *intf) |
| void | AddFlow (const FlowUveStatsRequest *req) |
| void | DeleteFlow (const FlowUveStatsRequest *req) |
| bool | FlowStatsUpdate () |
| DISALLOW_COPY_AND_ASSIGN (StatsManager) | |
Private Attributes | |
| VrfIdToVrfStatsTree | vrf_stats_tree_ |
| InterfaceStatsTree | if_stats_tree_ |
| FlowAceTree | flow_ace_tree_ |
| vr_drop_stats_req | drop_stats_ |
| DBTableBase::ListenerId | vrf_listener_id_ |
| DBTableBase::ListenerId | intf_listener_id_ |
| Agent * | agent_ |
| WorkQueue< boost::shared_ptr< FlowUveStatsRequest > > | request_queue_ |
| Timer * | timer_ |
Friends | |
| class | AgentStatsCollectorTest |
Definition at line 35 of file stats_manager.h.
| typedef std::pair<const boost::uuids::uuid, FlowRuleMatchInfo> StatsManager::FlowAcePair |
Definition at line 199 of file stats_manager.h.
| typedef std::map<const boost::uuids::uuid, FlowRuleMatchInfo> StatsManager::FlowAceTree |
Definition at line 198 of file stats_manager.h.
| typedef std::pair<const Interface *, InterfaceStats> StatsManager::InterfaceStatsPair |
Definition at line 145 of file stats_manager.h.
| typedef std::map<const Interface *, InterfaceStats> StatsManager::InterfaceStatsTree |
Definition at line 144 of file stats_manager.h.
| typedef std::map<int, VrfStats> StatsManager::VrfIdToVrfStatsTree |
Definition at line 146 of file stats_manager.h.
| typedef std::pair<int, VrfStats> StatsManager::VrfStatsPair |
Definition at line 147 of file stats_manager.h.
|
explicit |
|
virtual |
Definition at line 24 of file stats_manager.cc.
|
private |
|
private |
|
private |
|
private |
| void StatsManager::BuildDropStats | ( | const vr_drop_stats_req & | r, |
| AgentDropStats & | ds | ||
| ) | const |
Definition at line 436 of file stats_manager.cc.
| bool StatsManager::BuildFlowRate | ( | AgentStats::FlowCounters & | created, |
| AgentStats::FlowCounters & | aged, | ||
| FlowRateComputeInfo & | flow_info, | ||
| VrouterFlowRate & | flow_rate | ||
| ) | const |
|
private |
|
private |
Definition at line 37 of file stats_manager.cc.
|
private |
|
private |
|
inline |
Definition at line 204 of file stats_manager.h.
| void StatsManager::EnqueueEvent | ( | const boost::shared_ptr< FlowUveStatsRequest > & | req | ) |
|
private |
| StatsManager::InterfaceStats * StatsManager::GetInterfaceStats | ( | const Interface * | intf | ) |
Definition at line 102 of file stats_manager.cc.
|
inline |
Definition at line 210 of file stats_manager.h.
|
inline |
Definition at line 211 of file stats_manager.h.
| StatsManager::VrfStats * StatsManager::GetVrfStats | ( | int | vrf_id | ) |
Definition at line 114 of file stats_manager.cc.
| void StatsManager::InitDone | ( | ) |
|
private |
| void StatsManager::RegisterDBClients | ( | ) |
| bool StatsManager::RequestHandler | ( | boost::shared_ptr< FlowUveStatsRequest > | req | ) |
|
inline |
Definition at line 205 of file stats_manager.h.
| void StatsManager::Shutdown | ( | void | ) |
|
private |
|
friend |
Definition at line 223 of file stats_manager.h.
|
private |
Definition at line 243 of file stats_manager.h.
|
private |
Definition at line 240 of file stats_manager.h.
|
private |
Definition at line 239 of file stats_manager.h.
|
private |
Definition at line 238 of file stats_manager.h.
|
private |
Definition at line 242 of file stats_manager.h.
|
private |
Definition at line 244 of file stats_manager.h.
|
private |
Definition at line 245 of file stats_manager.h.
|
private |
Definition at line 241 of file stats_manager.h.
|
private |
Definition at line 237 of file stats_manager.h.