17 #ifndef __CGROUPS_ISOLATOR_HPP__ 18 #define __CGROUPS_ISOLATOR_HPP__ 57 const std::vector<mesos::slave::ContainerState>& states,
61 const ContainerID& containerId,
62 const mesos::slave::ContainerConfig& containerConfig)
override;
65 const ContainerID& containerId,
69 const ContainerID& containerId)
override;
72 const ContainerID& containerId,
74 const google::protobuf::Map<
75 std::string, Value::Scalar>& resourceLimits = {})
override;
78 const ContainerID& containerId)
override;
81 const ContainerID& containerId)
override;
84 const ContainerID& containerId)
override;
89 Info(
const ContainerID& _containerId,
const std::string& _cgroup)
90 : containerId(_containerId),
cgroup(_cgroup) {}
92 const ContainerID containerId;
118 const ContainerID& containerId);
121 const ContainerID& containerId,
126 const ContainerID& containerId,
127 const mesos::slave::ContainerConfig& containerConfig,
131 const ContainerID& containerId,
132 const mesos::slave::ContainerConfig& containerConfig);
136 const ContainerID& containerId,
140 const ContainerID& containerId,
147 const ContainerID& containerId,
151 const ContainerID& containerId,
176 #endif // __CGROUPS_ISOLATOR_HPP__
process::Future< Option< mesos::slave::ContainerLaunchInfo > > prepare(const ContainerID &containerId, const mesos::slave::ContainerConfig &containerConfig) override
process::Future< Nothing > cleanup(const ContainerID &containerId) override
static Try< mesos::slave::Isolator * > create(const Flags &flags)
Definition: resources.hpp:83
process::Future< Nothing > recover(const std::vector< mesos::slave::ContainerState > &states, const hashset< ContainerID > &orphans) override
bool supportsStandalone() override
process::Future< Nothing > update(const ContainerID &containerId, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits={}) override
Definition: hashmap.hpp:38
DWORD pid_t
Definition: windows.hpp:181
Definition: multihashmap.hpp:34
~CgroupsIsolatorProcess() override
process::Future< mesos::slave::ContainerLimitation > watch(const ContainerID &containerId) override
bool supportsNesting() override
Result< std::string > cgroup(const std::string &hierarchyName, pid_t pid)
process::Future< ResourceStatistics > usage(const ContainerID &containerId) override
Definition: isolator.hpp:82
process::Future< ContainerStatus > status(const ContainerID &containerId) override
Definition: attributes.hpp:24
process::Future< Nothing > isolate(const ContainerID &containerId, pid_t pid) override
Definition: cgroups.hpp:46