rippled
Public Member Functions | List of all members
ripple::NodeStore::NuDBFactory Class Reference
Inheritance diagram for ripple::NodeStore::NuDBFactory:
Inheritance graph
[legend]
Collaboration diagram for ripple::NodeStore::NuDBFactory:
Collaboration graph
[legend]

Public Member Functions

 NuDBFactory ()
 
 ~NuDBFactory () override
 
std::string getName () const override
 Retrieve the name of this factory. More...
 
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. More...
 
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. More...
 

Detailed Description

Definition at line 369 of file NuDBFactory.cpp.

Constructor & Destructor Documentation

◆ NuDBFactory()

ripple::NodeStore::NuDBFactory::NuDBFactory ( )

Definition at line 372 of file NuDBFactory.cpp.

◆ ~NuDBFactory()

ripple::NodeStore::NuDBFactory::~NuDBFactory ( )
override

Definition at line 377 of file NuDBFactory.cpp.

Member Function Documentation

◆ getName()

std::string ripple::NodeStore::NuDBFactory::getName ( ) const
overridevirtual

Retrieve the name of this factory.

Implements ripple::NodeStore::Factory.

Definition at line 383 of file NuDBFactory.cpp.

◆ createInstance() [1/2]

std::unique_ptr<Backend> ripple::NodeStore::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 ripple::NodeStore::Factory.

Definition at line 389 of file NuDBFactory.cpp.

◆ createInstance() [2/2]

std::unique_ptr<Backend> ripple::NodeStore::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 ripple::NodeStore::Factory.

Definition at line 401 of file NuDBFactory.cpp.