23 #include "gateway/gateway.h" 24 #include "cgroupsparser.h" 25 #include "softwarecontainererror.h" 35 LOG_DECLARE_CLASS_CONTEXT(
"CGRO",
"Cgroups gateway");
38 static constexpr
const char *ID =
"cgroups";
40 CgroupsGateway(std::shared_ptr<ContainerAbstractInterface> container);
44 bool activateGateway()
override;
45 bool teardownGateway()
override;
55 m_message(
"Cgroups Gateway exception")
64 virtual const char *what()
const throw()
66 return m_message.c_str();
70 std::string m_message;
bool readConfigElement(const json_t *element) override
Gateway specific parsing of config elements.
The cgroups gateway sets cgroups related settings for the container.
Gateway base class for SoftwareContainer.
Developers guide to adding a config item: