Apache Mesos
Public Member Functions | Protected Member Functions | List of all members
mesos::resource_provider::Registrar::Operation Class Referenceabstract

#include <registrar.hpp>

Inheritance diagram for mesos::resource_provider::Registrar::Operation:
process::Promise< bool > mesos::resource_provider::AdmitResourceProvider mesos::resource_provider::RemoveResourceProvider

Public Member Functions

virtual ~Operation ()=default
 
Try< bool > operator() (registry::Registry *registry)
 
bool set ()
 
- Public Member Functions inherited from process::Promise< bool >
 Promise ()
 
 Promise (const bool &t)
 
 Promise (Promise< bool > &&that)
 
virtual ~Promise ()
 
bool discard ()
 
bool set (const bool &_t)
 
bool set (bool &&_t)
 
bool set (const Future< bool > &future)
 
bool associate (const Future< bool > &future)
 
bool fail (const std::string &message)
 
Future< bool > future () const
 

Protected Member Functions

virtual Try< bool > perform (registry::Registry *registry)=0
 

Constructor & Destructor Documentation

virtual mesos::resource_provider::Registrar::Operation::~Operation ( )
virtualdefault

Member Function Documentation

Try<bool> mesos::resource_provider::Registrar::Operation::operator() ( registry::Registry *  registry)
virtual Try<bool> mesos::resource_provider::Registrar::Operation::perform ( registry::Registry *  registry)
protectedpure virtual
bool mesos::resource_provider::Registrar::Operation::set ( )

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