|
rippled
|
Base class for backend factories. More...
#include <Factory.h>

Public Member Functions | |
| virtual | ~Factory ()=default |
| virtual std::string | getName () const =0 |
| Retrieve the name of this factory. | |
| virtual std::unique_ptr< Backend > | createInstance (size_t keyBytes, Section const ¶meters, std::size_t burstSize, Scheduler &scheduler, beast::Journal journal)=0 |
| Create an instance of this factory's backend. | |
| virtual std::unique_ptr< Backend > | createInstance (size_t keyBytes, Section const ¶meters, std::size_t burstSize, Scheduler &scheduler, nudb::context &context, beast::Journal journal) |
| Create an instance of this factory's backend. | |
|
virtualdefault |
|
pure virtual |
Retrieve the name of this factory.
Implemented in ripple::NodeStore::MemoryFactory, ripple::NodeStore::NuDBFactory, and ripple::NodeStore::NullFactory.
|
pure virtual |
Create an instance of this factory's backend.
| keyBytes | The fixed number of bytes per key. |
| parameters | A set of key/value configuration pairs. |
| burstSize | Backend burst size in bytes. |
| scheduler | The scheduler to use for running tasks. |
Implemented in ripple::NodeStore::MemoryFactory, ripple::NodeStore::NuDBFactory, and ripple::NodeStore::NullFactory.
|
virtual |
Create an instance of this factory's backend.
| keyBytes | The fixed number of bytes per key. |
| parameters | A set of key/value configuration pairs. |
| burstSize | Backend burst size in bytes. |
| scheduler | The scheduler to use for running tasks. |
| context | The context used by database. |
Reimplemented in ripple::NodeStore::NuDBFactory.