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

Public Member Functions

 NullFactory ()
 
 ~NullFactory () override
 
std::string getName () const override
 Retrieve the name of this factory. More...
 
std::unique_ptr< BackendcreateInstance (size_t, Section const &, std::size_t, Scheduler &, beast::Journal) override
 Create an instance of this factory's backend. More...
 
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. More...
 

Detailed Description

Definition at line 112 of file NullFactory.cpp.

Constructor & Destructor Documentation

◆ NullFactory()

ripple::NodeStore::NullFactory::NullFactory ( )

Definition at line 115 of file NullFactory.cpp.

◆ ~NullFactory()

ripple::NodeStore::NullFactory::~NullFactory ( )
override

Definition at line 120 of file NullFactory.cpp.

Member Function Documentation

◆ getName()

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

Retrieve the name of this factory.

Implements ripple::NodeStore::Factory.

Definition at line 126 of file NullFactory.cpp.

◆ createInstance() [1/2]

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

Definition at line 132 of file NullFactory.cpp.

◆ createInstance() [2/2]

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

Definition at line 68 of file Factory.h.