17 #ifndef __TEST_CONTAINERIZER_HPP__ 18 #define __TEST_CONTAINERIZER_HPP__ 59 class TestContainerizerProcess;
68 const ExecutorID& executorId,
69 const std::shared_ptr<v1::MockHTTPExecutor>& executor);
91 const mesos::slave::ContainerConfig&,
92 const std::map<std::string, std::string>&,
98 const ContainerID& containerId));
105 const google::protobuf::Map<std::string, Value::Scalar>&));
118 const ContainerID&));
123 const ContainerID&));
136 const FrameworkID& frameworkId,
137 const ExecutorID& executorId);
150 const ContainerID& containerId,
151 const mesos::slave::ContainerConfig& containerConfig,
152 const std::map<std::string, std::string>&
environment,
156 const ContainerID& containerId);
159 const ContainerID& containerId,
161 const google::protobuf::Map<std::string, Value::Scalar>& resourceLimits);
164 const ContainerID& containerId);
167 const ContainerID& containerId);
170 const ContainerID& containerId);
173 const ContainerID& containerId);
176 const ContainerID& containerId,
180 const std::vector<Image>& excludedImages);
189 #endif // __TEST_CONTAINERIZER_HPP__ virtual process::Future< Nothing > update(const ContainerID &containerId, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits={})=0
MOCK_METHOD1(recover, process::Future< Nothing >(const Option< slave::state::SlaveState > &))
Definition: option.hpp:29
virtual process::Future< ContainerStatus > status(const ContainerID &containerId)
Definition: containerizer.hpp:136
Definition: resources.hpp:83
virtual process::Future< LaunchResult > launch(const ContainerID &containerId, const mesos::slave::ContainerConfig &containerConfig, const std::map< std::string, std::string > &environment, const Option< std::string > &pidCheckpointPath)=0
Definition: hashmap.hpp:38
process::Future< Option< mesos::slave::ContainerTermination > > destroy(const FrameworkID &frameworkId, const ExecutorID &executorId)
process::Future< hashset< ContainerID > > containers() override
Environment * environment
MOCK_METHOD3(update, process::Future< Nothing >(const ContainerID &, const Resources &, const google::protobuf::Map< std::string, Value::Scalar > &))
virtual process::Future< Nothing > recover(const Option< state::SlaveState > &state)=0
Definition: containerizer.hpp:64
Definition: containerizer.hpp:62
virtual process::Future< process::http::Connection > attach(const ContainerID &containerId)
Definition: containerizer.hpp:115
MOCK_METHOD4(launch, process::Future< slave::Containerizer::LaunchResult >(const ContainerID &, const mesos::slave::ContainerConfig &, const std::map< std::string, std::string > &, const Option< std::string > &))
Definition: executor.hpp:75
virtual process::Future< bool > kill(const ContainerID &containerId, int signal)
Definition: containerizer.hpp:162
Definition: attributes.hpp:24
virtual process::Future< ResourceStatistics > usage(const ContainerID &containerId)=0
Definition: executor.hpp:48
MOCK_METHOD2(kill, process::Future< bool >(const ContainerID &, int))
Definition: mesos.hpp:2636
virtual process::Future< Option< mesos::slave::ContainerTermination > > wait(const ContainerID &containerId)=0
virtual process::Future< Nothing > pruneImages(const std::vector< Image > &excludedImages)=0
~TestContainerizer() override
Definition: future.hpp:58