OpenSDN source code
|
#include <vm_stat_docker.h>
Public Member Functions | |
VmStatDocker (Agent *agent, const boost::uuids::uuid &vm_uuid) | |
~VmStatDocker () | |
void | Start () |
![]() | |
VmStat (Agent *agent, const boost::uuids::uuid &vm_uuid) | |
virtual | ~VmStat () |
bool | marked_delete () const |
void | Stop () |
void | ProcessData () |
Static Public Attributes | |
static const long | kOneSecInNanoSecs = 1000000000 |
![]() | |
static const size_t | kBufLen = 4098 |
static const uint32_t | kRetryCount = 3 |
static const uint16_t | kInvalidCpuCount = 0xFFFF |
Private Member Functions | |
void | ReadContainerId () |
void | GetContainerId () |
void | ReadCpuStat () |
void | GetCpuStat () |
void | ReadMemoryQuota () |
void | GetMemoryQuota () |
void | ReadMemStat () |
void | GetMemStat () |
bool | TimerExpiry () |
void | GetPid () |
void | ReadPid () |
DISALLOW_COPY_AND_ASSIGN (VmStatDocker) | |
Private Attributes | |
std::string | container_id_ |
Additional Inherited Members | |
![]() | |
typedef boost::function< void(void)> | DoneCb |
![]() | |
void | StartTimer () |
void | ExecCmd (std::string cmd, DoneCb cb) |
void | SendVmCpuStats () |
DISALLOW_COPY_AND_ASSIGN (VmStat) | |
![]() | |
Agent * | agent_ |
const boost::uuids::uuid | vm_uuid_ |
uint32_t | mem_usage_ |
uint32_t | virt_memory_ |
uint32_t | virt_memory_peak_ |
uint32_t | vm_memory_quota_ |
double | prev_cpu_stat_ |
double | cpu_usage_ |
time_t | prev_cpu_snapshot_time_ |
std::vector< double > | prev_vcpu_usage_ |
std::vector< double > | vcpu_usage_percent_ |
time_t | prev_vcpu_snapshot_time_ |
char | rx_buff_ [kBufLen] |
std::stringstream | data_ |
boost::asio::posix::stream_descriptor | input_ |
Timer * | timer_ |
bool | marked_delete_ |
uint32_t | pid_ |
uint32_t | retry_ |
DoneCb | call_back_ |
uint32_t | virtual_size_ |
uint32_t | disk_size_ |
std::string | disk_name_ |
VrouterAgentVmState::type | vm_state_ |
VrouterAgentVmState::type | prev_vm_state_ |
uint16_t | vm_cpu_count_ |
uint16_t | prev_vm_cpu_count_ |
Definition at line 10 of file vm_stat_docker.h.
VmStatDocker::VmStatDocker | ( | Agent * | agent, |
const boost::uuids::uuid & | vm_uuid | ||
) |
Definition at line 26 of file vm_stat_docker.cc.
VmStatDocker::~VmStatDocker | ( | ) |
Definition at line 30 of file vm_stat_docker.cc.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
Reimplemented from VmStat.
Definition at line 33 of file vm_stat_docker.cc.
|
privatevirtual |
Reimplemented from VmStat.
Definition at line 195 of file vm_stat_docker.cc.
|
private |
Definition at line 30 of file vm_stat_docker.h.
|
static |
Definition at line 14 of file vm_stat_docker.h.