CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
33 namespace catapult {
namespace config {
class CatapultConfiguration; } }
35 namespace catapult {
namespace subscribers {
std::unique_ptr< PtCache > CreateAggregatePtCache(PtCache &ptCache, std::unique_ptr< PtChangeSubscriber > &&pPtChangeSubscriber)
Creates an aggregate pt cache that delegates to ptCache and publishes pt transaction changes to pPtCh...
Definition: AggregatePtCache.cpp:90
std::unique_ptr< io::BlockStorage > createBlockStorage(io::BlockChangeSubscriber *&pSubscriber)
Definition: SubscriptionManager.cpp:129
const config::CatapultConfiguration & m_config
Definition: SubscriptionManager.h:107
std::vector< std::unique_ptr< NodeSubscriber > > m_nodeSubscribers
Definition: SubscriptionManager.h:116
ValidationResult
Enumeration of all possible validation results.
Definition: ValidationResult.h:51
std::unique_ptr< cache::UtChangeSubscriber > createUtChangeSubscriber()
Creates the ut change subscriber.
Definition: SubscriptionManager.cpp:86
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
std::vector< std::unique_ptr< cache::UtChangeSubscriber > > m_utChangeSubscribers
Definition: SubscriptionManager.h:112
Block change subscriber.
Definition: BlockChangeSubscriber.h:27
void markUsed(SubscriberType subscriberType)
Definition: SubscriptionManager.cpp:169
std::vector< std::unique_ptr< cache::PtChangeSubscriber > > m_ptChangeSubscribers
Definition: SubscriptionManager.h:113
void addPtChangeSubscriber(std::unique_ptr< cache::PtChangeSubscriber > &&pSubscriber)
Registers a partial transactions change subscriber (pSubscriber).
Definition: SubscriptionManager.cpp:57
std::unique_ptr< StateChangeSubscriber > createStateChangeSubscriber()
Creates the state change subscriber.
Definition: SubscriptionManager.cpp:115
std::unique_ptr< io::BlockChangeSubscriber > createBlockChangeSubscriber()
Creates the block change subscriber.
Definition: SubscriptionManager.cpp:81
std::unique_ptr< NodeSubscriber > createNodeSubscriber()
Creates the node subscriber.
Definition: SubscriptionManager.cpp:120
std::vector< std::unique_ptr< io::BlockChangeSubscriber > > m_blockChangeSubscribers
Definition: SubscriptionManager.h:111
Comprehensive configuration for a catapult process.
Definition: CatapultConfiguration.h:34
void addNodeSubscriber(std::unique_ptr< NodeSubscriber > &&pSubscriber)
Adds a node subscriber (pSubscriber).
Definition: SubscriptionManager.cpp:72
std::unique_ptr< BlockStorage > CreateAggregateBlockStorage(std::unique_ptr< BlockStorage > &&pStorage, std::unique_ptr< BlockChangeSubscriber > &&pBlockChangeSubscriber)
Creates an aggregate block storage that delegates to pStorage and publishes block changes to pBlockCh...
Definition: AggregateBlockStorage.cpp:80
void addBlockChangeSubscriber(std::unique_ptr< io::BlockChangeSubscriber > &&pSubscriber)
Registers a block change subscriber (pSubscriber).
Definition: SubscriptionManager.cpp:47
void addStateChangeSubscriber(std::unique_ptr< StateChangeSubscriber > &&pSubscriber)
Adds a state change subscriber (pSubscriber).
Definition: SubscriptionManager.cpp:67
HarvestingConfiguration m_config
Definition: HarvestingService.cpp:126
io::BlockStorage & fileStorage()
Gets the underlying file storage.
Definition: SubscriptionManager.cpp:41
std::unique_ptr< UtCache > CreateAggregateUtCache(UtCache &utCache, std::unique_ptr< UtChangeSubscriber > &&pUtChangeSubscriber)
Creates an aggregate ut cache that delegates to utCache and publishes ut transaction changes to pUtCh...
Definition: AggregateUtCache.cpp:72
#define CATAPULT_LOG_LEVEL(LEVEL)
Writes a log entry to the default logger with LEVEL severity.
Definition: Logging.h:336
std::unique_ptr< cache::PtChangeSubscriber > createPtChangeSubscriber()
Creates the pt change subscriber.
Definition: SubscriptionManager.cpp:91
void addUtChangeSubscriber(std::unique_ptr< cache::UtChangeSubscriber > &&pSubscriber)
Registers an unconfirmed transactions change subscriber (pSubscriber).
Definition: SubscriptionManager.cpp:52
void requireUnused(SubscriberType subscriberType) const
Definition: SubscriptionManager.cpp:159
std::vector< std::unique_ptr< TransactionStatusSubscriber > > m_transactionStatusSubscribers
Definition: SubscriptionManager.h:114
SubscriptionManager(const config::CatapultConfiguration &config)
Creates a new subscription manager around config.
Definition: SubscriptionManager.cpp:35
Timestamp Deadline
Transaction deadline.
Definition: Transaction.h:38
std::unique_ptr< TransactionStatusSubscriber > createTransactionStatusSubscriber()
Creates the transaction status subscriber.
Definition: SubscriptionManager.cpp:96
std::unique_ptr< cache::MemoryPtCacheProxy > createPtCache(const cache::MemoryCacheOptions &options)
Definition: SubscriptionManager.cpp:149
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
Definition: AddressExtractionExtension.cpp:28
Interface for saving and loading blocks.
Definition: BlockStorage.h:50
std::unique_ptr< BlockStorage > m_pStorage
Definition: AggregateBlockStorage.cpp:75
constexpr utils::LogLevel MapToLogLevel(ValidationResult result)
Maps validation result to an appropriate logging level.
Definition: ValidationResult.h:100
SubscriberType
Definition: SubscriptionManager.h:99
Options for customizing the behavior of a memory based cache.
Definition: MemoryCacheOptions.h:27
std::unique_ptr< cache::MemoryUtCacheProxy > createUtCache(const cache::MemoryCacheOptions &options)
Definition: SubscriptionManager.cpp:141
void addTransactionStatusSubscriber(std::unique_ptr< TransactionStatusSubscriber > &&pSubscriber)
Adds a transaction status subscriber (pSubscriber).
Definition: SubscriptionManager.cpp:62
std::unique_ptr< io::FileBlockStorage > m_pStorage
Definition: SubscriptionManager.h:108
Transaction status subscriber.
Definition: TransactionStatusSubscriber.h:30
std::vector< std::unique_ptr< StateChangeSubscriber > > m_stateChangeSubscribers
Definition: SubscriptionManager.h:115
A manager for subscribing to notifications.
Definition: SubscriptionManager.h:38
Binary layout for a transaction.
Definition: Transaction.h:32
std::array< bool, utils::to_underlying_type(SubscriberType::Count)> m_subscriberUsedFlags
Definition: SubscriptionManager.h:109