CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace extensions {
33 namespace catapult {
namespace extensions {
61 #define DECLARE_SERVICE_REGISTRAR(NAME) std::unique_ptr<extensions::ServiceRegistrar> Create##NAME##ServiceRegistrar
ServiceRegistrarPhase Phase
Phase during which the registrar should be invoked.
Definition: ServiceRegistrar.h:41
virtual void registerServices(ServiceLocator &locator, ServiceState &state)=0
Boots and registers dependent services with locator given state.
A registrar for registering a service.
Definition: ServiceRegistrar.h:45
Information about a service registrar.
Definition: ServiceRegistrar.h:36
virtual ~ServiceRegistrar()=default
State that is used as part of service registration.
Definition: ServiceState.h:51
virtual ServiceRegistrarInfo info() const =0
Gets information about the registrar.
Definition: AddressExtractionExtension.cpp:28
ServiceRegistrarPhase
Definition: ServiceRegistrarPhase.h:27
virtual void registerServiceCounters(ServiceLocator &locator)=0
Registers service dependent counters with locator.
std::string Name
Registrar friendly name.
Definition: ServiceRegistrar.h:38
A service locator for local node services.
Definition: ServiceLocator.h:33