Apache Mesos
|
#include <containerizer.hpp>
Public Member Functions | |
TestContainerizer (const ExecutorID &executorId, const std::shared_ptr< v1::MockHTTPExecutor > &executor) | |
TestContainerizer (const hashmap< ExecutorID, Executor * > &executors) | |
TestContainerizer (const ExecutorID &executorId, Executor *executor) | |
TestContainerizer (MockExecutor *executor) | |
TestContainerizer () | |
~TestContainerizer () override | |
process::Future< hashset< ContainerID > > | containers () override |
MOCK_METHOD1 (recover, process::Future< Nothing >(const Option< slave::state::SlaveState > &)) | |
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 > &)) | |
MOCK_METHOD1 (attach, process::Future< process::http::Connection >(const ContainerID &containerId)) | |
MOCK_METHOD3 (update, process::Future< Nothing >(const ContainerID &, const Resources &, const google::protobuf::Map< std::string, Value::Scalar > &)) | |
MOCK_METHOD1 (usage, process::Future< ResourceStatistics >(const ContainerID &)) | |
MOCK_METHOD1 (status, process::Future< ContainerStatus >(const ContainerID &)) | |
MOCK_METHOD1 (wait, process::Future< Option< mesos::slave::ContainerTermination >>(const ContainerID &)) | |
MOCK_METHOD1 (destroy, process::Future< Option< mesos::slave::ContainerTermination >>(const ContainerID &)) | |
MOCK_METHOD2 (kill, process::Future< bool >(const ContainerID &, int)) | |
MOCK_METHOD1 (pruneImages, process::Future< Nothing >(const std::vector< Image > &)) | |
process::Future< Option< mesos::slave::ContainerTermination > > | destroy (const FrameworkID &frameworkId, const ExecutorID &executorId) |
Public Member Functions inherited from mesos::internal::slave::Containerizer | |
virtual | ~Containerizer () |
virtual process::Future< Nothing > | recover (const Option< state::SlaveState > &state)=0 |
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 |
virtual process::Future< process::http::Connection > | attach (const ContainerID &containerId) |
virtual process::Future< Nothing > | update (const ContainerID &containerId, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits={})=0 |
virtual process::Future< ResourceStatistics > | usage (const ContainerID &containerId)=0 |
virtual process::Future< ContainerStatus > | status (const ContainerID &containerId) |
virtual process::Future< Option< mesos::slave::ContainerTermination > > | wait (const ContainerID &containerId)=0 |
virtual process::Future< Option< mesos::slave::ContainerTermination > > | destroy (const ContainerID &containerId)=0 |
virtual process::Future< bool > | kill (const ContainerID &containerId, int signal) |
virtual process::Future< Nothing > | remove (const ContainerID &containerId) |
virtual process::Future< Nothing > | pruneImages (const std::vector< Image > &excludedImages)=0 |
Additional Inherited Members | |
Public Types inherited from mesos::internal::slave::Containerizer | |
enum | LaunchResult { LaunchResult::SUCCESS, LaunchResult::ALREADY_LAUNCHED, LaunchResult::NOT_SUPPORTED } |
Static Public Member Functions inherited from mesos::internal::slave::Containerizer | |
static Try< Containerizer * > | create (const Flags &flags, bool local, Fetcher *fetcher, GarbageCollector *gc, SecretResolver *secretResolver=nullptr, VolumeGidManager *volumeGidManager=nullptr, PendingFutureTracker *futureTracker=nullptr, CSIServer *csiServer=nullptr) |
static Try< Resources > | resources (const Flags &flags) |
mesos::internal::tests::TestContainerizer::TestContainerizer | ( | const ExecutorID & | executorId, |
const std::shared_ptr< v1::MockHTTPExecutor > & | executor | ||
) |
mesos::internal::tests::TestContainerizer::TestContainerizer | ( | const hashmap< ExecutorID, Executor * > & | executors | ) |
mesos::internal::tests::TestContainerizer::TestContainerizer | ( | const ExecutorID & | executorId, |
Executor * | executor | ||
) |
|
explicit |
mesos::internal::tests::TestContainerizer::TestContainerizer | ( | ) |
|
override |
|
overridevirtual |
Implements mesos::internal::slave::Containerizer.
process::Future<Option<mesos::slave::ContainerTermination> > mesos::internal::tests::TestContainerizer::destroy | ( | const FrameworkID & | frameworkId, |
const ExecutorID & | executorId | ||
) |
mesos::internal::tests::TestContainerizer::MOCK_METHOD1 | ( | recover | , |
process::Future< Nothing > | const Option< slave::state::SlaveState > & | ||
) |
mesos::internal::tests::TestContainerizer::MOCK_METHOD1 | ( | attach | , |
process::Future< process::http::Connection > | const ContainerID &containerId | ||
) |
mesos::internal::tests::TestContainerizer::MOCK_METHOD1 | ( | usage | , |
process::Future< ResourceStatistics > | const ContainerID & | ||
) |
mesos::internal::tests::TestContainerizer::MOCK_METHOD1 | ( | status | , |
process::Future< ContainerStatus > | const ContainerID & | ||
) |
mesos::internal::tests::TestContainerizer::MOCK_METHOD1 | ( | wait | , |
process::Future< Option< mesos::slave::ContainerTermination >> | const ContainerID & | ||
) |
mesos::internal::tests::TestContainerizer::MOCK_METHOD1 | ( | destroy | , |
process::Future< Option< mesos::slave::ContainerTermination >> | const ContainerID & | ||
) |
mesos::internal::tests::TestContainerizer::MOCK_METHOD1 | ( | pruneImages | , |
process::Future< Nothing > | const std::vector< Image > & | ||
) |
mesos::internal::tests::TestContainerizer::MOCK_METHOD2 | ( | kill | , |
process::Future< bool > | const ContainerID &, int | ||
) |
mesos::internal::tests::TestContainerizer::MOCK_METHOD3 | ( | update | , |
process::Future< Nothing > | const ContainerID &, const Resources &, const google::protobuf::Map< std::string, Value::Scalar > & | ||
) |
mesos::internal::tests::TestContainerizer::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 > & | ||
) |