|
Apache Mesos
|
Sets quota for a role. More...
#include <quota.hpp>
Public Member Functions | |
| UpdateQuota (const google::protobuf::RepeatedPtrField< mesos::quota::QuotaConfig > "aConfigs) | |
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 () |
| Promise & | operator= (Promise &&)=default |
| Promise & | operator= (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 |
Sets quota for a role.
No assumptions are made here: the role may be unknown to the master, or quota can be already set for the role. If there is no quota stored for the role, a new entry is created, otherwise an existing one is updated.
|
explicit |
|
overrideprotectedvirtual |
Implements mesos::internal::master::RegistryOperation.
1.8.11