CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 namespace catapult {
namespace extensions {
class ProcessBootstrapper; } }
30 namespace catapult {
namespace local {
33 template<
typename THost,
typename... TArgs>
36 auto pHost = std::make_unique<THost>(std::forward<TArgs>(args)...);
39 }
catch (
const std::exception& ex) {
46 return std::move(pHost);
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
std::vector< plugins::PluginModule > m_pluginModules
Definition: HostUtils.cpp:60
const extensions::ExtensionManager & m_extensionManager
Definition: HostUtils.cpp:57
void LoadPluginByName(MongoPluginManager &manager, PluginModules &modules, const std::string &directory, const std::string &name)
Loads a plugin named name with manager from directory into modules.
Definition: MongoPluginLoader.cpp:32
const config::CatapultConfiguration & m_config
Definition: HostUtils.cpp:56
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
#define UNHANDLED_EXCEPTION_MESSAGE(ACTION)
Outputs a message for an unhandled exception that occurred during ACTION.
Definition: ExceptionLogging.h:30
std::vector< plugins::PluginModule > LoadAllPlugins(extensions::ProcessBootstrapper &bootstrapper)
Loads all plugins using bootstrapper.
Definition: HostUtils.cpp:64
Definition: AddressExtractionExtension.cpp:28
Process bootstrapper.
Definition: ProcessBootstrapper.h:42
std::unique_ptr< THost > CreateAndBootHost(TArgs &&... args)
Creates and boots a host with args.
Definition: HostUtils.h:34
plugins::PluginManager & m_pluginManager
Definition: HostUtils.cpp:58