17 #ifndef __LAUNCHER_HPP__ 18 #define __LAUNCHER_HPP__ 20 #include <sys/types.h> 56 const std::vector<mesos::slave::ContainerState>& states) = 0;
65 const ContainerID& containerId,
66 const std::string&
path,
67 const std::vector<std::string>& argv,
73 const std::vector<int_fd>& whitelistFds) = 0;
81 const ContainerID& containerId) = 0;
99 const std::vector<mesos::slave::ContainerState>& states)
override;
102 const ContainerID& containerId,
103 const std::string&
path,
104 const std::vector<std::string>& argv,
110 const std::vector<int_fd>& whitelistFds)
override;
115 const ContainerID& containerId)
override;
130 #endif // __LAUNCHER_HPP__
Definition: launcher.hpp:47
Definition: option.hpp:29
virtual process::Future< hashset< ContainerID > > recover(const std::vector< mesos::slave::ContainerState > &states)=0
~SubprocessLauncher() override
Definition: launcher.hpp:96
virtual Try< pid_t > fork(const ContainerID &containerId, const std::string &path, const std::vector< std::string > &argv, const mesos::slave::ContainerIO &containerIO, const flags::FlagsBase *flags, const Option< std::map< std::string, std::string >> &environment, const Option< int > &enterNamespaces, const Option< int > &cloneNamespaces, const std::vector< int_fd > &whitelistFds)=0
SubprocessLauncher()
Definition: launcher.hpp:118
An abstraction around the IO classes used to redirect stdin/stdout/stderr to/from a container by the ...
Definition: containerizer.hpp:37
Environment * environment
virtual process::Future< Nothing > destroy(const ContainerID &containerId)=0
Definition: launcher.hpp:91
Definition: attributes.hpp:24
virtual process::Future< ContainerStatus > status(const ContainerID &containerId)=0
Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)
virtual ~Launcher()
Definition: launcher.hpp:50
hashmap< ContainerID, pid_t > pids
Definition: launcher.hpp:122
Definition: future.hpp:58