rippled
|
Base class for backend factories. More...
Public Member Functions | |
virtual | ~Factory ()=default |
virtual std::string | getName () const =0 |
Retrieve the name of this factory. More... | |
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. More... | |
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. More... | |
|
virtualdefault |
|
pure virtual |
Retrieve the name of this factory.
Implemented in ripple::NodeStore::NuDBFactory, ripple::NodeStore::NullFactory, and ripple::NodeStore::MemoryFactory.
|
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::NullFactory, ripple::NodeStore::NuDBFactory, and ripple::NodeStore::MemoryFactory.
|
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.