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

#include <mesos.hpp>

Inheritance diagram for mesos::internal::tests::MockScheduler:
mesos::Scheduler

Public Member Functions

 MockScheduler ()
 
 ~MockScheduler () override
 
 MOCK_METHOD3 (registered, void(SchedulerDriver *, const FrameworkID &, const MasterInfo &))
 
 MOCK_METHOD2 (reregistered, void(SchedulerDriver *, const MasterInfo &))
 
 MOCK_METHOD1 (disconnected, void(SchedulerDriver *))
 
 MOCK_METHOD2 (resourceOffers, void(SchedulerDriver *, const std::vector< Offer > &))
 
 MOCK_METHOD2 (offerRescinded, void(SchedulerDriver *, const OfferID &))
 
 MOCK_METHOD2 (statusUpdate, void(SchedulerDriver *, const TaskStatus &))
 
 MOCK_METHOD4 (frameworkMessage, void(SchedulerDriver *, const ExecutorID &, const SlaveID &, const std::string &))
 
 MOCK_METHOD2 (slaveLost, void(SchedulerDriver *, const SlaveID &))
 
 MOCK_METHOD4 (executorLost, void(SchedulerDriver *, const ExecutorID &, const SlaveID &, int))
 
 MOCK_METHOD2 (error, void(SchedulerDriver *, const std::string &))
 
- Public Member Functions inherited from mesos::Scheduler
virtual ~Scheduler ()
 
virtual void registered (SchedulerDriver *driver, const FrameworkID &frameworkId, const MasterInfo &masterInfo)=0
 
virtual void reregistered (SchedulerDriver *driver, const MasterInfo &masterInfo)=0
 
virtual void disconnected (SchedulerDriver *driver)=0
 
virtual void resourceOffers (SchedulerDriver *driver, const std::vector< Offer > &offers)=0
 
virtual void offerRescinded (SchedulerDriver *driver, const OfferID &offerId)=0
 
virtual void statusUpdate (SchedulerDriver *driver, const TaskStatus &status)=0
 
virtual void frameworkMessage (SchedulerDriver *driver, const ExecutorID &executorId, const SlaveID &slaveId, const std::string &data)=0
 
virtual void slaveLost (SchedulerDriver *driver, const SlaveID &slaveId)=0
 
virtual void executorLost (SchedulerDriver *driver, const ExecutorID &executorId, const SlaveID &slaveId, int status)=0
 
virtual void error (SchedulerDriver *driver, const std::string &message)=0
 

Constructor & Destructor Documentation

mesos::internal::tests::MockScheduler::MockScheduler ( )
mesos::internal::tests::MockScheduler::~MockScheduler ( )
override

Member Function Documentation

mesos::internal::tests::MockScheduler::MOCK_METHOD1 ( disconnected  ,
void(SchedulerDriver *)   
)
mesos::internal::tests::MockScheduler::MOCK_METHOD2 ( reregistered  ,
void(SchedulerDriver *, const MasterInfo &)   
)
mesos::internal::tests::MockScheduler::MOCK_METHOD2 ( resourceOffers  ,
void(SchedulerDriver *, const std::vector< Offer > &)   
)
mesos::internal::tests::MockScheduler::MOCK_METHOD2 ( offerRescinded  ,
void(SchedulerDriver *, const OfferID &)   
)
mesos::internal::tests::MockScheduler::MOCK_METHOD2 ( statusUpdate  ,
void(SchedulerDriver *, const TaskStatus &)   
)
mesos::internal::tests::MockScheduler::MOCK_METHOD2 ( slaveLost  ,
void(SchedulerDriver *, const SlaveID &)   
)
mesos::internal::tests::MockScheduler::MOCK_METHOD2 ( error  ,
void(SchedulerDriver *, const std::string &)   
)
mesos::internal::tests::MockScheduler::MOCK_METHOD3 ( registered  ,
void(SchedulerDriver *, const FrameworkID &, const MasterInfo &)   
)
mesos::internal::tests::MockScheduler::MOCK_METHOD4 ( frameworkMessage  ,
void(SchedulerDriver *, const ExecutorID &, const SlaveID &, const std::string &)   
)
mesos::internal::tests::MockScheduler::MOCK_METHOD4 ( executorLost  ,
void(SchedulerDriver *, const ExecutorID &, const SlaveID &, int)   
)

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