CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
32 class MemoryUtCacheProxy;
34 namespace extensions {
class LocalNodeChainScore; }
35 namespace io {
class BlockStorageCache; }
36 namespace ionet {
class NodeContainer; }
37 namespace plugins {
class PluginManager; }
38 namespace state {
struct CatapultState; }
39 namespace subscribers {
41 class StateChangeSubscriber;
42 class TransactionStatusSubscriber;
44 namespace thread {
class MultiServicePool; }
45 namespace utils {
class DiagnosticCounter; }
48 namespace catapult {
namespace extensions {
67 const std::vector<utils::DiagnosticCounter>&
counters,
const auto & counters() const
Definition: ServiceState.h:145
net::PacketIoPickerContainer m_packetIoPickers
Definition: ServiceState.h:207
ServiceState(const config::CatapultConfiguration &config, ionet::NodeContainer &nodes, cache::CatapultCache &cache, state::CatapultState &state, io::BlockStorageCache &storage, LocalNodeChainScore &score, cache::MemoryUtCacheProxy &utCache, const supplier< Timestamp > &timeSupplier, subscribers::TransactionStatusSubscriber &transactionStatusSubscriber, subscribers::StateChangeSubscriber &stateChangeSubscriber, subscribers::NodeSubscriber &nodeSubscriber, const std::vector< utils::DiagnosticCounter > &counters, const plugins::PluginManager &pluginManager, thread::MultiServicePool &pool)
Definition: ServiceState.h:55
cache::MemoryUtCacheProxy & m_utCache
Definition: ServiceState.h:192
supplier< Timestamp > m_timeSupplier
Definition: ServiceState.h:193
cache::CatapultCache & m_cache
Definition: ServiceState.h:188
auto & cache() const
Gets the cache.
Definition: ServiceState.h:99
auto & stateChangeSubscriber() const
Gets the state change subscriber.
Definition: ServiceState.h:134
A delegating proxy around a MemoryUtCache.
Definition: MemoryUtCache.h:107
auto & packetIoPickers()
Gets the packet io pickers.
Definition: ServiceState.h:180
State change subscriber.
Definition: StateChangeSubscriber.h:31
Node subscriber.
Definition: NodeSubscriber.h:30
auto & utCache() const
Gets the unconfirmed transactions cache.
Definition: ServiceState.h:119
auto & packetHandlers()
Gets the packet handlers.
Definition: ServiceState.h:165
Definition: MultiServicePool.h:33
A manager for registering plugins.
Definition: PluginManager.h:51
auto & hooks()
Gets the server hooks.
Definition: ServiceState.h:175
auto & storage() const
Gets the storage.
Definition: ServiceState.h:109
std::function< T()> supplier
A (stateless) supplier function.
Definition: functions.h:39
LocalNodeChainScore & m_score
Definition: ServiceState.h:191
io::BlockStorageCache & m_storage
Definition: ServiceState.h:190
A collection of nodes.
Definition: NodeContainer.h:109
auto & tasks()
Gets the tasks.
Definition: ServiceState.h:160
subscribers::NodeSubscriber & m_nodeSubscriber
Definition: ServiceState.h:197
const auto & config() const
Gets the config.
Definition: ServiceState.h:89
std::vector< thread::Task > m_tasks
Definition: ServiceState.h:204
ionet::ServerPacketHandlers m_packetHandlers
Definition: ServiceState.h:205
ServerHooks m_hooks
Definition: ServiceState.h:206
Comprehensive configuration for a catapult process.
Definition: CatapultConfiguration.h:34
const std::vector< utils::DiagnosticCounter > & m_counters
Definition: ServiceState.h:199
Definition: BlockStorageCache.h:97
auto & score() const
Gets the score.
Definition: ServiceState.h:114
Central cache holding all sub caches.
Definition: CatapultCache.h:40
State that is used as part of service registration.
Definition: ServiceState.h:51
Stateful catapult information.
Definition: CatapultState.h:27
auto & nodeSubscriber() const
Gets the node subscriber.
Definition: ServiceState.h:139
ionet::NodeContainer & m_nodes
Definition: ServiceState.h:187
auto & state() const
Gets the state.
Definition: ServiceState.h:104
auto & nodes() const
Gets the nodes.
Definition: ServiceState.h:94
const plugins::PluginManager & m_pluginManager
Definition: ServiceState.h:200
Definition: LocalNodeChainScore.h:29
const auto & hooks() const
Gets the server hooks.
Definition: ServiceState.h:170
Hooks that can be used to configure server behavior.
Definition: ServerHooks.h:77
const config::CatapultConfiguration & m_config
Definition: ServiceState.h:186
A collection of packet io pickers.
Definition: PacketIoPickerContainer.h:28
ionet::Node Node
Definition: PacketWriters.cpp:45
Definition: AddressExtractionExtension.cpp:28
subscribers::TransactionStatusSubscriber & m_transactionStatusSubscriber
Definition: ServiceState.h:195
thread::MultiServicePool & m_pool
Definition: ServiceState.h:201
auto & transactionStatusSubscriber() const
Gets the transaction status subscriber.
Definition: ServiceState.h:129
state::CatapultState & m_state
Definition: ServiceState.h:189
auto & pool()
Gets the multiservice pool.
Definition: ServiceState.h:155
A collection of packet handlers where there is at most one handler per packet type.
Definition: PacketHandlers.h:62
const auto & pluginManager() const
Gets the plugin manager.
Definition: ServiceState.h:150
Transaction status subscriber.
Definition: TransactionStatusSubscriber.h:30
auto timeSupplier() const
Gets the time supplier.
Definition: ServiceState.h:124
subscribers::StateChangeSubscriber & m_stateChangeSubscriber
Definition: ServiceState.h:196