17 #ifndef __NETWORK_PORTS_ISOLATOR_HPP__
18 #define __NETWORK_PORTS_ISOLATOR_HPP__
60 const std::list<mesos::slave::ContainerState>& states,
64 const ContainerID& containerId,
65 const mesos::slave::ContainerConfig& containerConfig);
68 const ContainerID& containerId);
71 const ContainerID& containerId,
75 const ContainerID& containerId);
86 bool _cniIsolatorEnabled,
88 const std::string& _cgroupsRoot,
89 const std::string& _freezerHierarchy,
98 const bool cniIsolatorEnabled;
100 const std::string cgroupsRoot;
101 const std::string freezerHierarchy;
111 #endif // __NETWORK_PORTS_ISOLATOR_HPP__
virtual process::Future< mesos::slave::ContainerLimitation > watch(const ContainerID &containerId)
virtual process::Future< Nothing > update(const ContainerID &containerId, const Resources &resources)
Definition: option.hpp:28
virtual process::Future< Option< mesos::slave::ContainerLaunchInfo > > prepare(const ContainerID &containerId, const mesos::slave::ContainerConfig &containerConfig)
Definition: resources.hpp:79
static Try< std::vector< uint32_t > > getProcessSockets(pid_t pid)
Definition: duration.hpp:32
virtual void initialize()
Invoked when a process gets spawned.
Definition: hashmap.hpp:38
DWORD pid_t
Definition: windows.hpp:187
process::Future< Nothing > check(const hashmap< ContainerID, IntervalSet< uint16_t >> &listeners)
virtual process::Future< Nothing > cleanup(const ContainerID &containerId)
static Try< mesos::slave::Isolator * > create(const Flags &flags)
Definition: isolator.hpp:80
virtual process::Future< Nothing > recover(const std::list< mesos::slave::ContainerState > &states, const hashset< ContainerID > &orphans)
#define flags
Definition: decoder.hpp:18
virtual ~NetworkPortsIsolatorProcess()
Definition: ports.hpp:55
virtual bool supportsNesting()
static Try< hashmap< uint32_t, routing::diagnosis::socket::Info > > getListeningSockets()