17 #ifndef __CONTAINERIZER_HPP__ 18 #define __CONTAINERIZER_HPP__ 108 const ContainerID& containerId,
109 const mesos::slave::ContainerConfig& containerConfig,
110 const std::map<std::string, std::string>&
environment,
116 const ContainerID& containerId)
123 const ContainerID& containerId,
125 const google::protobuf::Map<
126 std::string, Value::Scalar>& resourceLimits = {}) = 0;
130 const ContainerID& containerId) = 0;
137 const ContainerID &containerId)
139 return ContainerStatus();
151 const ContainerID& containerId) = 0;
157 const ContainerID& containerId) = 0;
163 const ContainerID& containerId,
185 const std::vector<Image>& excludedImages) = 0;
192 #endif // __CONTAINERIZER_HPP__
Definition: option.hpp:29
LaunchResult
Definition: containerizer.hpp:67
Try< bool > update(const std::string &link, const Handle &parent, uint16_t protocol, const action::Mirror &mirror)
Definition: fetcher.hpp:49
Definition: future.hpp:668
constexpr int SUCCESS
Definition: decoder.hpp:49
virtual process::Future< ContainerStatus > status(const ContainerID &containerId)
Definition: containerizer.hpp:136
Definition: csi_server.hpp:49
Definition: state.hpp:377
Definition: resources.hpp:83
Definition: volume_gid_manager.hpp:42
Environment * environment
Try< ResourceStatistics > usage(pid_t pid, bool mem=true, bool cpus=true)
Definition: containerizer.hpp:64
Definition: future_tracker.hpp:84
process::PID< master::Master > launch(const Flags &flags, mesos::allocator::Allocator *_allocator=nullptr)
virtual process::Future< process::http::Connection > attach(const ContainerID &containerId)
Definition: containerizer.hpp:115
process::Future< Nothing > destroy(const std::string &hierarchy, const std::string &cgroup="/")
virtual ~Containerizer()
Definition: containerizer.hpp:93
Try< State > recover(const std::string &rootDir, bool strict)
bool wait(const UPID &pid, const Duration &duration=Seconds(-1))
Wait for the process to exit for no more than the specified seconds.
virtual process::Future< bool > kill(const ContainerID &containerId, int signal)
Definition: containerizer.hpp:162
Definition: attributes.hpp:24
Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)
Definition: resolver.hpp:34