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