17 #ifndef __RESOURCE_PROVIDER_REGISTRAR_HPP__ 18 #define __RESOURCE_PROVIDER_REGISTRAR_HPP__ 38 namespace resource_provider {
79 registry::Registry registry);
92 const registry::ResourceProvider& resourceProvider);
97 registry::ResourceProvider resourceProvider;
109 ResourceProviderID id;
113 class GenericRegistrarProcess;
128 std::unique_ptr<GenericRegistrarProcess>
process;
132 class MasterRegistrarProcess;
142 registry::Registry registry);
153 std::unique_ptr<MasterRegistrarProcess>
process;
159 #endif // __RESOURCE_PROVIDER_REGISTRAR_HPP__ static Try< process::Owned< Registrar > > create(process::Owned< state::Storage > storage)
Definition: registrar.hpp:101
virtual ~Registrar()=default
Definition: registrar.hpp:88
Try< bool > operator()(registry::Registry *registry)
virtual Try< bool > perform(registry::Registry *registry)=0
Definition: future.hpp:74
Definition: registrar.hpp:40
Definition: registrar.hpp:48
Definition: registrar.hpp:135
Definition: registrar.hpp:116
Result< Process > process(pid_t pid)
Definition: freebsd.hpp:30
Definition: registrar.hpp:88
~Operation() override=default
virtual process::Future< bool > apply(process::Owned< Operation > operation)=0
virtual process::Future< registry::Registry > recover()=0
Definition: future.hpp:58