Apache Mesos
Public Member Functions | List of all members
mesos::internal::tests::TestContainerizer Class Reference

#include <containerizer.hpp>

Inheritance diagram for mesos::internal::tests::TestContainerizer:
mesos::internal::slave::Containerizer

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< Nothingrecover (const Option< state::SlaveState > &state)=0
 
virtual process::Future< LaunchResultlaunch (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::Connectionattach (const ContainerID &containerId)
 
virtual process::Future< Nothingupdate (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< Nothingremove (const ContainerID &containerId)
 
virtual process::Future< NothingpruneImages (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< Resourcesresources (const Flags &flags)
 

Constructor & Destructor Documentation

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 
)
mesos::internal::tests::TestContainerizer::TestContainerizer ( MockExecutor executor)
explicit
mesos::internal::tests::TestContainerizer::TestContainerizer ( )
mesos::internal::tests::TestContainerizer::~TestContainerizer ( )
override

Member Function Documentation

process::Future<hashset<ContainerID> > mesos::internal::tests::TestContainerizer::containers ( )
overridevirtual
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 > & 
)

The documentation for this class was generated from the following file: