OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
DISALLOW_COPY_AND_ASSIGN(VmStatDocker)
VmStatDocker(Agent *agent, const boost::uuids::uuid &vm_uuid)
void ReadMemStat()
void ReadContainerId()
boost::uuids::uuid uuid
Definition: vm_stat.h:17
void ReadCpuStat()
Definition: agent.h:358
void GetMemoryQuota()
void ReadMemoryQuota()
static const long kOneSecInNanoSecs
std::string container_id_
void GetContainerId()