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  */
4 
5 #ifndef vnsw_agent_vm_stat_docker_h
6 #define vnsw_agent_vm_stat_docker_h
7 
8 #include "vm_stat.h"
9 
10 class VmStatDocker : public VmStat {
11 public:
12  VmStatDocker(Agent *agent, const boost::uuids::uuid &vm_uuid);
13  ~VmStatDocker();
14  static const long kOneSecInNanoSecs = 1000000000;
15 
16  void Start();
17 private:
18  void ReadContainerId();
19  void GetContainerId();
20  void ReadCpuStat();
21  void GetCpuStat();
22  void ReadMemoryQuota();
23  void GetMemoryQuota();
24  void ReadMemStat();
25  void GetMemStat();
26  bool TimerExpiry();
27  void GetPid();
28  void ReadPid();
29 
30  std::string container_id_;
31 
33 };
34 #endif // vnsw_agent_vm_stat_docker_h
Definition: agent.h:360
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:17
boost::uuids::uuid uuid