17 #ifndef __CGROUPS_ISOLATOR_SUBSYSTEMS_CPU_HPP__ 18 #define __CGROUPS_ISOLATOR_SUBSYSTEMS_CPU_HPP__ 47 std::string
name()
const override 53 const ContainerID& containerId,
56 const google::protobuf::Map<
57 std::string, Value::Scalar>& resourceLimits = {})
override;
60 const ContainerID& containerId,
61 const std::string& cgroup)
override;
71 #endif // __CGROUPS_ISOLATOR_SUBSYSTEMS_CPU_HPP__
Definition: resources.hpp:83
static Try< process::Owned< SubsystemProcess > > create(const Flags &flags, const std::string &hierarchy)
Represent cgroups cpu subsystem.
Definition: cpu.hpp:38
~CpuSubsystemProcess() override=default
const std::string CGROUP_SUBSYSTEM_CPU_NAME
Definition: constants.hpp:43
Result< std::string > cgroup(pid_t pid)
Definition: subsystem.hpp:190
process::Future< ResourceStatistics > usage(const ContainerID &containerId, const std::string &cgroup) override
Definition: attributes.hpp:24
const std::string hierarchy
The hierarchy path of cgroups subsystem.
Definition: subsystem.hpp:245
process::Future< Nothing > update(const ContainerID &containerId, const std::string &cgroup, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits={}) override
std::string name() const override
Definition: cpu.hpp:47