CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 namespace cache {
class CatapultCache; }
29 namespace crypto {
class KeyPair; }
30 namespace extensions {
class ProcessBootstrapper; }
31 namespace ionet {
class NodeContainerView; }
35 namespace catapult {
namespace local {
91 std::unique_ptr<extensions::ProcessBootstrapper>&& pBootstrapper);
std::unique_ptr< subscribers::TransactionStatusSubscriber > m_pTransactionStatusSubscriber
Definition: LocalNode.cpp:245
const utils::DiagnosticCounterId & id() const
Gets the counter id.
Definition: LocalNode.h:51
plugins::PluginManager & m_pluginManager
Definition: LocalNode.cpp:249
std::unique_ptr< subscribers::StateChangeSubscriber > m_pStateChangeSubscriber
Definition: LocalNode.cpp:246
A diagnostic counter id.
Definition: DiagnosticCounterId.h:27
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
virtual ionet::NodeContainerView nodes() const =0
Gets the current nodes.
def debug(*args)
Definition: Parser.py:46
config::CatapultDataDirectory m_dataDirectory
Definition: LocalNode.cpp:236
io::BlockChangeSubscriber * m_pBlockChangeSubscriber
Definition: LocalNode.cpp:234
extensions::ServiceLocator m_serviceLocator
Definition: LocalNode.cpp:232
void SeedNodeContainer(ionet::NodeContainer &nodes, const extensions::ProcessBootstrapper &bootstrapper)
Seeds nodes with node information from bootstrapper.
Definition: NodeUtils.cpp:46
std::unique_ptr< extensions::ProcessBootstrapper > m_pBootstrapper
Definition: LocalNode.cpp:231
void SaveStateToDirectoryWithCheckpointing(const config::CatapultDataDirectory &dataDirectory, const config::NodeConfiguration &nodeConfig, const cache::CatapultCache &cache, const state::CatapultState &state, const model::ChainScore &score)
Serializes state composed of cache, state and score with checkpointing to dataDirectory given nodeCon...
Definition: LocalNodeStateFileStorage.cpp:192
virtual LocalNodeCounterValues counters() const =0
Gets the current node counters.
Definition: ChainScore.h:30
std::vector< LocalNodeCounterValue > LocalNodeCounterValues
Container of local node counter values.
Definition: LocalNode.h:66
Level for logging informational events.
virtual model::ChainScore score() const =0
Gets the current chain score.
A read only view on top of node container.
Definition: NodeContainer.h:39
Represents a pair of private key with associated public key.
Definition: KeyPair.h:33
std::unique_ptr< cache::MemoryUtCacheProxy > m_pUtCache
Definition: LocalNode.cpp:243
std::unique_ptr< LocalNode > CreateLocalNode(const crypto::KeyPair &keyPair, std::unique_ptr< extensions::ProcessBootstrapper > &&pBootstrapper)
Creates and boots a local node around the specified key pair (keyPair) and bootstrapper (pBootstrappe...
Definition: LocalNode.cpp:255
std::unique_ptr< subscribers::NodeSubscriber > CreateNodeContainerSubscriberAdapter(ionet::NodeContainer &nodes)
Adapts nodes to a node subscriber.
Definition: NodeUtils.cpp:84
StateHeights LoadStateFromDirectory(const config::CatapultDirectory &directory, const LocalNodeStateRef &stateRef, const plugins::PluginManager &pluginManager)
Loads catapult state into stateRef from directory given pluginManager.
Definition: LocalNodeStateFileStorage.cpp:96
void AddMemoryCounters(std::vector< utils::DiagnosticCounter > &counters)
Adds process memory counters to counters.
Definition: MemoryCounters.cpp:89
Represents a local node.
Definition: LocalNode.h:73
Catapult process host.
Definition: ProcessHost.h:27
std::unique_ptr< subscribers::NodeSubscriber > m_pNodeSubscriber
Definition: LocalNode.cpp:247
def info(*args)
Definition: forwardsValidation.py:12
Central cache holding all sub caches.
Definition: CatapultCache.h:40
std::unique_ptr< subscribers::StateChangeSubscriber > CreateFileStateChangeStorage(std::unique_ptr< io::OutputStream > &&pOutputStream, const supplier< CacheChangesStorages > &cacheChangesStoragesSupplier)
Definition: FileStateChangeStorage.cpp:77
Height Cache
Cache height.
Definition: LocalNodeStateFileStorage.h:44
std::vector< plugins::PluginModule > m_pluginModules
Definition: LocalNode.cpp:230
io::BlockStorageCache m_storage
Definition: LocalNode.cpp:241
uint64_t value() const
Gets the counter value.
Definition: LocalNode.h:56
bool HasSerializedState(const config::CatapultDirectory &directory)
Returns true if serialized state is present in directory.
Definition: LocalNodeStateFileStorage.cpp:55
A diagnostic counter.
Definition: DiagnosticCounter.h:28
extensions::LocalNodeChainScore m_score
Definition: LocalNode.cpp:242
utils::DiagnosticCounterId m_id
Definition: LocalNode.h:61
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
Definition: LocalNode.h:41
cache::CatapultCache m_catapultCache
Definition: LocalNode.cpp:239
cache::MemoryCacheOptions GetUtCacheOptions(const config::NodeConfiguration &config)
Extracts unconfirmed transactions cache options from config.
Definition: extensions/ConfigurationUtils.cpp:26
ionet::Node Node
Definition: PacketWriters.cpp:45
model::ChainScore ChainScore
Definition: tools/health/main.cpp:43
std::vector< plugins::PluginModule > LoadAllPlugins(extensions::ProcessBootstrapper &bootstrapper)
Loads all plugins using bootstrapper.
Definition: HostUtils.cpp:64
Definition: AddressExtractionExtension.cpp:28
virtual const cache::CatapultCache & cache() const =0
Gets the current cache.
uint64_t m_value
Definition: LocalNode.h:62
const config::CatapultConfiguration & m_config
Definition: LocalNode.cpp:235
ionet::NodeContainer m_nodes
Definition: LocalNode.cpp:237
LocalNodeCounterValue(const utils::DiagnosticCounter &counter)
Creates a counter value from counter.
Definition: LocalNode.h:44
bool m_isBooted
Definition: LocalNode.cpp:251
std::vector< utils::DiagnosticCounter > m_counters
Definition: LocalNode.cpp:250
state::CatapultState m_catapultState
Definition: LocalNode.cpp:240