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

#include <vm_stat_docker.h>

Inheritance diagram for VmStatDocker:
Collaboration diagram for VmStatDocker:

Public Member Functions

 VmStatDocker (Agent *agent, const boost::uuids::uuid &vm_uuid)
 
 ~VmStatDocker ()
 
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 ()
 

Static Public Attributes

static const long kOneSecInNanoSecs = 1000000000
 
- Static Public Attributes inherited from VmStat
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

- Public Types inherited from VmStat
typedef boost::function< void(void)> DoneCb
 
- 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_docker.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

VmStatDocker::DISALLOW_COPY_AND_ASSIGN ( VmStatDocker  )
private
void VmStatDocker::GetContainerId ( )
private

Definition at line 223 of file vm_stat_docker.cc.

Here is the call graph for this function:

void VmStatDocker::GetCpuStat ( )
private

Definition at line 112 of file vm_stat_docker.cc.

Here is the call graph for this function:

void VmStatDocker::GetMemoryQuota ( )
private

Definition at line 119 of file vm_stat_docker.cc.

Here is the call graph for this function:

void VmStatDocker::GetMemStat ( )
private

Definition at line 126 of file vm_stat_docker.cc.

Here is the call graph for this function:

void VmStatDocker::GetPid ( )
private

Definition at line 130 of file vm_stat_docker.cc.

Here is the call graph for this function:

void VmStatDocker::ReadContainerId ( )
private

Definition at line 205 of file vm_stat_docker.cc.

Here is the call graph for this function:

void VmStatDocker::ReadCpuStat ( )
private

Definition at line 40 of file vm_stat_docker.cc.

Here is the call graph for this function:

void VmStatDocker::ReadMemoryQuota ( )
private

Definition at line 178 of file vm_stat_docker.cc.

Here is the call graph for this function:

void VmStatDocker::ReadMemStat ( )
private

Definition at line 72 of file vm_stat_docker.cc.

Here is the call graph for this function:

void VmStatDocker::ReadPid ( )
private

Definition at line 136 of file vm_stat_docker.cc.

Here is the call graph for this function:

void VmStatDocker::Start ( )
virtual

Reimplemented from VmStat.

Definition at line 33 of file vm_stat_docker.cc.

Here is the call graph for this function:

bool VmStatDocker::TimerExpiry ( )
privatevirtual

Reimplemented from VmStat.

Definition at line 195 of file vm_stat_docker.cc.

Here is the call graph for this function:

Member Data Documentation

std::string VmStatDocker::container_id_
private

Definition at line 30 of file vm_stat_docker.h.

const long VmStatDocker::kOneSecInNanoSecs = 1000000000
static

Definition at line 14 of file vm_stat_docker.h.


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