xrpld
Loading...
Searching...
No Matches
xrpl::NodeStore::NullFactory Class Reference
Inheritance diagram for xrpl::NodeStore::NullFactory:
Collaboration diagram for xrpl::NodeStore::NullFactory:

Public Member Functions

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

Private Attributes

Managermanager_

Detailed Description

Definition at line 96 of file NullFactory.cpp.

Constructor & Destructor Documentation

◆ NullFactory()

xrpl::NodeStore::NullFactory::NullFactory ( Manager & manager)
explicit

Definition at line 102 of file NullFactory.cpp.

Member Function Documentation

◆ getName()

std::string xrpl::NodeStore::NullFactory::getName ( ) const
nodiscardoverridevirtual

Retrieve the name of this factory.

Implements xrpl::NodeStore::Factory.

Definition at line 108 of file NullFactory.cpp.

◆ createInstance() [1/2]

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

Definition at line 114 of file NullFactory.cpp.

◆ createInstance() [2/2]

virtual std::unique_ptr< Backend > xrpl::NodeStore::Factory::createInstance ( size_t keyBytes,
Section const & parameters,
std::size_t burstSize,
Scheduler & scheduler,
nudb::context & context,
beast::Journal journal )
virtualinherited

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 in xrpl::NodeStore::NuDBFactory.

Definition at line 51 of file Factory.h.

Member Data Documentation

◆ manager_

Manager& xrpl::NodeStore::NullFactory::manager_
private

Definition at line 99 of file NullFactory.cpp.