rippled
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ripple::SHAMapStoreImp::SavedStateDB Class Reference
Collaboration diagram for ripple::SHAMapStoreImp::SavedStateDB:
Collaboration graph
[legend]

Public Member Functions

 SavedStateDB ()
 
void init (BasicConfig const &config, std::string const &dbName)
 
LedgerIndex getCanDelete ()
 
LedgerIndex setCanDelete (LedgerIndex canDelete)
 
SavedState getState ()
 
void setState (SavedState const &state)
 
void setLastRotated (LedgerIndex seq)
 

Public Attributes

soci::session sqlDb_
 
std::mutex mutex_
 
beast::Journal const journal_
 

Detailed Description

Definition at line 23 of file SHAMapStoreImp.h.

Constructor & Destructor Documentation

◆ SavedStateDB()

ripple::SHAMapStoreImp::SavedStateDB::SavedStateDB ( )
explicit

Definition at line 32 of file SHAMapStoreImp.h.

Member Function Documentation

◆ init()

void ripple::SHAMapStoreImp::SavedStateDB::init ( BasicConfig const &  config,
std::string const &  dbName 
)

Definition at line 17 of file SHAMapStoreImp.cpp.

◆ getCanDelete()

LedgerIndex ripple::SHAMapStoreImp::SavedStateDB::getCanDelete ( )

Definition at line 26 of file SHAMapStoreImp.cpp.

◆ setCanDelete()

LedgerIndex ripple::SHAMapStoreImp::SavedStateDB::setCanDelete ( LedgerIndex  canDelete)

Definition at line 34 of file SHAMapStoreImp.cpp.

◆ getState()

SavedState ripple::SHAMapStoreImp::SavedStateDB::getState ( )

Definition at line 42 of file SHAMapStoreImp.cpp.

◆ setState()

void ripple::SHAMapStoreImp::SavedStateDB::setState ( SavedState const &  state)

Definition at line 50 of file SHAMapStoreImp.cpp.

◆ setLastRotated()

void ripple::SHAMapStoreImp::SavedStateDB::setLastRotated ( LedgerIndex  seq)

Definition at line 57 of file SHAMapStoreImp.cpp.

Member Data Documentation

◆ sqlDb_

soci::session ripple::SHAMapStoreImp::SavedStateDB::sqlDb_

Definition at line 26 of file SHAMapStoreImp.h.

◆ mutex_

std::mutex ripple::SHAMapStoreImp::SavedStateDB::mutex_

Definition at line 27 of file SHAMapStoreImp.h.

◆ journal_

beast::Journal const ripple::SHAMapStoreImp::SavedStateDB::journal_

Definition at line 28 of file SHAMapStoreImp.h.