CatapultServer  v0.5.0.1 (Elephant)
catapult::extensions::ServiceState Class Reference

State that is used as part of service registration. More...

Collaboration diagram for catapult::extensions::ServiceState:

Public Member Functions

 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)
 
const auto & config () const
 Gets the config. More...
 
auto & nodes () const
 Gets the nodes. More...
 
auto & cache () const
 Gets the cache. More...
 
auto & state () const
 Gets the state. More...
 
auto & storage () const
 Gets the storage. More...
 
auto & score () const
 Gets the score. More...
 
auto & utCache () const
 Gets the unconfirmed transactions cache. More...
 
auto timeSupplier () const
 Gets the time supplier. More...
 
auto & transactionStatusSubscriber () const
 Gets the transaction status subscriber. More...
 
auto & stateChangeSubscriber () const
 Gets the state change subscriber. More...
 
auto & nodeSubscriber () const
 Gets the node subscriber. More...
 
const auto & counters () const
 
const auto & pluginManager () const
 Gets the plugin manager. More...
 
auto & pool ()
 Gets the multiservice pool. More...
 
auto & tasks ()
 Gets the tasks. More...
 
auto & packetHandlers ()
 Gets the packet handlers. More...
 
const auto & hooks () const
 Gets the server hooks. More...
 
auto & hooks ()
 Gets the server hooks. More...
 
auto & packetIoPickers ()
 Gets the packet io pickers. More...
 

Private Attributes

const config::CatapultConfigurationm_config
 
ionet::NodeContainerm_nodes
 
cache::CatapultCachem_cache
 
state::CatapultStatem_state
 
io::BlockStorageCachem_storage
 
LocalNodeChainScorem_score
 
cache::MemoryUtCacheProxym_utCache
 
supplier< Timestampm_timeSupplier
 
subscribers::TransactionStatusSubscriberm_transactionStatusSubscriber
 
subscribers::StateChangeSubscriberm_stateChangeSubscriber
 
subscribers::NodeSubscriberm_nodeSubscriber
 
const std::vector< utils::DiagnosticCounter > & m_counters
 
const plugins::PluginManagerm_pluginManager
 
thread::MultiServicePoolm_pool
 
std::vector< thread::Taskm_tasks
 
ionet::ServerPacketHandlers m_packetHandlers
 
ServerHooks m_hooks
 
net::PacketIoPickerContainer m_packetIoPickers
 

Detailed Description

State that is used as part of service registration.

Constructor & Destructor Documentation

◆ ServiceState()

catapult::extensions::ServiceState::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 
)
inline

Creates service state around config, nodes, cache, state, storage, score, utCache, timeSupplier transactionStatusSubscriber, stateChangeSubscriber, nodeSubscriber, counters, pluginManager and pool.

Member Function Documentation

◆ cache()

auto& catapult::extensions::ServiceState::cache ( ) const
inline

Gets the cache.

Here is the caller graph for this function:

◆ config()

const auto& catapult::extensions::ServiceState::config ( ) const
inline

Gets the config.

Here is the caller graph for this function:

◆ counters()

const auto& catapult::extensions::ServiceState::counters ( ) const
inline

Gets the (basic) counters.

Note
These counters are node counters and do not include counters registered via ServiceLocator.

◆ hooks() [1/2]

auto& catapult::extensions::ServiceState::hooks ( )
inline

Gets the server hooks.

◆ hooks() [2/2]

const auto& catapult::extensions::ServiceState::hooks ( ) const
inline

Gets the server hooks.

Here is the caller graph for this function:

◆ nodes()

auto& catapult::extensions::ServiceState::nodes ( ) const
inline

Gets the nodes.

Here is the caller graph for this function:

◆ nodeSubscriber()

auto& catapult::extensions::ServiceState::nodeSubscriber ( ) const
inline

Gets the node subscriber.

◆ packetHandlers()

auto& catapult::extensions::ServiceState::packetHandlers ( )
inline

Gets the packet handlers.

◆ packetIoPickers()

auto& catapult::extensions::ServiceState::packetIoPickers ( )
inline

Gets the packet io pickers.

◆ pluginManager()

const auto& catapult::extensions::ServiceState::pluginManager ( ) const
inline

Gets the plugin manager.

Here is the caller graph for this function:

◆ pool()

auto& catapult::extensions::ServiceState::pool ( )
inline

Gets the multiservice pool.

◆ score()

auto& catapult::extensions::ServiceState::score ( ) const
inline

Gets the score.

◆ state()

auto& catapult::extensions::ServiceState::state ( ) const
inline

Gets the state.

◆ stateChangeSubscriber()

auto& catapult::extensions::ServiceState::stateChangeSubscriber ( ) const
inline

Gets the state change subscriber.

◆ storage()

auto& catapult::extensions::ServiceState::storage ( ) const
inline

Gets the storage.

Here is the caller graph for this function:

◆ tasks()

auto& catapult::extensions::ServiceState::tasks ( )
inline

Gets the tasks.

◆ timeSupplier()

auto catapult::extensions::ServiceState::timeSupplier ( ) const
inline

Gets the time supplier.

◆ transactionStatusSubscriber()

auto& catapult::extensions::ServiceState::transactionStatusSubscriber ( ) const
inline

Gets the transaction status subscriber.

◆ utCache()

auto& catapult::extensions::ServiceState::utCache ( ) const
inline

Gets the unconfirmed transactions cache.

Member Data Documentation

◆ m_cache

cache::CatapultCache& catapult::extensions::ServiceState::m_cache
private

◆ m_config

const config::CatapultConfiguration& catapult::extensions::ServiceState::m_config
private

◆ m_counters

const std::vector<utils::DiagnosticCounter>& catapult::extensions::ServiceState::m_counters
private

◆ m_hooks

ServerHooks catapult::extensions::ServiceState::m_hooks
private

◆ m_nodes

ionet::NodeContainer& catapult::extensions::ServiceState::m_nodes
private

◆ m_nodeSubscriber

subscribers::NodeSubscriber& catapult::extensions::ServiceState::m_nodeSubscriber
private

◆ m_packetHandlers

ionet::ServerPacketHandlers catapult::extensions::ServiceState::m_packetHandlers
private

◆ m_packetIoPickers

net::PacketIoPickerContainer catapult::extensions::ServiceState::m_packetIoPickers
private

◆ m_pluginManager

const plugins::PluginManager& catapult::extensions::ServiceState::m_pluginManager
private

◆ m_pool

thread::MultiServicePool& catapult::extensions::ServiceState::m_pool
private

◆ m_score

LocalNodeChainScore& catapult::extensions::ServiceState::m_score
private

◆ m_state

state::CatapultState& catapult::extensions::ServiceState::m_state
private

◆ m_stateChangeSubscriber

subscribers::StateChangeSubscriber& catapult::extensions::ServiceState::m_stateChangeSubscriber
private

◆ m_storage

io::BlockStorageCache& catapult::extensions::ServiceState::m_storage
private

◆ m_tasks

std::vector<thread::Task> catapult::extensions::ServiceState::m_tasks
private

◆ m_timeSupplier

supplier<Timestamp> catapult::extensions::ServiceState::m_timeSupplier
private

◆ m_transactionStatusSubscriber

subscribers::TransactionStatusSubscriber& catapult::extensions::ServiceState::m_transactionStatusSubscriber
private

◆ m_utCache

cache::MemoryUtCacheProxy& catapult::extensions::ServiceState::m_utCache
private

The documentation for this class was generated from the following file: