Apache Mesos
Public Member Functions | Public Attributes | List of all members
mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source > Class Template Reference

#include <mesos.hpp>

Public Member Functions

 MockResourceProvider (const ResourceProviderInfo &_info, const Option< Resources > &_resources=None())
 
 MOCK_METHOD0_T (connected, void())
 
 MOCK_METHOD0_T (disconnected, void())
 
 MOCK_METHOD1_T (subscribed, void(const typename Event::Subscribed &))
 
 MOCK_METHOD1_T (applyOperation, void(const typename Event::ApplyOperation &))
 
 MOCK_METHOD1_T (publishResources, void(const typename Event::PublishResources &))
 
 MOCK_METHOD1_T (acknowledgeOperationStatus, void(const typename Event::AcknowledgeOperationStatus &))
 
 MOCK_METHOD1_T (reconcileOperations, void(const typename Event::ReconcileOperations &))
 
 MOCK_METHOD0_T (teardown, void())
 
void events (std::queue< Event > events)
 
process::Future< Nothingsend (const Call &call)
 
void start (process::Owned< mesos::internal::EndpointDetector > detector, ContentType contentType)
 
void connectedDefault ()
 
void subscribedDefault (const typename Event::Subscribed &subscribed)
 
void operationDefault (const typename Event::ApplyOperation &operation)
 
void publishDefault (const typename Event::PublishResources &publish)
 
void teardownDefault ()
 

Public Attributes

ResourceProviderInfo info
 

Constructor & Destructor Documentation

template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::MockResourceProvider ( const ResourceProviderInfo &  _info,
const Option< Resources > &  _resources = None() 
)
inline

Member Function Documentation

template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
void mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::connectedDefault ( )
inline
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
void mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::events ( std::queue< Event >  events)
inline
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::MOCK_METHOD0_T ( connected  ,
void()   
)
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::MOCK_METHOD0_T ( disconnected  ,
void()   
)
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::MOCK_METHOD0_T ( teardown  ,
void()   
)
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::MOCK_METHOD1_T ( subscribed  ,
void(const typename Event::Subscribed &)   
)
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::MOCK_METHOD1_T ( applyOperation  ,
void(const typename Event::ApplyOperation &)   
)
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::MOCK_METHOD1_T ( publishResources  ,
void(const typename Event::PublishResources &)   
)
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::MOCK_METHOD1_T ( acknowledgeOperationStatus  ,
void(const typename Event::AcknowledgeOperationStatus &)   
)
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::MOCK_METHOD1_T ( reconcileOperations  ,
void(const typename Event::ReconcileOperations &)   
)
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
void mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::operationDefault ( const typename Event::ApplyOperation &  operation)
inline
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
void mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::publishDefault ( const typename Event::PublishResources &  publish)
inline
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
process::Future<Nothing> mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::send ( const Call &  call)
inline
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
void mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::start ( process::Owned< mesos::internal::EndpointDetector detector,
ContentType  contentType 
)
inline
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
void mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::subscribedDefault ( const typename Event::Subscribed &  subscribed)
inline
template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
void mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::teardownDefault ( )
inline

Member Data Documentation

template<typename Event , typename Call , typename Driver , typename ResourceProviderInfo , typename Resource , typename Resources , typename ResourceProviderID , typename OperationState , typename Operation , typename Source >
ResourceProviderInfo mesos::internal::tests::resource_provider::MockResourceProvider< Event, Call, Driver, ResourceProviderInfo, Resource, Resources, ResourceProviderID, OperationState, Operation, Source >::info

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