3#include <xrpl/nodestore/DatabaseRotating.h>
A generic endpoint for log messages.
std::shared_ptr< Backend > archiveBackend_
bool isSameDB(std::uint32_t, std::uint32_t) override
DatabaseRotatingImp(DatabaseRotatingImp const &)=delete
std::int32_t getWriteLoad() const override
Retrieve the estimated number of pending write operations.
void importDatabase(Database &source) override
Import objects from another database.
std::shared_ptr< Backend > writableBackend_
DatabaseRotatingImp & operator=(DatabaseRotatingImp const &)=delete
void rotate(std::unique_ptr< NodeStore::Backend > &&newBackend, std::function< void(std::string const &writableName, std::string const &archiveName)> const &f) override
Rotates the backends.
std::string getName() const override
Retrieve the name associated with this backend.
void for_each(std::function< void(std::shared_ptr< NodeObject >)> f) override
Visit every object in the database This is usually called during import.
std::shared_ptr< NodeObject > fetchNodeObject(uint256 const &hash, std::uint32_t, FetchReport &fetchReport, bool duplicate) override
void store(NodeObjectType type, Blob &&data, uint256 const &hash, std::uint32_t) override
Store the object.
DatabaseRotatingImp()=delete
Persistency layer for NodeObject.
Scheduling for asynchronous backend activity.
Holds a collection of configuration values.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
NodeObjectType
The types of node objects.
Contains information about a fetch operation.