CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 namespace catapult {
namespace cache {
class CatapultCache; } }
30 namespace catapult {
namespace extensions {
void setNetworkTimeSupplier(const NetworkTimeSupplier &supplier)
Registers a network time supplier.
Definition: ExtensionManager.cpp:38
supplier< Timestamp > NetworkTimeSupplier
Supplier that returns the network time.
Definition: ExtensionManager.h:36
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
def debug(*args)
Definition: Parser.py:46
void addServiceRegistrar(std::unique_ptr< ServiceRegistrar > &&pServiceRegistrar)
Adds a service registrar (pServiceRegistrar).
Definition: ExtensionManager.cpp:42
const std::vector< std::string > & systemPluginNames() const
Gets the system plugin names.
Definition: ExtensionManager.cpp:46
DEFINE_OBSERVER(AccountAddress, model::AccountAddressNotification, [](const auto ¬ification, const auto &context) { DefaultAccountVisitor visitor(context);visitor.visit(notification.Address);})
void SetOnce(TFunc &dest, const TFunc &source)
Sets dest to source if and only if dest is unset.
Definition: BasicServerHooks.h:29
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
NetworkTimeSupplier m_networkTimeSupplier
Definition: ExtensionManager.h:64
std::function< T()> supplier
A (stateless) supplier function.
Definition: functions.h:39
NetworkTimeSupplier networkTimeSupplier() const
Gets the network time supplier.
Definition: ExtensionManager.cpp:50
State that is used as part of service registration.
Definition: ServiceState.h:51
void registerSystemPlugin(const std::string &name)
Registers a system plugin with name.
Definition: ExtensionManager.cpp:34
A manager for registering extensions.
Definition: ExtensionManager.h:33
std::vector< std::string > m_systemPluginNames
Definition: ExtensionManager.h:63
void registerServices(ServiceLocator &locator, ServiceState &state)
Registers all services by forwarding locator and state.
Definition: ExtensionManager.cpp:54
Definition: AddressExtractionExtension.cpp:28
ExtensionManager()
Creates a manager.
Definition: ExtensionManager.cpp:28
std::vector< std::unique_ptr< ServiceRegistrar > > m_serviceRegistrars
Definition: ExtensionManager.h:65
Timestamp NetworkTime()
Returns the network time, i.e. the number of milliseconds since Epoch_Time.
Definition: NetworkTime.cpp:27
A service locator for local node services.
Definition: ServiceLocator.h:33