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

#include <mesos.hpp>

Inheritance diagram for mesos::internal::tests::MockExecutor:
mesos::Executor

Public Member Functions

 MockExecutor (const ExecutorID &_id)
 
virtual ~MockExecutor ()
 
 MOCK_METHOD4 (registered, void(ExecutorDriver *, const ExecutorInfo &, const FrameworkInfo &, const SlaveInfo &))
 
 MOCK_METHOD2 (reregistered, void(ExecutorDriver *, const SlaveInfo &))
 
 MOCK_METHOD1 (disconnected, void(ExecutorDriver *))
 
 MOCK_METHOD2 (launchTask, void(ExecutorDriver *, const TaskInfo &))
 
 MOCK_METHOD2 (killTask, void(ExecutorDriver *, const TaskID &))
 
 MOCK_METHOD2 (frameworkMessage, void(ExecutorDriver *, const std::string &))
 
 MOCK_METHOD1 (shutdown, void(ExecutorDriver *))
 
 MOCK_METHOD2 (error, void(ExecutorDriver *, const std::string &))
 
- Public Member Functions inherited from mesos::Executor
virtual ~Executor ()
 
virtual void registered (ExecutorDriver *driver, const ExecutorInfo &executorInfo, const FrameworkInfo &frameworkInfo, const SlaveInfo &slaveInfo)=0
 
virtual void reregistered (ExecutorDriver *driver, const SlaveInfo &slaveInfo)=0
 
virtual void disconnected (ExecutorDriver *driver)=0
 
virtual void launchTask (ExecutorDriver *driver, const TaskInfo &task)=0
 
virtual void killTask (ExecutorDriver *driver, const TaskID &taskId)=0
 
virtual void frameworkMessage (ExecutorDriver *driver, const std::string &data)=0
 
virtual void shutdown (ExecutorDriver *driver)=0
 
virtual void error (ExecutorDriver *driver, const std::string &message)=0
 

Public Attributes

const ExecutorID id
 

Constructor & Destructor Documentation

mesos::internal::tests::MockExecutor::MockExecutor ( const ExecutorID &  _id)
virtual mesos::internal::tests::MockExecutor::~MockExecutor ( )
virtual

Member Function Documentation

mesos::internal::tests::MockExecutor::MOCK_METHOD1 ( disconnected  ,
void(ExecutorDriver *)   
)
mesos::internal::tests::MockExecutor::MOCK_METHOD1 ( shutdown  ,
void(ExecutorDriver *)   
)
mesos::internal::tests::MockExecutor::MOCK_METHOD2 ( reregistered  ,
void(ExecutorDriver *, const SlaveInfo &)   
)
mesos::internal::tests::MockExecutor::MOCK_METHOD2 ( launchTask  ,
void(ExecutorDriver *, const TaskInfo &)   
)
mesos::internal::tests::MockExecutor::MOCK_METHOD2 ( killTask  ,
void(ExecutorDriver *, const TaskID &)   
)
mesos::internal::tests::MockExecutor::MOCK_METHOD2 ( frameworkMessage  ,
void(ExecutorDriver *, const std::string &)   
)
mesos::internal::tests::MockExecutor::MOCK_METHOD2 ( error  ,
void(ExecutorDriver *, const std::string &)   
)
mesos::internal::tests::MockExecutor::MOCK_METHOD4 ( registered  ,
void(ExecutorDriver *, const ExecutorInfo &, const FrameworkInfo &, const SlaveInfo &)   
)

Member Data Documentation

const ExecutorID mesos::internal::tests::MockExecutor::id

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