xrpld
Loading...
Searching...
No Matches
xrpl::node_store::DatabaseHarness Struct Reference

RAII owner of a NodeStore Database - the application-facing wrapper around a Backend, which adds fetch/store accounting and the async read-thread pool. More...

#include <NodeStoreBench.h>

Collaboration diagram for xrpl::node_store::DatabaseHarness:

Public Member Functions

 DatabaseHarness (std::string const &configString, int readThreads)
 ~DatabaseHarness ()

Public Attributes

TempDir tempDir
DummyScheduler scheduler
beast::Journal journal {beast::Journal::getNullSink()}
std::unique_ptr< Databasedb

Detailed Description

RAII owner of a NodeStore Database - the application-facing wrapper around a Backend, which adds fetch/store accounting and the async read-thread pool.

Definition at line 258 of file NodeStoreBench.h.

Constructor & Destructor Documentation

◆ DatabaseHarness()

xrpl::node_store::DatabaseHarness::DatabaseHarness ( std::string const & configString,
int readThreads )

Definition at line 265 of file NodeStoreBench.h.

◆ ~DatabaseHarness()

xrpl::node_store::DatabaseHarness::~DatabaseHarness ( )

Definition at line 273 of file NodeStoreBench.h.

Member Data Documentation

◆ tempDir

TempDir xrpl::node_store::DatabaseHarness::tempDir

Definition at line 260 of file NodeStoreBench.h.

◆ scheduler

DummyScheduler xrpl::node_store::DatabaseHarness::scheduler

Definition at line 261 of file NodeStoreBench.h.

◆ journal

beast::Journal xrpl::node_store::DatabaseHarness::journal {beast::Journal::getNullSink()}

Definition at line 262 of file NodeStoreBench.h.

◆ db

std::unique_ptr<Database> xrpl::node_store::DatabaseHarness::db

Definition at line 263 of file NodeStoreBench.h.