CatapultServer  v0.5.0.1 (Elephant)
PtDispatcherService.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult { namespace partialtransaction {
25 
28 }}
catapult::model::EntityRange::FromEntity
static EntityRange FromEntity(std::unique_ptr< TEntity > &&pEntity)
Creates an entity range around a single entity (pEntity).
Definition: EntityRange.h:292
catapult::chain::CreatePtValidator
std::unique_ptr< PtValidator > CreatePtValidator(const cache::CatapultCache &cache, const TimeSupplier &timeSupplier, const plugins::PluginManager &pluginManager)
Creates a default partial transaction validator around cache, current time supplier (timeSupplier) an...
Definition: PtValidator.cpp:98
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
ServiceRegistrar.h
m_state
extensions::ServiceState & m_state
Definition: PtDispatcherService.cpp:126
catapult::extensions::AddDispatcherCounters
void AddDispatcherCounters(ServiceLocator &locator, const std::string &dispatcherName, const std::string &counterPrefix)
Adds dispatcher counters with prefix counterPrefix to locator for a dispatcher named dispatcherName.
Definition: DispatcherUtils.cpp:43
catapult::Hash256
utils::ByteArray< Hash256_Size, Hash256_tag > Hash256
Definition: src/catapult/types.h:47
m_nodeConfig
const config::NodeConfiguration & m_nodeConfig
Definition: PtDispatcherService.cpp:127
ServiceUtils.h
Parser.debug
def debug(*args)
Definition: Parser.py:46
catapult::extensions::CreateBatchTransactionTask
thread::Task CreateBatchTransactionTask(TransactionBatchRangeDispatcher &dispatcher, const std::string &name)
Creates a task with name that dispatches all transactions batched in dispatcher.
Definition: DispatcherUtils.cpp:54
catapult::disruptor
Definition: ConsumerUtils.h:25
ConsumerDispatcher.h
Local
ionet::Node Local
Definition: tools/network/main.cpp:42
ServiceLocator.h
catapult::extensions::ServiceState::utCache
auto & utCache() const
Gets the unconfirmed transactions cache.
Definition: ServiceState.h:119
catapult::partialtransaction::GetMemoryPtCache
PtCache & GetMemoryPtCache(const extensions::ServiceLocator &locator)
Gets the memory partial transactions cache stored in locator.
Definition: PtBootstrapperService.cpp:97
catapult::consumers::CreateReclaimMemoryInspector
disruptor::DisruptorInspector CreateReclaimMemoryInspector()
Creates an inspector that reclaims memory.
Definition: ReclaimMemoryInspector.cpp:43
catapult::extensions
Definition: DispatcherSyncHandlers.h:26
catapult::extensions::ServiceRegistrar
A registrar for registering a service.
Definition: ServiceRegistrar.h:45
catapult::extensions::CreateHashCheckOptions
consumers::HashCheckOptions CreateHashCheckOptions(const utils::TimeSpan &cacheDuration, const config::NodeConfiguration &nodeConfig)
Creates hash check options based on cacheDuration and nodeConfig.
Definition: DispatcherUtils.cpp:30
catapult::partialtransaction::CreatePtDispatcherServiceRegistrar
std::unique_ptr< ServiceRegistrar > CreatePtDispatcherServiceRegistrar()
Definition: PtDispatcherService.cpp:265
MemoryPtCache.h
catapult::thread::when_all
future< std::vector< future< T > > > when_all(std::vector< future< T >> &&allFutures)
Returns a future that is signaled when all futures in allFutures complete.
Definition: FutureUtils.h:31
PtDispatcherService.h
catapult::disruptor::ConsumerDispatcherOptions
Consumer dispatcher options.
Definition: ConsumerDispatcherOptions.h:27
catapult::partialtransaction::PtDispatcher
DECLARE_SERVICE_REGISTRAR() PtDispatcher()
Creates a registrar for a partial transaction dispatcher service.
RecentHashCache.h
catapult::extensions::SubscriberToSink
chain::FailedTransactionSink SubscriberToSink(subscribers::TransactionStatusSubscriber &subscriber)
Converts subscriber to a sink.
Definition: DispatcherUtils.cpp:37
catapult::partialtransaction::SplitCosignedTransactionInfos
void SplitCosignedTransactionInfos(CosignedTransactionInfos &&transactionInfos, const consumer< model::TransactionRange && > &transactionRangeConsumer, const consumer< model::DetachedCosignature && > &cosignatureConsumer)
Definition: PtUtils.cpp:52
catapult::disruptor::DisruptorConsumersFromTransactionConsumers
std::vector< DisruptorConsumer > DisruptorConsumersFromTransactionConsumers(const std::vector< TransactionConsumer > &transactionConsumers)
Maps transactionConsumers to disruptor consumers so that they can be used to create a ConsumerDispatc...
Definition: DisruptorConsumer.cpp:50
forwardsValidation.info
def info(*args)
Definition: forwardsValidation.py:12
catapult::extensions::ServiceRegistrarInfo
Information about a service registrar.
Definition: ServiceRegistrar.h:36
PtUtils.h
catapult::extensions::ServiceState
State that is used as part of service registration.
Definition: ServiceState.h:51
MultiServicePool.h
catapult::consumers::CreateTransactionHashCalculatorConsumer
disruptor::TransactionConsumer CreateTransactionHashCalculatorConsumer(const GenerationHash &generationHash, const model::TransactionRegistry &transactionRegistry)
Definition: HashCalculatorConsumer.cpp:103
DispatcherUtils.h
catapult::consumers
Definition: AuditConsumer.cpp:28
catapult::consumers::CreateTransactionHashCheckConsumer
disruptor::TransactionConsumer CreateTransactionHashCheckConsumer(const chain::TimeSupplier &timeSupplier, const HashCheckOptions &options, const chain::KnownHashPredicate &knownHashPredicate)
Definition: HashCheckConsumer.cpp:107
catapult::extensions::ServiceState::hooks
const auto & hooks() const
Gets the server hooks.
Definition: ServiceState.h:170
CosignatureHandler.h
PtValidator.h
PtBootstrapperService.h
PluginManager.h
Node
ionet::Node Node
Definition: PacketWriters.cpp:45
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::consumers::CreateNewTransactionsConsumer
disruptor::DisruptorConsumer CreateNewTransactionsConsumer(const NewTransactionsSink &newTransactionsSink)
Definition: NewTransactionsConsumer.cpp:79
catapult::Hash256_Size
constexpr size_t Hash256_Size
Definition: src/catapult/types.h:34
m_pUpdater
std::unique_ptr< chain::PtUpdater > m_pUpdater
Definition: PtDispatcherService.cpp:155
PtHandlers.h
DECLARE_SERVICE_REGISTRAR
#define DECLARE_SERVICE_REGISTRAR(NAME)
Declares a service registrar entry point with NAME.
Definition: ServiceRegistrar.h:61
m_pDispatcher
std::shared_ptr< ConsumerDispatcher > m_pDispatcher
Definition: PtDispatcherService.cpp:154
catapult::extensions::ServiceState::pool
auto & pool()
Gets the multiservice pool.
Definition: ServiceState.h:155
PtUpdater.h
catapult::consumer
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35
catapult::extensions::SharedNewTransactionsSink
consumer< const consumers::TransactionInfos & > SharedNewTransactionsSink
A new transactions sink prototype that does not take ownership of new infos.
Definition: ServerHooks.h:41
catapult::utils::SpinLockGuard
std::lock_guard< SpinLock > SpinLockGuard
A spin lock guard.
Definition: SpinLock.h:60
ServiceState.h
m_consumers
std::vector< TransactionConsumer > m_consumers
Definition: PtDispatcherService.cpp:128
ReclaimMemoryInspector.h
catapult::extensions::ServiceLocator
A service locator for local node services.
Definition: ServiceLocator.h:33
catapult::partialtransaction::GetPtServerHooks
PtServerHooks & GetPtServerHooks(const extensions::ServiceLocator &locator)
Gets the partial transactions server hooks stored in locator.
Definition: PtBootstrapperService.cpp:101
TransactionConsumers.h