CatapultServer  v0.5.0.1 (Elephant)
catapult::local::CatapultSystemState Class Reference

Catapult system state. More...

Collaboration diagram for catapult::local::CatapultSystemState:

Public Member Functions

 CatapultSystemState (const config::CatapultDataDirectory &dataDirectory)
 Creates state around dataDirectory. More...
 
bool shouldRecoverBroker () const
 true if broker should be recovered. More...
 
bool shouldRecoverServer () const
 true if server should be recovered. More...
 
consumers::CommitOperationStep commitStep () const
 Last server commit operation step that succeeded. More...
 
void reset ()
 Resets system state to indicate no crash. More...
 

Private Member Functions

std::string qualifyRootFile (const std::string &filename) const
 

Private Attributes

config::CatapultDataDirectory m_dataDirectory
 

Detailed Description

Catapult system state.

Constructor & Destructor Documentation

◆ CatapultSystemState()

catapult::local::CatapultSystemState::CatapultSystemState ( const config::CatapultDataDirectory dataDirectory)
explicit

Creates state around dataDirectory.

Member Function Documentation

◆ commitStep()

consumers::CommitOperationStep catapult::local::CatapultSystemState::commitStep ( ) const

Last server commit operation step that succeeded.

Here is the call graph for this function:

◆ qualifyRootFile()

std::string catapult::local::CatapultSystemState::qualifyRootFile ( const std::string &  filename) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

void catapult::local::CatapultSystemState::reset ( )

Resets system state to indicate no crash.

Here is the call graph for this function:

◆ shouldRecoverBroker()

bool catapult::local::CatapultSystemState::shouldRecoverBroker ( ) const

true if broker should be recovered.

Here is the call graph for this function:

◆ shouldRecoverServer()

bool catapult::local::CatapultSystemState::shouldRecoverServer ( ) const

true if server should be recovered.

Here is the call graph for this function:

Member Data Documentation

◆ m_dataDirectory

config::CatapultDataDirectory catapult::local::CatapultSystemState::m_dataDirectory
private

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