20 #ifndef RIPPLE_NODESTORE_MANAGER_H_INCLUDED
21 #define RIPPLE_NODESTORE_MANAGER_H_INCLUDED
23 #include <ripple/nodestore/DatabaseRotating.h>
24 #include <ripple/nodestore/DatabaseShard.h>
25 #include <ripple/nodestore/Factory.h>
101 Section const& backendParameters,
Holds a collection of configuration values.
Singleton for managing NodeStore factories and back ends.
Base class for backend factories.
virtual void erase(Factory &factory)=0
Remove a factory.
Manager & operator=(Manager const &)=delete
virtual void insert(Factory &factory)=0
Add a factory.
virtual ~Manager()=default
A generic endpoint for log messages.
Scheduling for asynchronous backend activity.
virtual Factory * find(std::string const &name)=0
Return a pointer to the matching factory if it exists.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual std::unique_ptr< Backend > make_Backend(Section const ¶meters, std::size_t burstSize, Scheduler &scheduler, beast::Journal journal)=0
Create a backend.
static Manager & instance()
Returns the instance of the manager singleton.
virtual std::unique_ptr< Database > make_Database(std::size_t burstSize, Scheduler &scheduler, int readThreads, Section const &backendParameters, beast::Journal journal)=0
Construct a NodeStore database.