CatapultServer  v0.5.0.1 (Elephant)
PtBootstrapperService.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "PtTypes.h"
26 
27 namespace catapult { namespace cache { class MemoryPtCacheProxy; } }
28 
29 namespace catapult { namespace partialtransaction {
30 
31  // region PtServerHooks
32 
34  class PtServerHooks {
35  public:
39  }
40 
44  }
45 
49  }
50 
51  public:
53  const auto& cosignedTransactionInfosConsumer() const {
55  }
56 
58  const auto& ptRangeConsumer() const {
60  }
61 
63  const auto& cosignatureRangeConsumer() const {
65  }
66 
67  private:
71  };
72 
73  // endregion
74 
77 
83 
86 
89 }}
catapult::partialtransaction::CosignedTransactionInfosConsumer
consumer< CosignedTransactionInfos && > CosignedTransactionInfosConsumer
Function signature for consuming a vector of cosigned transaction infos.
Definition: PtTypes.h:36
catapult::handlers::RangeHandler
consumer< model::AnnotatedEntityRange< TEntity > && > RangeHandler
A handler for processing an annotated entity range.
Definition: HandlerTypes.h:29
catapult::partialtransaction::PtCacheSupplier
supplier< std::unique_ptr< cache::MemoryPtCacheProxy > > PtCacheSupplier
Partial transactions cache supplier.
Definition: PtBootstrapperService.h:76
catapult::partialtransaction::PtServerHooks::m_cosignatureRangeConsumer
handlers::RangeHandler< model::DetachedCosignature > m_cosignatureRangeConsumer
Definition: PtBootstrapperService.h:70
ServiceRegistrar.h
catapult::utils::UniqueToShared
std::shared_ptr< T > UniqueToShared(std::unique_ptr< T > &&pointer)
Converts a unique pointer to a shared pointer of the same type.
Definition: MemoryUtils.h:47
catapult::extensions::ServiceRegistrarPhase::Initial
First phase (no dependencies).
BasicServerHooks.h
catapult::extensions::Require
const TFunc & Require(const TFunc &func)
Returns func if and only if it is set.
Definition: BasicServerHooks.h:38
catapult::partialtransaction::PtBootstrapper
DECLARE_SERVICE_REGISTRAR() PtBootstrapper(const PtCacheSupplier &ptCacheSupplier)
Definition: PtBootstrapperService.cpp:93
ServiceLocator.h
Results.h
catapult::partialtransaction::GetMemoryPtCache
PtCache & GetMemoryPtCache(const extensions::ServiceLocator &locator)
Gets the memory partial transactions cache stored in locator.
Definition: PtBootstrapperService.cpp:97
catapult::extensions::SetOnce
void SetOnce(TFunc &dest, const TFunc &source)
Sets dest to source if and only if dest is unset.
Definition: BasicServerHooks.h:29
catapult::extensions::ServiceLocator::service
std::shared_ptr< TService > service(const std::string &serviceName) const
Gets the service with serviceName.
Definition: ServiceLocator.h:74
catapult::utils::to_underlying_type
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
catapult::cache::MemoryPtCacheProxy
A delegating proxy around a MemoryPtCache.
Definition: MemoryPtCache.h:97
MemoryPtCache.h
catapult::supplier
std::function< T()> supplier
A (stateless) supplier function.
Definition: functions.h:39
catapult::partialtransaction::PtServerHooks::cosignatureRangeConsumer
const auto & cosignatureRangeConsumer() const
Gets the cosignature range consumer.
Definition: PtBootstrapperService.h:63
catapult::extensions::TransactionEvent::Dependency_Removed
Transaction dependency was removed.
catapult::partialtransaction::PtServerHooks::m_cosignedTransactionInfosConsumer
CosignedTransactionInfosConsumer m_cosignedTransactionInfosConsumer
Definition: PtBootstrapperService.h:68
TransactionStatusSubscriber.h
catapult::partialtransaction::PtServerHooks::setCosignatureRangeConsumer
void setCosignatureRangeConsumer(const handlers::RangeHandler< model::DetachedCosignature > &consumer)
Sets the cosignature range consumer.
Definition: PtBootstrapperService.h:47
forwardsValidation.info
def info(*args)
Definition: forwardsValidation.py:12
m_ptCacheSupplier
PtCacheSupplier m_ptCacheSupplier
Definition: PtBootstrapperService.cpp:89
catapult::handlers::TransactionRangeHandler
RangeHandler< model::Transaction > TransactionRangeHandler
Prototype for a function that processes a range of transactions.
Definition: HandlerTypes.h:35
catapult::partialtransaction::PtServerHooks::setPtRangeConsumer
void setPtRangeConsumer(const handlers::TransactionRangeHandler &consumer)
Sets the partial transaction range consumer.
Definition: PtBootstrapperService.h:42
catapult::partialtransaction::PtServerHooks
Hooks for the partial transactions subsystem.
Definition: PtBootstrapperService.h:34
catapult::partialtransaction::PtServerHooks::m_ptRangeConsumer
handlers::TransactionRangeHandler m_ptRangeConsumer
Definition: PtBootstrapperService.h:69
PtBootstrapperService.h
PtTypes.h
catapult::partialtransaction::PtServerHooks::cosignedTransactionInfosConsumer
const auto & cosignedTransactionInfosConsumer() const
Gets the cosigned transaction infos consumer.
Definition: PtBootstrapperService.h:53
catapult
Definition: AddressExtractionExtension.cpp:28
HandlerTypes.h
DECLARE_SERVICE_REGISTRAR
#define DECLARE_SERVICE_REGISTRAR(NAME)
Declares a service registrar entry point with NAME.
Definition: ServiceRegistrar.h:61
catapult::partialtransaction::PtServerHooks::ptRangeConsumer
const auto & ptRangeConsumer() const
Gets the partial transaction range consumer.
Definition: PtBootstrapperService.h:58
catapult::partialtransaction::PtServerHooks::setCosignedTransactionInfosConsumer
void setCosignedTransactionInfosConsumer(const CosignedTransactionInfosConsumer &consumer)
Sets the cosigned transaction infos consumer.
Definition: PtBootstrapperService.h:37
catapult::consumer
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35
ServiceState.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