CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace plugins {
class PluginManager; } }
26 namespace catapult {
namespace plugins {
PLUGIN_API void RegisterSubsystem(catapult::plugins::PluginManager &manager)
Entry point for registering a dynamic module with manager.
Definition: MemoryHashCacheSystem.cpp:63
A diagnostic counter id.
Definition: DiagnosticCounterId.h:27
Synchronized cache composed of timestamped hashes of (transaction) elements.
Definition: HashCache.h:49
utils::TimeSpan CalculateTransactionCacheDuration(const BlockChainConfiguration &config)
Calculates the duration of time that expired transactions should be cached for the block chain descri...
Definition: BlockChainConfiguration.cpp:120
void addDiagnosticHandlerHook(const HandlerHook &hook)
Adds a diagnostic handler hook.
Definition: PluginManager.cpp:114
const model::BlockChainConfiguration & config() const
Gets the block chain configuration.
Definition: PluginManager.cpp:37
A manager for registering plugins.
Definition: PluginManager.h:51
cache::CacheConfiguration cacheConfig(const std::string &name) const
Gets the cache configuration for cache with name.
Definition: PluginManager.cpp:49
#define PLUGIN_API
Definition: plugins.h:30
Policy for saving and loading hash cache data.
Definition: HashCacheStorage.h:28
void addCacheSupport(std::unique_ptr< TCache > &&pSubCache)
Adds support for a sub cache described by pSubCache.
Definition: PluginManager.h:113
Central cache holding all sub caches.
Definition: CatapultCache.h:40
void RegisterConfirmTimestampedHashesHandler(ionet::ServerPacketHandlers &handlers, const ConfirmedTimestampedHashesProducerFactory &confirmedTimestampedHashesProducerFactory)
Definition: HashCacheDiagnosticHandlers.cpp:35
static constexpr auto Name
Definition: PtSynchronizer.cpp:31
void addTransientObserverHook(const ObserverHook &hook)
Adds a (transient) observer hook.
Definition: PluginManager.cpp:168
ConfirmedTimestampedHashesProducerFactory CreateConfirmedTimestampedHashesProducerFactory(const cache::HashCache &hashCache)
Creates a confirmed timestamped hashes producer factory around hashCache.
Definition: ConfirmedTimestampedHashesProducerFactory.cpp:63
void addDiagnosticCounterHook(const CounterHook &hook)
Adds a diagnostic counter hook.
Definition: PluginManager.cpp:118
void RegisterMemoryHashCacheSystem(PluginManager &manager)
Registers the in-memory hash cache with manager.
Definition: MemoryHashCacheSystem.cpp:31
const TCache & sub() const
Gets a specific sub cache.
Definition: CatapultCache.h:56
Definition: AddressExtractionExtension.cpp:28
void addStatefulValidatorHook(const StatefulValidatorHook &hook)
Adds a stateful validator hook.
Definition: PluginManager.cpp:138