CatapultServer  v0.5.0.1 (Elephant)
catapult::extensions::ProcessBootstrapper Class Reference

Process bootstrapper. More...

Collaboration diagram for catapult::extensions::ProcessBootstrapper:

Public Member Functions

 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. More...
 
const config::CatapultConfigurationconfig () const
 Gets the configuration. More...
 
const std::string & resourcesPath () const
 Gets the resources path. More...
 
ProcessDisposition disposition () const
 Gets the process disposition. More...
 
const std::vector< ionet::Node > & staticNodes () const
 Gets the static (pretrusted) nodes. More...
 
thread::MultiServicePoolpool ()
 Gets the multiservice pool. More...
 
ExtensionManagerextensionManager ()
 Gets the extension manager. More...
 
subscribers::SubscriptionManagersubscriptionManager ()
 Gets the subscription manager. More...
 
plugins::PluginManagerpluginManager ()
 Gets the plugin manager. More...
 
void loadExtensions ()
 Loads all configured extensions. More...
 
void addStaticNodes (const std::vector< ionet::Node > &nodes)
 Adds static nodes to the bootstrapper. More...
 

Private Attributes

config::CatapultConfiguration m_config
 
std::string m_resourcesPath
 
ProcessDisposition m_disposition
 
std::unique_ptr< thread::MultiServicePoolm_pMultiServicePool
 
std::vector< plugins::PluginModulem_extensionModules
 
ExtensionManager m_extensionManager
 
subscribers::SubscriptionManager m_subscriptionManager
 
plugins::PluginManager m_pluginManager
 
std::vector< ionet::Nodem_nodes
 

Detailed Description

Process bootstrapper.

Constructor & Destructor Documentation

◆ ProcessBootstrapper()

catapult::extensions::ProcessBootstrapper::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.

Member Function Documentation

◆ addStaticNodes()

void catapult::extensions::ProcessBootstrapper::addStaticNodes ( const std::vector< ionet::Node > &  nodes)

Adds static nodes to the bootstrapper.

Here is the caller graph for this function:

◆ config()

const config::CatapultConfiguration & catapult::extensions::ProcessBootstrapper::config ( ) const

Gets the configuration.

Here is the caller graph for this function:

◆ disposition()

ProcessDisposition catapult::extensions::ProcessBootstrapper::disposition ( ) const

Gets the process disposition.

◆ extensionManager()

ExtensionManager & catapult::extensions::ProcessBootstrapper::extensionManager ( )

Gets the extension manager.

◆ loadExtensions()

void catapult::extensions::ProcessBootstrapper::loadExtensions ( )

Loads all configured extensions.

Here is the call graph for this function:

◆ pluginManager()

plugins::PluginManager & catapult::extensions::ProcessBootstrapper::pluginManager ( )

Gets the plugin manager.

◆ pool()

thread::MultiServicePool & catapult::extensions::ProcessBootstrapper::pool ( )

Gets the multiservice pool.

◆ resourcesPath()

const std::string & catapult::extensions::ProcessBootstrapper::resourcesPath ( ) const

Gets the resources path.

◆ staticNodes()

const std::vector< ionet::Node > & catapult::extensions::ProcessBootstrapper::staticNodes ( ) const

Gets the static (pretrusted) nodes.

Here is the caller graph for this function:

◆ subscriptionManager()

subscribers::SubscriptionManager & catapult::extensions::ProcessBootstrapper::subscriptionManager ( )

Gets the subscription manager.

Member Data Documentation

◆ m_config

config::CatapultConfiguration catapult::extensions::ProcessBootstrapper::m_config
private

◆ m_disposition

ProcessDisposition catapult::extensions::ProcessBootstrapper::m_disposition
private

◆ m_extensionManager

ExtensionManager catapult::extensions::ProcessBootstrapper::m_extensionManager
private

◆ m_extensionModules

std::vector<plugins::PluginModule> catapult::extensions::ProcessBootstrapper::m_extensionModules
private

◆ m_nodes

std::vector<ionet::Node> catapult::extensions::ProcessBootstrapper::m_nodes
private

◆ m_pluginManager

plugins::PluginManager catapult::extensions::ProcessBootstrapper::m_pluginManager
private

◆ m_pMultiServicePool

std::unique_ptr<thread::MultiServicePool> catapult::extensions::ProcessBootstrapper::m_pMultiServicePool
private

◆ m_resourcesPath

std::string catapult::extensions::ProcessBootstrapper::m_resourcesPath
private

◆ m_subscriptionManager

subscribers::SubscriptionManager catapult::extensions::ProcessBootstrapper::m_subscriptionManager
private

The documentation for this class was generated from the following files: