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

RAII owner of a NodeStore Backend opened on a private temporary directory. More...

#include <NodeStoreBench.h>

Collaboration diagram for xrpl::node_store::BackendHarness:

Public Member Functions

 BackendHarness (std::string const &configString)
 ~BackendHarness ()

Public Attributes

TempDir tempDir
 Declared first so it is destroyed last.
DummyScheduler scheduler
beast::Journal journal {beast::Journal::getNullSink()}
std::unique_ptr< Backendbackend

Detailed Description

RAII owner of a NodeStore Backend opened on a private temporary directory.

Definition at line 228 of file NodeStoreBench.h.

Constructor & Destructor Documentation

◆ BackendHarness()

xrpl::node_store::BackendHarness::BackendHarness ( std::string const & configString)
explicit

Definition at line 235 of file NodeStoreBench.h.

◆ ~BackendHarness()

xrpl::node_store::BackendHarness::~BackendHarness ( )

Definition at line 247 of file NodeStoreBench.h.

Member Data Documentation

◆ tempDir

TempDir xrpl::node_store::BackendHarness::tempDir

Declared first so it is destroyed last.

Definition at line 230 of file NodeStoreBench.h.

◆ scheduler

DummyScheduler xrpl::node_store::BackendHarness::scheduler

Definition at line 231 of file NodeStoreBench.h.

◆ journal

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

Definition at line 232 of file NodeStoreBench.h.

◆ backend

std::unique_ptr<Backend> xrpl::node_store::BackendHarness::backend

Definition at line 233 of file NodeStoreBench.h.