OpenSDN source code
|
#include <agent_profile.h>
Public Types | |
typedef boost::function< void(ProfileData *data)> | PktFlowStatsCb |
typedef boost::function< void(ProfileData *data)> | KSyncStatsCb |
typedef boost::function< void(ProfileData *data)> | ProfileCb |
Public Member Functions | |
AgentProfile (Agent *agent, bool enable) | |
~AgentProfile () | |
bool | Init () |
void | Shutdown () |
void | InitDone () |
bool | TimerRun () |
void | Log () |
void | RegisterPktFlowStatsCb (ProfileCb cb) |
void | RegisterKSyncStatsCb (ProfileCb cb) |
void | RegisterFlowStatsCb (ProfileCb cb) |
void | AddProfileData (ProfileData *data) |
ProfileData * | GetProfileData (uint16_t index) |
uint16_t | seconds_history_index () const |
Static Public Attributes | |
static const uint32_t | kProfileTimeout = 1000 |
static const uint16_t | kSecondsHistoryCount = 300 |
static const uint16_t | kMinutesHistoryCount = 60 |
static const uint16_t | kHoursHistoryCount = 24 |
Private Member Functions | |
ProfileData * | GetLastProfileData () |
DISALLOW_COPY_AND_ASSIGN (AgentProfile) | |
Definition at line 122 of file agent_profile.h.
typedef boost::function<void(ProfileData *data)> AgentProfile::KSyncStatsCb |
Definition at line 129 of file agent_profile.h.
typedef boost::function<void(ProfileData *data)> AgentProfile::PktFlowStatsCb |
Definition at line 128 of file agent_profile.h.
typedef boost::function<void(ProfileData *data)> AgentProfile::ProfileCb |
Definition at line 130 of file agent_profile.h.
AgentProfile::AgentProfile | ( | Agent * | agent, |
bool | enable | ||
) |
AgentProfile::~AgentProfile | ( | ) |
void AgentProfile::AddProfileData | ( | ProfileData * | data | ) |
|
private |
|
private |
Definition at line 82 of file agent_profile.cc.
ProfileData * AgentProfile::GetProfileData | ( | uint16_t | index | ) |
Definition at line 88 of file agent_profile.cc.
bool AgentProfile::Init | ( | ) |
void AgentProfile::InitDone | ( | ) |
void AgentProfile::Log | ( | ) |
Definition at line 79 of file agent_profile.cc.
|
inline |
Definition at line 143 of file agent_profile.h.
|
inline |
Definition at line 142 of file agent_profile.h.
|
inline |
Definition at line 141 of file agent_profile.h.
|
inline |
Definition at line 146 of file agent_profile.h.
void AgentProfile::Shutdown | ( | ) |
bool AgentProfile::TimerRun | ( | ) |
|
private |
Definition at line 150 of file agent_profile.h.
|
private |
Definition at line 161 of file agent_profile.h.
|
private |
Definition at line 153 of file agent_profile.h.
|
private |
Definition at line 157 of file agent_profile.h.
|
private |
Definition at line 156 of file agent_profile.h.
|
private |
Definition at line 174 of file agent_profile.h.
|
private |
Definition at line 160 of file agent_profile.h.
|
private |
Definition at line 170 of file agent_profile.h.
|
private |
Definition at line 169 of file agent_profile.h.
|
static |
Definition at line 127 of file agent_profile.h.
|
static |
Definition at line 126 of file agent_profile.h.
|
static |
Definition at line 124 of file agent_profile.h.
|
static |
Definition at line 125 of file agent_profile.h.
|
private |
Definition at line 173 of file agent_profile.h.
|
private |
Definition at line 168 of file agent_profile.h.
|
private |
Definition at line 167 of file agent_profile.h.
|
private |
Definition at line 159 of file agent_profile.h.
|
private |
Definition at line 155 of file agent_profile.h.
|
private |
Definition at line 172 of file agent_profile.h.
|
private |
Definition at line 166 of file agent_profile.h.
|
private |
Definition at line 165 of file agent_profile.h.
|
private |
Definition at line 162 of file agent_profile.h.
|
private |
Definition at line 152 of file agent_profile.h.
|
private |
Definition at line 158 of file agent_profile.h.
|
private |
Definition at line 151 of file agent_profile.h.
|
private |
Definition at line 163 of file agent_profile.h.