17 #ifndef __CGROUPS_ISOLATOR_SUBSYSTEMS_NET_CLS_HPP__ 18 #define __CGROUPS_ISOLATOR_SUBSYSTEMS_NET_CLS_HPP__ 142 std::string
name()
const override 148 const ContainerID& containerId,
149 const std::string&
cgroup)
override;
152 const ContainerID& containerId,
153 const std::string& cgroup,
154 const mesos::slave::ContainerConfig& containerConfig)
override;
157 const ContainerID& containerId,
158 const std::string& cgroup,
162 const ContainerID& containerId,
163 const std::string& cgroup)
override;
166 const ContainerID& containerId,
167 const std::string& cgroup)
override;
172 const std::string& hierarchy,
187 const std::string& hierarchy,
188 const std::string& cgroup);
200 #endif // __CGROUPS_ISOLATOR_SUBSYSTEMS_NET_CLS_HPP__ ~NetClsHandleManager()
Definition: net_cls.hpp:103
Protocol< RecoverRequest, RecoverResponse > recover
Try< Nothing > isolate(const std::string &hierarchy, const std::string &cgroup, pid_t pid)
NetClsHandle(uint16_t _primary, uint16_t _secondary)
Definition: net_cls.hpp:58
Definition: errorbase.hpp:36
std::ostream & operator<<(std::ostream &stream, const MesosContainerizerProcess::State &state)
const std::string CGROUP_SUBSYSTEM_NET_CLS_NAME
Definition: constants.hpp:49
process::Future< bool > cleanup(const std::string &hierarchy)
Result< ProcessStatus > status(pid_t pid)
Definition: proc.hpp:166
Definition: hashmap.hpp:38
NetClsHandle(uint32_t handle)
Definition: net_cls.hpp:61
DWORD pid_t
Definition: windows.hpp:181
Try< uint16_t > allocPrimary()
Definition: net_cls.hpp:106
Try< Bytes > used(const std::string &path="/")
Definition: fs.hpp:43
Try< std::vector< Info > > infos(int familiy, int states)
Definition: net_cls.hpp:56
std::string name() const override
Definition: net_cls.hpp:142
Result< std::string > cgroup(pid_t pid)
uint16_t secondary
Definition: net_cls.hpp:81
Definition: subsystem.hpp:190
Represent cgroups net_cls subsystem.
Definition: net_cls.hpp:133
Definition: attributes.hpp:24
uint16_t primary
Definition: net_cls.hpp:78
Try< std::string > prepare(const std::string &baseHierarchy, const std::string &subsystem, const std::string &cgroup)
Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)
Result< std::string > hierarchy(const std::string &subsystems)
Definition: net_cls.hpp:96