CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
30 namespace catapult {
namespace extensions {
49 const std::string& servicePoolName);
62 const std::vector<ionet::Node>&
staticNodes()
const;
void addStaticNodes(const std::vector< ionet::Node > &nodes)
Adds static nodes to the bootstrapper.
Definition: ProcessBootstrapper.cpp:105
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
#define CATAPULT_THROW_AND_LOG_0(TYPE, MESSAGE)
Macro used to throw a catapult exception with zero parameters.
Definition: exceptions.h:146
std::vector< plugins::PluginModule > m_extensionModules
Definition: ProcessBootstrapper.h:89
const model::BlockChainConfiguration BlockChain
Block chain configuration.
Definition: CatapultConfiguration.h:48
std::string PluginsDirectory
Plugins directory.
Definition: UserConfiguration.h:38
A plugin module.
Definition: PluginModule.h:28
std::vector< ionet::Node > m_nodes
Definition: ProcessBootstrapper.h:94
config::CatapultConfiguration m_config
Definition: ProcessBootstrapper.h:85
ProcessDisposition disposition() const
Gets the process disposition.
Definition: ProcessBootstrapper.cpp:55
const ExtensionsConfiguration Extensions
Extensions configuration.
Definition: CatapultConfiguration.h:60
Definition: MultiServicePool.h:33
Exception class that is thrown when an error is encountered while loading a plugin.
Definition: PluginExceptions.h:27
ProcessDisposition m_disposition
Definition: ProcessBootstrapper.h:87
A manager for registering plugins.
Definition: PluginManager.h:51
NetworkInfo Network
Block chain network.
Definition: BlockChainConfiguration.h:36
const std::string & resourcesPath() const
Gets the resources path.
Definition: ProcessBootstrapper.cpp:51
std::string m_resourcesPath
Definition: tools/health/main.cpp:209
ProcessBootstrapper(const config::CatapultConfiguration &config, const std::string &resourcesPath, ProcessDisposition disposition, const std::string &servicePoolName)
Creates a process bootstrapper around config, resourcesPath, disposition and servicePoolName.
Definition: ProcessBootstrapper.cpp:29
#define PLUGIN_API
Definition: plugins.h:30
Comprehensive configuration for a catapult process.
Definition: CatapultConfiguration.h:34
TFunc symbol(const char *symbolName) const
Gets a symbol of the specified type named symbolName.
Definition: PluginModule.h:44
def info(*args)
Definition: forwardsValidation.py:12
std::vector< std::string > Names
Definition: ExtensionsConfiguration.h:34
plugins::PluginManager & m_pluginManager
Definition: Broker.cpp:123
HarvestingConfiguration m_config
Definition: HarvestingService.cpp:126
plugins::PluginManager & pluginManager()
Gets the plugin manager.
Definition: ProcessBootstrapper.cpp:75
ExtensionManager & extensionManager()
Gets the extension manager.
Definition: ProcessBootstrapper.cpp:67
std::string m_resourcesPath
Definition: ProcessBootstrapper.h:86
std::unique_ptr< thread::MultiServicePool > m_pMultiServicePool
Definition: ProcessBootstrapper.h:88
ExtensionManager m_extensionManager
Definition: ProcessBootstrapper.h:91
subscribers::SubscriptionManager m_subscriptionManager
Definition: ProcessBootstrapper.h:92
const config::CatapultConfiguration & config() const
Gets the configuration.
Definition: ProcessBootstrapper.cpp:47
const std::vector< ionet::Node > & staticNodes() const
Gets the static (pretrusted) nodes.
Definition: ProcessBootstrapper.cpp:59
A manager for registering extensions.
Definition: ExtensionManager.h:33
std::vector< ionet::Node > LoadPeersFromPath(const std::string &path, model::NetworkIdentifier networkIdentifier)
Loads peers from the specified path for the network identified by networkIdentifier.
Definition: PeersConfiguration.cpp:106
const UserConfiguration User
User configuration.
Definition: CatapultConfiguration.h:57
void AddStaticNodesFromPath(ProcessBootstrapper &bootstrapper, const std::string &path)
Adds static nodes from path to bootstrapper.
Definition: ProcessBootstrapper.cpp:109
ionet::Node Node
Definition: PacketWriters.cpp:45
Definition: AddressExtractionExtension.cpp:28
Process bootstrapper.
Definition: ProcessBootstrapper.h:42
subscribers::SubscriptionManager & subscriptionManager()
Gets the subscription manager.
Definition: ProcessBootstrapper.cpp:71
thread::MultiServicePool & pool()
Gets the multiservice pool.
Definition: ProcessBootstrapper.cpp:63
plugins::StorageConfiguration CreateStorageConfiguration(const config::CatapultConfiguration &config)
Creates plugin storage configuration from config.
Definition: PluginUtils.cpp:30
ProcessDisposition
Possible process dispositions.
Definition: ProcessBootstrapper.h:33
PLUGIN_API void RegisterExtension(catapult::extensions::ProcessBootstrapper &bootstrapper)
Entry point for registering a dynamic extension module with bootstrapper.
Definition: AddressExtractionExtension.cpp:50
plugins::PluginManager m_pluginManager
Definition: ProcessBootstrapper.h:93
void loadExtensions()
Loads all configured extensions.
Definition: ProcessBootstrapper.cpp:96
NetworkIdentifier Identifier
Network identifier.
Definition: NetworkInfo.h:70
A manager for subscribing to notifications.
Definition: SubscriptionManager.h:38