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

#include <launcher.hpp>

Inheritance diagram for mesos::internal::tests::TestLauncher:
mesos::internal::slave::Launcher

Public Member Functions

 TestLauncher (const process::Owned< slave::Launcher > &_real)
 
 ~TestLauncher () override
 
 MOCK_METHOD1 (recover, process::Future< hashset< ContainerID >>(const std::vector< mesos::slave::ContainerState > &states))
 
 MOCK_METHOD9 (fork, Try< pid_t >(const ContainerID &containerId, const std::string &path, const std::vector< std::string > &argv, const mesos::slave::ContainerIO &containerIO, const flags::FlagsBase *flags, const Option< std::map< std::string, std::string >> &env, const Option< int > &enterNamespaces, const Option< int > &cloneNamespaces, const std::vector< int_fd > &whitelistFds))
 
 MOCK_METHOD1 (destroy, process::Future< Nothing >(const ContainerID &containerId))
 
 MOCK_METHOD1 (status, process::Future< ContainerStatus >(const ContainerID &containerId))
 
- Public Member Functions inherited from mesos::internal::slave::Launcher
virtual ~Launcher ()
 
virtual process::Future< hashset< ContainerID > > recover (const std::vector< mesos::slave::ContainerState > &states)=0
 
virtual Try< pid_tfork (const ContainerID &containerId, const std::string &path, const std::vector< std::string > &argv, const mesos::slave::ContainerIO &containerIO, const flags::FlagsBase *flags, const Option< std::map< std::string, std::string >> &environment, const Option< int > &enterNamespaces, const Option< int > &cloneNamespaces, const std::vector< int_fd > &whitelistFds)=0
 
virtual process::Future< Nothingdestroy (const ContainerID &containerId)=0
 
virtual process::Future< ContainerStatus > status (const ContainerID &containerId)=0
 

Public Attributes

process::Owned< slave::Launcherreal
 

Constructor & Destructor Documentation

mesos::internal::tests::TestLauncher::TestLauncher ( const process::Owned< slave::Launcher > &  _real)
mesos::internal::tests::TestLauncher::~TestLauncher ( )
override

Member Function Documentation

mesos::internal::tests::TestLauncher::MOCK_METHOD1 ( recover  ,
process::Future< hashset< ContainerID >>  const std::vector< mesos::slave::ContainerState > &states 
)
mesos::internal::tests::TestLauncher::MOCK_METHOD1 ( destroy  ,
process::Future< Nothing const ContainerID &containerId 
)
mesos::internal::tests::TestLauncher::MOCK_METHOD1 ( status  ,
process::Future< ContainerStatus >  const ContainerID &containerId 
)
mesos::internal::tests::TestLauncher::MOCK_METHOD9 ( fork  ,
Try< pid_t const ContainerID &containerId, const std::string &path, const std::vector< std::string > &argv, const mesos::slave::ContainerIO &containerIO, const flags::FlagsBase *flags, const Option< std::map< std::string, std::string >> &env, const Option< int > &enterNamespaces, const Option< int > &cloneNamespaces, const std::vector< int_fd > &whitelistFds 
)

Member Data Documentation

process::Owned<slave::Launcher> mesos::internal::tests::TestLauncher::real

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