17 #ifndef __NETWORK_PORTS_ISOLATOR_HPP__ 18 #define __NETWORK_PORTS_ISOLATOR_HPP__ 60 const std::vector<mesos::slave::ContainerState>& states,
64 const ContainerID& containerId,
65 const mesos::slave::ContainerConfig& containerConfig)
override;
68 const ContainerID& containerId)
override;
71 const ContainerID& containerId,
73 const google::protobuf::Map<
74 std::string, Value::Scalar>& resourceLimits = {})
override;
77 const ContainerID& containerId)
override;
88 bool _cniIsolatorEnabled,
90 const bool& _enforcePortsEnabled,
91 const std::string& _cgroupsRoot,
92 const std::string& _freezerHierarchy,
102 const bool cniIsolatorEnabled;
104 const bool enforceContainerPorts;
105 const std::string cgroupsRoot;
106 const std::string freezerHierarchy;
116 #endif // __NETWORK_PORTS_ISOLATOR_HPP__ Definition: option.hpp:29
~NetworkPortsIsolatorProcess() override
Definition: ports.hpp:55
process::Future< Option< mesos::slave::ContainerLaunchInfo > > prepare(const ContainerID &containerId, const mesos::slave::ContainerConfig &containerConfig) override
Definition: resources.hpp:83
static Try< std::vector< uint32_t > > getProcessSockets(pid_t pid)
process::Future< mesos::slave::ContainerLimitation > watch(const ContainerID &containerId) override
process::Future< Nothing > recover(const std::vector< mesos::slave::ContainerState > &states, const hashset< ContainerID > &orphans) override
Definition: duration.hpp:32
Definition: hashmap.hpp:38
DWORD pid_t
Definition: windows.hpp:181
process::Future< Nothing > check(const hashmap< ContainerID, IntervalSet< uint16_t >> &listeners)
process::Future< Nothing > update(const ContainerID &containerId, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits={}) override
static Try< mesos::slave::Isolator * > create(const Flags &flags)
Definition: isolator.hpp:82
Definition: attributes.hpp:24
void initialize() override
Invoked when a process gets spawned.
process::Future< Nothing > cleanup(const ContainerID &containerId) override
static Try< hashmap< uint32_t, routing::diagnosis::socket::Info > > getListeningSockets()
bool supportsNesting() override