OpenSDN source code
|
#include <vm_stat_kvm.h>
Public Member Functions | |
VmStatKvm (Agent *agent, const boost::uuids::uuid &vm_uuid) | |
~VmStatKvm () | |
void | Start () |
![]() | |
VmStat (Agent *agent, const boost::uuids::uuid &vm_uuid) | |
virtual | ~VmStat () |
bool | marked_delete () const |
void | Stop () |
void | ProcessData () |
Private Member Functions | |
void | ReadCpuStat () |
void | ReadVcpuStat () |
void | ReadMemStat () |
void | ReadDiskStat () |
void | ReadDiskName () |
void | GetCpuStat () |
void | GetVcpuStat () |
void | GetMemStat () |
void | GetDiskName () |
void | GetDiskStat () |
bool | TimerExpiry () |
void | GetPid () |
void | ReadPid () |
void | ReadMemoryQuota () |
void | GetMemoryQuota () |
DISALLOW_COPY_AND_ASSIGN (VmStatKvm) | |
Additional Inherited Members | |
![]() | |
typedef boost::function< void(void)> | DoneCb |
![]() | |
static const size_t | kBufLen = 4098 |
static const uint32_t | kRetryCount = 3 |
static const uint16_t | kInvalidCpuCount = 0xFFFF |
![]() | |
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_kvm.h.
VmStatKvm::VmStatKvm | ( | Agent * | agent, |
const boost::uuids::uuid & | vm_uuid | ||
) |
Definition at line 26 of file vm_stat_kvm.cc.
VmStatKvm::~VmStatKvm | ( | ) |
Definition at line 30 of file vm_stat_kvm.cc.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
Reimplemented from VmStat.
Definition at line 325 of file vm_stat_kvm.cc.
|
privatevirtual |
Reimplemented from VmStat.
Definition at line 277 of file vm_stat_kvm.cc.