xrpld
Loading...
Searching...
No Matches
xrpl::node_store::NuDBFactory Class Reference
Inheritance diagram for xrpl::node_store::NuDBFactory:
Collaboration diagram for xrpl::node_store::NuDBFactory:

Public Member Functions

 NuDBFactory (Manager &manager)
std::string getName () const override
 Retrieve the name of this factory.
std::unique_ptr< BackendcreateInstance (size_t keyBytes, Section const &keyValues, std::size_t burstSize, Scheduler &scheduler, beast::Journal journal) override
 Create an instance of this factory's backend.
std::unique_ptr< BackendcreateInstance (size_t keyBytes, Section const &keyValues, std::size_t burstSize, Scheduler &scheduler, nudb::context &context, beast::Journal journal) override
 Create an instance of this factory's backend.

Private Attributes

Managermanager_

Detailed Description

Definition at line 397 of file libxrpl/nodestore/backend/NuDBFactory.cpp.

Constructor & Destructor Documentation

◆ NuDBFactory()

xrpl::node_store::NuDBFactory::NuDBFactory ( Manager & manager)
explicit

Definition at line 403 of file libxrpl/nodestore/backend/NuDBFactory.cpp.

Member Function Documentation

◆ getName()

std::string xrpl::node_store::NuDBFactory::getName ( ) const
nodiscardoverridevirtual

Retrieve the name of this factory.

Implements xrpl::node_store::Factory.

Definition at line 409 of file libxrpl/nodestore/backend/NuDBFactory.cpp.

◆ createInstance() [1/2]

std::unique_ptr< Backend > xrpl::node_store::NuDBFactory::createInstance ( size_t keyBytes,
Section const & parameters,
std::size_t burstSize,
Scheduler & scheduler,
beast::Journal journal )
overridevirtual

Create an instance of this factory's backend.

Parameters
keyBytesThe fixed number of bytes per key.
parametersA set of key/value configuration pairs.
burstSizeBackend burst size in bytes.
schedulerThe scheduler to use for running tasks.
Returns
A pointer to the Backend object.

Implements xrpl::node_store::Factory.

Definition at line 415 of file libxrpl/nodestore/backend/NuDBFactory.cpp.

◆ createInstance() [2/2]

std::unique_ptr< Backend > xrpl::node_store::NuDBFactory::createInstance ( size_t keyBytes,
Section const & parameters,
std::size_t burstSize,
Scheduler & scheduler,
nudb::context & context,
beast::Journal journal )
overridevirtual

Create an instance of this factory's backend.

Parameters
keyBytesThe fixed number of bytes per key.
parametersA set of key/value configuration pairs.
burstSizeBackend burst size in bytes.
schedulerThe scheduler to use for running tasks.
contextThe context used by database.
Returns
A pointer to the Backend object.

Reimplemented from xrpl::node_store::Factory.

Definition at line 426 of file libxrpl/nodestore/backend/NuDBFactory.cpp.

Member Data Documentation

◆ manager_

Manager& xrpl::node_store::NuDBFactory::manager_
private

Definition at line 400 of file libxrpl/nodestore/backend/NuDBFactory.cpp.