17 #ifndef __RESOURCE_PROVIDER_REGISTRAR_HPP__
18 #define __RESOURCE_PROVIDER_REGISTRAR_HPP__
36 namespace resource_provider {
74 const SlaveID& slaveId);
89 Try<bool> perform(registry::Registry* registry)
override;
91 ResourceProviderID id;
101 Try<bool> perform(registry::Registry* registry)
override;
103 ResourceProviderID id;
107 class AgentRegistrarProcess;
115 const SlaveID& slaveId);
124 std::unique_ptr<AgentRegistrarProcess> process;
128 class MasterRegistrarProcess;
145 std::unique_ptr<MasterRegistrarProcess> process;
151 #endif // __RESOURCE_PROVIDER_REGISTRAR_HPP__
~MasterRegistrar() override
process::Future< Nothing > recover() override
Definition: registrar.hpp:95
virtual ~Registrar()=default
process::Future< Nothing > recover() override
Definition: registrar.hpp:91
AdmitResourceProvider(const ResourceProviderID &id)
Try< bool > operator()(registry::Registry *registry)
virtual process::Future< Nothing > recover()=0
virtual ~Operation()=default
RemoveResourceProvider(const ResourceProviderID &id)
static Try< process::Owned< Registrar > > create(mesos::internal::master::Registrar *registrar)
virtual Try< bool > perform(registry::Registry *registry)=0
Definition: future.hpp:73
Definition: registrar.hpp:38
Definition: registrar.hpp:110
Definition: registrar.hpp:46
MasterRegistrar(mesos::internal::master::Registrar *Registrar)
Definition: registrar.hpp:131
~AgentRegistrar() override
AgentRegistrar(const mesos::internal::slave::Flags &slaveFlags, const SlaveID &slaveId)
Definition: registrar.hpp:83
process::Future< bool > apply(process::Owned< Operation > operation) override
virtual process::Future< bool > apply(process::Owned< Operation > operation)=0
process::Future< bool > apply(process::Owned< Operation > operation) override