blob: 000940e3a837dc98677c778862336c27131133f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#pragma once
#include "XHugePages.h"
#include "XInternal.h"
namespace vagt
{
namespace encode
{
class XHugePagesImp : public XHugePages, public XJsonable
{
public:
XHugePagesImp(const XString& hugePagesIdentifier);
virtual json toJson() override;
void setBytesUsed(XNumber bytesUsed);
void setHugePagesIdentifier(const XString& hugePagesIdentifier);
void setVmPageNumberFree(XNumber vmPageNumberFree);
void setBytesFree(XNumber bytesFree);
void setPercentFree(XNumber percentFree);
void setPercentUsed(XNumber percentUsed);
void setVmPageNumberUsed(XNumber vmPageNumberUsed);
private:
//required
XString hugePagesIdentifier_;
//optional
std::map<std::string, XCommonValue> comVals_;
};
}
}
|