Apache Mesos
Public Member Functions | Protected Member Functions | List of all members
mesos::internal::master::quota::RemoveQuota Class Reference

Removes quota for a role. More...

#include <quota.hpp>

Inheritance diagram for mesos::internal::master::quota::RemoveQuota:
mesos::internal::master::RegistryOperation process::Promise< bool >

Public Member Functions

 RemoveQuota (const std::string &_role)
- Public Member Functions inherited from mesos::internal::master::RegistryOperation
Try< bool > operator() (Registry *registry, hashset< SlaveID > *slaveIDs)
bool set ()
- Public Member Functions inherited from process::Promise< bool >
 Promise ()
 Promise (const bool &t)
 Promise (Promise &&that)=default
 Promise (const Promise &that)=delete
virtual ~Promise ()
Promiseoperator= (Promise &&)=default
Promiseoperator= (const Promise &)=delete
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

Try< bool > perform (Registry *registry, hashset< SlaveID > *slaveIDs) override

Detailed Description

Removes quota for a role.

If there is no quota stored for the role, no action is performed.

TODO(alexr): Consider uniting this operation with UpdateQuota.

Constructor & Destructor Documentation

mesos::internal::master::quota::RemoveQuota::RemoveQuota ( const std::string &  _role)

Member Function Documentation

Try<bool> mesos::internal::master::quota::RemoveQuota::perform ( Registry *  registry,
hashset< SlaveID > *  slaveIDs 

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