1#include <xrpl/nodestore/Factory.h>
2#include <xrpl/nodestore/Manager.h>
23 open(
bool createIfMissing)
override
A generic endpoint for log messages.
A backend used for the NodeStore.
Base class for backend factories.
Singleton for managing NodeStore factories and back ends.
virtual void insert(Factory &factory)=0
Add a factory.
void for_each(std::function< void(std::shared_ptr< NodeObject >)> f) override
Visit every object in the database This is usually called during import.
int fdRequired() const override
Returns the number of file descriptors the backend expects to need.
bool isOpen() override
Returns true is the database is open.
void storeBatch(Batch const &batch) override
Store a group of objects.
void close() override
Close the backend.
int getWriteLoad() override
Estimate the number of write operations pending.
void open(bool createIfMissing) override
Open the backend.
Status fetch(void const *, std::shared_ptr< NodeObject > *) override
Fetch a single object.
void setDeletePath() override
Remove contents on disk upon destruction.
std::string getName() override
Get the human-readable name of this backend.
std::pair< std::vector< std::shared_ptr< NodeObject > >, Status > fetchBatch(std::vector< uint256 const * > const &hashes) override
Fetch a batch synchronously.
void store(std::shared_ptr< NodeObject > const &object) override
Store a single object.
std::unique_ptr< Backend > createInstance(size_t, Section const &, std::size_t, Scheduler &, beast::Journal) override
Create an instance of this factory's backend.
NullFactory(Manager &manager)
std::string getName() const override
Retrieve the name of this factory.
Scheduling for asynchronous backend activity.
Holds a collection of configuration values.
void registerNullFactory(Manager &manager)
Status
Return codes from Backend operations.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.