CatapultServer  v0.5.0.1 (Elephant)
PluginUtils.h
Go to the documentation of this file.
1 
21 #pragma once
24 #include <memory>
25 
26 namespace catapult {
27  namespace config { class CatapultConfiguration; }
28  namespace observers { class EntityObserver; }
29 }
30 
31 namespace catapult { namespace extensions {
32 
34  plugins::StorageConfiguration CreateStorageConfiguration(const config::CatapultConfiguration& config);
35 
37  std::unique_ptr<const validators::stateless::AggregateEntityValidator> CreateStatelessValidator(const plugins::PluginManager& manager);
38 
40  std::unique_ptr<const observers::EntityObserver> CreateUndoEntityObserver(const plugins::PluginManager& manager);
41 }}
catapult::extensions::CreateUndoEntityObserver
std::unique_ptr< const observers::EntityObserver > CreateUndoEntityObserver(const plugins::PluginManager &manager)
Creates an undo entity observer using pluginManager.
Definition: PluginUtils.cpp:53
catapult::plugins::StorageConfiguration
Additional storage configuration.
Definition: PluginManager.h:39
catapult::plugins::PluginManager::createObserver
ObserverPointer createObserver() const
Creates an observer.
Definition: PluginManager.cpp:172
AggregateEntityValidator.h
NotificationObserverAdapter.h
catapult::config::NodeConfiguration::ShouldUseCacheDatabaseStorage
bool ShouldUseCacheDatabaseStorage
true if cache data should be saved in a database.
Definition: NodeConfiguration.h:48
catapult::config::NodeConfiguration::MaxCacheDatabaseWriteBatchSize
utils::FileSize MaxCacheDatabaseWriteBatchSize
Maximum cache database write batch size.
Definition: NodeConfiguration.h:131
catapult::config::CatapultConfiguration::Node
const NodeConfiguration Node
Node configuration.
Definition: CatapultConfiguration.h:51
catapult::config::UserConfiguration::DataDirectory
std::string DataDirectory
Data directory.
Definition: UserConfiguration.h:35
catapult::plugins::PluginManager
A manager for registering plugins.
Definition: PluginManager.h:51
PluginUtils.h
catapult::plugins::StorageConfiguration::PreferCacheDatabase
bool PreferCacheDatabase
Prefer using a database for cache storage.
Definition: PluginManager.h:41
catapult::plugins::PluginManager::createStatelessValidator
StatelessValidatorPointer createStatelessValidator(const validators::ValidationResultPredicate &isSuppressedFailure) const
Creates a stateless validator that ignores suppressed failures according to isSuppressedFailure.
Definition: PluginManager.cpp:142
NotificationValidatorAdapter.h
catapult::config::CatapultConfiguration
Comprehensive configuration for a catapult process.
Definition: CatapultConfiguration.h:34
catapult::extensions::CreateStatelessValidator
std::unique_ptr< const validators::stateless::AggregateEntityValidator > CreateStatelessValidator(const plugins::PluginManager &manager)
Creates an entity stateless validator using pluginManager.
Definition: PluginUtils.cpp:45
catapult::plugins::StorageConfiguration::CacheDatabaseDirectory
std::string CacheDatabaseDirectory
Base directory to use for storing cache database.
Definition: PluginManager.h:44
CatapultConfiguration.h
catapult::plugins::StorageConfiguration::MaxCacheDatabaseWriteBatchSize
utils::FileSize MaxCacheDatabaseWriteBatchSize
Maximum cache database write batch size.
Definition: PluginManager.h:47
catapult::plugins::PluginManager::createNotificationPublisher
PublisherPointer createNotificationPublisher(model::PublicationMode mode=model::PublicationMode::All) const
Creates a notification publisher for the specified mode.
Definition: PluginManager.cpp:225
catapult::validators::ValidatorVectorT
std::vector< std::unique_ptr< const EntityValidatorT< TArgs... > >> ValidatorVectorT
A vector of validators.
Definition: ValidatorTypes.h:46
ValidatorTypes.h
PluginManager.h
ReverseNotificationObserverAdapter.h
catapult::config::CatapultConfiguration::User
const UserConfiguration User
User configuration.
Definition: CatapultConfiguration.h:57
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::extensions::CreateStorageConfiguration
plugins::StorageConfiguration CreateStorageConfiguration(const config::CatapultConfiguration &config)
Creates plugin storage configuration from config.
Definition: PluginUtils.cpp:30