CatapultServer  v0.5.0.1 (Elephant)
NetworkHeightService.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult { namespace networkheight { struct NetworkHeightConfiguration; } }
25 
26 namespace catapult { namespace networkheight {
27 
30  DECLARE_SERVICE_REGISTRAR(NetworkHeight)(const NetworkHeightConfiguration& networkHeightConfig);
31 }}
catapult::networkheight::NetworkHeightConfiguration
Network height configuration settings.
Definition: NetworkHeightConfiguration.h:30
catapult::extensions::ServiceRegistrarPhase::Post_Remote_Peers
Requires remote peers (and entity sinks) to be registered.
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
ServiceRegistrar.h
Parser.debug
def debug(*args)
Definition: Parser.py:46
catapult::extensions::ExtensionManager::addServiceRegistrar
void addServiceRegistrar(std::unique_ptr< ServiceRegistrar > &&pServiceRegistrar)
Adds a service registrar (pServiceRegistrar).
Definition: ExtensionManager.cpp:42
catapult::extensions::RemoteChainHeightsRetriever
std::function< thread::future< std::vector< Height > >(size_t)> RemoteChainHeightsRetriever
A retriever that returns the network chain heights for a number of peers.
Definition: ServerHooks.h:66
catapult::networkheight::NetworkHeight
DECLARE_SERVICE_REGISTRAR() NetworkHeight(const NetworkHeightConfiguration &networkHeightConfig)
Definition: NetworkHeightService.cpp:98
ServiceLocator.h
catapult::extensions::ProcessBootstrapper::resourcesPath
const std::string & resourcesPath() const
Gets the resources path.
Definition: ProcessBootstrapper.cpp:51
NetworkHeightService.h
m_networkHeightConfig
NetworkHeightConfiguration m_networkHeightConfig
Definition: NetworkHeightService.cpp:94
catapult::thread::CreateNamedTask
Task CreateNamedTask(const std::string &name, const TaskCallback &callback)
Creates an unscheduled task with name and callback.
Definition: Task.cpp:52
PLUGIN_API
#define PLUGIN_API
Definition: plugins.h:30
catapult::thread::TaskResult::Continue
Task should repeat.
forwardsValidation.info
def info(*args)
Definition: forwardsValidation.py:12
size
uint64_t size
Definition: MemoryCounters.cpp:65
catapult::extensions::ProcessBootstrapper::extensionManager
ExtensionManager & extensionManager()
Gets the extension manager.
Definition: ProcessBootstrapper.cpp:67
NetworkChainHeight.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::extensions::ProcessBootstrapper
Process bootstrapper.
Definition: ProcessBootstrapper.h:42
NetworkHeightConfiguration.h
DECLARE_SERVICE_REGISTRAR
#define DECLARE_SERVICE_REGISTRAR(NAME)
Declares a service registrar entry point with NAME.
Definition: ServiceRegistrar.h:61
catapult::networkheight::NetworkChainHeight
std::atomic< Height::ValueType > NetworkChainHeight
An atomic network chain height.
Definition: NetworkChainHeight.h:28
RegisterExtension
PLUGIN_API void RegisterExtension(catapult::extensions::ProcessBootstrapper &bootstrapper)
Entry point for registering a dynamic extension module with bootstrapper.
Definition: NetworkHeightExtension.cpp:37
BlockStorageCache.h
ProcessBootstrapper.h
ServiceState.h
catapult::networkheight::NetworkHeightConfiguration::LoadFromPath
static NetworkHeightConfiguration LoadFromPath(const boost::filesystem::path &resourcesPath)
Loads a network height configuration from resourcesPath.
Definition: NetworkHeightConfiguration.cpp:49