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

#include <vm_stat_kvm.h>

Inheritance diagram for VmStatKvm:
Collaboration diagram for VmStatKvm:

Public Member Functions

 VmStatKvm (Agent *agent, const boost::uuids::uuid &vm_uuid)
 
 ~VmStatKvm ()
 
void Start ()
 
- Public Member Functions inherited from VmStat
 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

- Public Types inherited from VmStat
typedef boost::function< void(void)> DoneCb
 
- Static Public Attributes inherited from VmStat
static const size_t kBufLen = 4098
 
static const uint32_t kRetryCount = 3
 
static const uint16_t kInvalidCpuCount = 0xFFFF
 
- Protected Member Functions inherited from VmStat
void StartTimer ()
 
void ExecCmd (std::string cmd, DoneCb cb)
 
void SendVmCpuStats ()
 
 DISALLOW_COPY_AND_ASSIGN (VmStat)
 
- Protected Attributes inherited from VmStat
Agentagent_
 
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_
 
Timertimer_
 
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_
 

Detailed Description

Definition at line 10 of file vm_stat_kvm.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

VmStatKvm::DISALLOW_COPY_AND_ASSIGN ( VmStatKvm  )
private
void VmStatKvm::GetCpuStat ( )
private

Definition at line 189 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::GetDiskName ( )
private

Definition at line 205 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::GetDiskStat ( )
private

Definition at line 222 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::GetMemoryQuota ( )
private

Definition at line 271 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::GetMemStat ( )
private

Definition at line 201 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::GetPid ( )
private

Definition at line 318 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::GetVcpuStat ( )
private

Definition at line 195 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::ReadCpuStat ( )
private

Definition at line 33 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::ReadDiskName ( )
private

Definition at line 212 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::ReadDiskStat ( )
private

Definition at line 229 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::ReadMemoryQuota ( )
private

Definition at line 261 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::ReadMemStat ( )
private

Definition at line 151 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::ReadPid ( )
private

Definition at line 287 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::ReadVcpuStat ( )
private

Definition at line 106 of file vm_stat_kvm.cc.

Here is the call graph for this function:

void VmStatKvm::Start ( )
virtual

Reimplemented from VmStat.

Definition at line 325 of file vm_stat_kvm.cc.

Here is the call graph for this function:

bool VmStatKvm::TimerExpiry ( )
privatevirtual

Reimplemented from VmStat.

Definition at line 277 of file vm_stat_kvm.cc.

Here is the call graph for this function:


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