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

#include <mock_containerizer.hpp>

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

Public Member Functions

 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 &))
 
 MOCK_METHOD2 (update, process::Future< Nothing >(const ContainerID &, const Resources &))
 
 MOCK_METHOD1 (usage, process::Future< ResourceStatistics >(const ContainerID &))
 
 MOCK_METHOD1 (wait, process::Future< Option< mesos::slave::ContainerTermination >>(const ContainerID &))
 
 MOCK_METHOD1 (destroy, process::Future< bool >(const ContainerID &))
 
 MOCK_METHOD0 (containers, process::Future< hashset< ContainerID >>())
 
 MOCK_METHOD1 (pruneImages, process::Future< Nothing >(const std::vector< Image > &))
 
- Public Member Functions inherited from mesos::internal::slave::Containerizer
virtual ~Containerizer ()
 
virtual process::Future< Nothingrecover (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< Nothingupdate (const ContainerID &containerId, const Resources &resources)=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< bool > destroy (const ContainerID &containerId)=0
 
virtual process::Future< bool > kill (const ContainerID &containerId, int signal)
 
virtual process::Future
< hashset< ContainerID > > 
containers ()=0
 
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, SecretResolver *secretResolver=nullptr)
 
static Try< Resourcesresources (const Flags &flags)
 

Member Function Documentation

mesos::internal::tests::MockContainerizer::MOCK_METHOD0 ( containers  ,
process::Future< hashset< ContainerID >>  () 
)
mesos::internal::tests::MockContainerizer::MOCK_METHOD1 ( recover  ,
process::Future< Nothing const Option< slave::state::SlaveState > & 
)
mesos::internal::tests::MockContainerizer::MOCK_METHOD1 ( attach  ,
process::Future< process::http::Connection const ContainerID & 
)
mesos::internal::tests::MockContainerizer::MOCK_METHOD1 ( usage  ,
process::Future< ResourceStatistics >  const ContainerID & 
)
mesos::internal::tests::MockContainerizer::MOCK_METHOD1 ( wait  ,
process::Future< Option< mesos::slave::ContainerTermination >>  const ContainerID & 
)
mesos::internal::tests::MockContainerizer::MOCK_METHOD1 ( destroy  ,
process::Future< bool >  const ContainerID & 
)
mesos::internal::tests::MockContainerizer::MOCK_METHOD1 ( pruneImages  ,
process::Future< Nothing const std::vector< Image > & 
)
mesos::internal::tests::MockContainerizer::MOCK_METHOD2 ( update  ,
process::Future< Nothing const ContainerID &, const Resources & 
)
mesos::internal::tests::MockContainerizer::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: