17 #ifndef __ISOLATOR_HPP__ 18 #define __ISOLATOR_HPP__ 32 class MesosIsolatorProcess;
48 const std::vector<mesos::slave::ContainerState>& states,
52 const ContainerID& containerId,
53 const mesos::slave::ContainerConfig& containerConfig)
override;
56 const ContainerID& containerId,
60 const ContainerID& containerId)
override;
63 const ContainerID& containerId,
65 const google::protobuf::Map<
66 std::string, Value::Scalar>& resourceLimits = {})
override;
69 const ContainerID& containerId)
override;
72 const ContainerID& containerId)
override;
75 const ContainerID& containerId)
override;
98 const std::vector<mesos::slave::ContainerState>& states,
105 const ContainerID& containerId,
106 const mesos::slave::ContainerConfig& containerConfig)
112 const ContainerID& containerId,
119 const ContainerID& containerId)
125 const ContainerID& containerId,
127 const google::protobuf::Map<
128 std::string, Value::Scalar>& resourceLimits = {})
134 const ContainerID& containerId)
136 return ResourceStatistics();
140 const ContainerID& containerId)
142 return ContainerStatus();
146 const ContainerID& containerId)
156 #endif // __ISOLATOR_HPP__ ~MesosIsolator() override
virtual process::Future< ResourceStatistics > usage(const ContainerID &containerId)
Definition: isolator.hpp:133
Definition: isolator.hpp:38
Definition: nothing.hpp:16
virtual process::Future< Option< mesos::slave::ContainerLaunchInfo > > prepare(const ContainerID &containerId, const mesos::slave::ContainerConfig &containerConfig)
Definition: isolator.hpp:104
Definition: resources.hpp:83
process::Future< ResourceStatistics > usage(const ContainerID &containerId) override
virtual process::Future< ContainerStatus > status(const ContainerID &containerId)
Definition: isolator.hpp:139
bool supportsNesting() override
virtual process::Future< Nothing > update(const ContainerID &containerId, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits={})
Definition: isolator.hpp:124
bool supportsStandalone() override
MesosIsolator(process::Owned< MesosIsolatorProcess > process)
DWORD pid_t
Definition: windows.hpp:181
process::Future< Nothing > recover(const std::vector< mesos::slave::ContainerState > &states, const hashset< ContainerID > &orphans) override
virtual bool supportsNesting()
Definition: isolator.hpp:87
virtual process::Future< Nothing > cleanup(const ContainerID &containerId)
Definition: isolator.hpp:145
process::Future< Nothing > update(const ContainerID &containerId, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits={}) override
Definition: isolator.hpp:82
process::Future< mesos::slave::ContainerLimitation > watch(const ContainerID &containerId) override
~MesosIsolatorProcess() override
Definition: isolator.hpp:85
process::Future< Option< mesos::slave::ContainerLaunchInfo > > prepare(const ContainerID &containerId, const mesos::slave::ContainerConfig &containerConfig) override
virtual bool supportsStandalone()
Definition: isolator.hpp:92
virtual process::Future< mesos::slave::ContainerLimitation > watch(const ContainerID &containerId)
Definition: isolator.hpp:118
Definition: attributes.hpp:24
process::Future< Nothing > cleanup(const ContainerID &containerId) override
Definition: executor.hpp:48
virtual process::Future< Nothing > isolate(const ContainerID &containerId, pid_t pid)
Definition: isolator.hpp:111
process::Future< ContainerStatus > status(const ContainerID &containerId) override
Definition: process.hpp:505
Definition: isolator.hpp:39
virtual process::Future< Nothing > recover(const std::vector< mesos::slave::ContainerState > &states, const hashset< ContainerID > &orphans)
Definition: isolator.hpp:97
process::Future< Nothing > isolate(const ContainerID &containerId, pid_t pid) override