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


Public Types | |
| enum | StatsType { InterfaceStatsType , VrfStatsType , DropStatsType } |
Public Types inherited from StatsCollector | |
| enum | StatsInstance { FlowStatsCollector , AgentStatsCollector } |
Public Member Functions | |
| AgentStatsCollector (boost::asio::io_context &io, Agent *agent) | |
| virtual | ~AgentStatsCollector () |
| Agent * | agent () const |
| void | SendInterfaceBulkGet () |
| void | SendVrfStatsBulkGet () |
| void | SendDropStatsBulkGet () |
| bool | Run () |
| void | RegisterDBClients () |
| void | Shutdown (void) |
| virtual IoContext * | AllocateIoContext (char *buf, uint32_t buf_len, StatsType type, uint32_t seq) |
Public Member Functions inherited from StatsCollector | |
| StatsCollector (int task_id, int32_t instance, boost::asio::io_service &io, int exp, std::string timer_name) | |
| virtual | ~StatsCollector () |
| void | InitDone () |
| void | Shutdown () |
| void | TestStartStopTimer (bool stop) |
| int | expiry_time () const |
| void | set_expiry_time (int time) |
| void | RescheduleTimer (int time) |
Protected Attributes | |
| boost::scoped_ptr< AgentStatsSandeshContext > | intf_stats_sandesh_ctx_ |
| boost::scoped_ptr< AgentStatsSandeshContext > | vrf_stats_sandesh_ctx_ |
| boost::scoped_ptr< AgentStatsSandeshContext > | drop_stats_sandesh_ctx_ |
Private Member Functions | |
| void | SendAsync (char *buf, uint32_t buf_len, StatsType type) |
| bool | SendRequest (Sandesh &encoder, StatsType type) |
| DISALLOW_COPY_AND_ASSIGN (AgentStatsCollector) | |
Private Attributes | |
| Agent * | agent_ |
Additional Inherited Members | |
Public Attributes inherited from StatsCollector | |
| int | run_counter_ |
Definition at line 26 of file agent_stats_collector.h.
| Enumerator | |
|---|---|
| InterfaceStatsType | |
| VrfStatsType | |
| DropStatsType | |
Definition at line 28 of file agent_stats_collector.h.
| AgentStatsCollector::AgentStatsCollector | ( | boost::asio::io_context & | io, |
| Agent * | agent | ||
| ) |
|
virtual |
Definition at line 43 of file agent_stats_collector.cc.
|
inline |
Definition at line 36 of file agent_stats_collector.h.
|
virtual |
Definition at line 89 of file agent_stats_collector.cc.
|
private |
| void AgentStatsCollector::RegisterDBClients | ( | ) |
|
virtual |
Implements StatsCollector.
Definition at line 123 of file agent_stats_collector.cc.

|
private |
| void AgentStatsCollector::SendDropStatsBulkGet | ( | ) |
| void AgentStatsCollector::SendInterfaceBulkGet | ( | ) |
| void AgentStatsCollector::SendVrfStatsBulkGet | ( | ) |
| void AgentStatsCollector::Shutdown | ( | void | ) |
|
private |
Definition at line 54 of file agent_stats_collector.h.
|
protected |
Definition at line 49 of file agent_stats_collector.h.
|
protected |
Definition at line 47 of file agent_stats_collector.h.
|
protected |
Definition at line 48 of file agent_stats_collector.h.