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

Serializes local node state. More...

Collaboration diagram for catapult::extensions::LocalNodeStateSerializer:

Public Member Functions

 LocalNodeStateSerializer (const config::CatapultDirectory &directory)
 Creates a serializer around specified directory. More...
 
void save (const cache::CatapultCache &cache, const state::CatapultState &state, const model::ChainScore &score) const
 Saves state composed of cache, state and score. More...
 
void save (const cache::CatapultCacheDelta &cacheDelta, const std::vector< std::unique_ptr< const cache::CacheStorage >> &cacheStorages, const state::CatapultState &state, const model::ChainScore &score, Height height) const
 Saves state composed of cacheDelta, state, score and height using cacheStorages. More...
 
void moveTo (const config::CatapultDirectory &destinationDirectory)
 Moves serialized state to destinationDirectory. More...
 

Private Attributes

config::CatapultDirectory m_directory
 

Detailed Description

Serializes local node state.

Constructor & Destructor Documentation

◆ LocalNodeStateSerializer()

catapult::extensions::LocalNodeStateSerializer::LocalNodeStateSerializer ( const config::CatapultDirectory directory)
explicit

Creates a serializer around specified directory.

Member Function Documentation

◆ moveTo()

void catapult::extensions::LocalNodeStateSerializer::moveTo ( const config::CatapultDirectory destinationDirectory)

Moves serialized state to destinationDirectory.

Here is the caller graph for this function:

◆ save() [1/2]

void catapult::extensions::LocalNodeStateSerializer::save ( const cache::CatapultCache cache,
const state::CatapultState state,
const model::ChainScore score 
) const

Saves state composed of cache, state and score.

Here is the caller graph for this function:

◆ save() [2/2]

void catapult::extensions::LocalNodeStateSerializer::save ( const cache::CatapultCacheDelta cacheDelta,
const std::vector< std::unique_ptr< const cache::CacheStorage >> &  cacheStorages,
const state::CatapultState state,
const model::ChainScore score,
Height  height 
) const

Saves state composed of cacheDelta, state, score and height using cacheStorages.

Member Data Documentation

◆ m_directory

config::CatapultDirectory catapult::extensions::LocalNodeStateSerializer::m_directory
private

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