OpenSDN source code
vm_stat_docker.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef vnsw_agent_vm_stat_docker_h
7 #define vnsw_agent_vm_stat_docker_h
8 
9 #include "vm_stat.h"
10 
11 class VmStatDocker : public VmStat {
12 public:
13  VmStatDocker(Agent *agent, const boost::uuids::uuid &vm_uuid);
14  ~VmStatDocker();
15  static const long kOneSecInNanoSecs = 1000000000;
16 
17  void Start();
18 private:
19  void ReadContainerId();
20  void GetContainerId();
21  void ReadCpuStat();
22  void GetCpuStat();
23  void ReadMemoryQuota();
24  void GetMemoryQuota();
25  void ReadMemStat();
26  void GetMemStat();
27  bool TimerExpiry();
28  void GetPid();
29  void ReadPid();
30 
31  std::string container_id_;
32 
34 };
35 #endif // vnsw_agent_vm_stat_docker_h
Definition: agent.h:361
void ReadMemoryQuota()
static const long kOneSecInNanoSecs
void GetMemoryQuota()
DISALLOW_COPY_AND_ASSIGN(VmStatDocker)
void ReadMemStat()
void GetContainerId()
void ReadCpuStat()
std::string container_id_
VmStatDocker(Agent *agent, const boost::uuids::uuid &vm_uuid)
void ReadContainerId()
Definition: vm_stat.h:18
boost::uuids::uuid uuid