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

#include <stats_collector.h>

Inheritance diagram for StatsCollector:
Collaboration diagram for StatsCollector:

Public Types

enum  StatsInstance { FlowStatsCollector, AgentStatsCollector }
 

Public Member Functions

 StatsCollector (int task_id, int32_t instance, boost::asio::io_service &io, int exp, std::string timer_name)
 
virtual ~StatsCollector ()
 
void InitDone ()
 
virtual bool Run ()=0
 
void Shutdown ()
 
void TestStartStopTimer (bool stop)
 
int expiry_time () const
 
void set_expiry_time (int time)
 
void RescheduleTimer (int time)
 

Public Attributes

int run_counter_
 

Private Member Functions

bool RestartTimer ()
 
bool TimerExpiry ()
 
 DISALLOW_COPY_AND_ASSIGN (StatsCollector)
 

Private Attributes

Timertimer_
 
TaskTriggertimer_restart_trigger_
 
int expiry_time_
 

Detailed Description

Definition at line 15 of file stats_collector.h.

Member Enumeration Documentation

Enumerator
FlowStatsCollector 
AgentStatsCollector 

Definition at line 17 of file stats_collector.h.

Constructor & Destructor Documentation

StatsCollector::StatsCollector ( int  task_id,
int32_t  instance,
boost::asio::io_service &  io,
int  exp,
std::string  timer_name 
)
inline

Definition at line 22 of file stats_collector.h.

virtual StatsCollector::~StatsCollector ( )
inlinevirtual

Definition at line 32 of file stats_collector.h.

Here is the call graph for this function:

Member Function Documentation

StatsCollector::DISALLOW_COPY_AND_ASSIGN ( StatsCollector  )
private
int StatsCollector::expiry_time ( ) const
inline

Definition at line 72 of file stats_collector.h.

void StatsCollector::InitDone ( )
inline

Definition at line 38 of file stats_collector.h.

Here is the call graph for this function:

void StatsCollector::RescheduleTimer ( int  time)
inline

Definition at line 80 of file stats_collector.h.

Here is the call graph for this function:

bool StatsCollector::RestartTimer ( )
inlineprivate

Definition at line 87 of file stats_collector.h.

Here is the call graph for this function:

virtual bool StatsCollector::Run ( )
pure virtual
void StatsCollector::set_expiry_time ( int  time)
inline

Definition at line 73 of file stats_collector.h.

Here is the call graph for this function:

void StatsCollector::Shutdown ( void  )
inline

Definition at line 44 of file stats_collector.h.

Here is the call graph for this function:

void StatsCollector::TestStartStopTimer ( bool  stop)
inline

Definition at line 53 of file stats_collector.h.

Here is the call graph for this function:

bool StatsCollector::TimerExpiry ( )
inlineprivate

Definition at line 93 of file stats_collector.h.

Here is the call graph for this function:

Member Data Documentation

int StatsCollector::expiry_time_
private

Definition at line 101 of file stats_collector.h.

int StatsCollector::run_counter_

Definition at line 84 of file stats_collector.h.

Timer* StatsCollector::timer_
private

Definition at line 99 of file stats_collector.h.

TaskTrigger* StatsCollector::timer_restart_trigger_
private

Definition at line 100 of file stats_collector.h.


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