20 #ifndef RIPPLE_NODESTORE_DATABASEROTATINGIMP_H_INCLUDED
21 #define RIPPLE_NODESTORE_DATABASEROTATINGIMP_H_INCLUDED
23 #include <ripple/nodestore/DatabaseRotating.h>
52 std::string const& writableBackendName)>
const& f)
override;
92 bool duplicate)
override;
Holds a collection of configuration values.
void rotateWithLock(std::function< std::unique_ptr< NodeStore::Backend >(std::string const &writableBackendName)> const &f) override
Rotates the backends.
void importDatabase(Database &source) override
Import objects from another database.
std::shared_ptr< Backend > archiveBackend_
Persistency layer for NodeObject.
void sweep() override
Remove expired entries from the positive and negative caches.
std::shared_ptr< NodeObject > fetchNodeObject(uint256 const &hash, std::uint32_t, FetchReport &fetchReport, bool duplicate) override
NodeObjectType
The types of node objects.
DatabaseRotatingImp()=delete
Contains information about a fetch operation.
std::string getName() const override
Retrieve the name associated with this backend.
std::int32_t getWriteLoad() const override
Retrieve the estimated number of pending write operations.
bool storeLedger(std::shared_ptr< Ledger const > const &srcLedger) override
Store a ledger from a different database.
A generic endpoint for log messages.
Scheduling for asynchronous backend activity.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void store(NodeObjectType type, Blob &&data, uint256 const &hash, std::uint32_t) override
Store the object.
DatabaseRotatingImp & operator=(DatabaseRotatingImp const &)=delete
bool isSameDB(std::uint32_t, std::uint32_t) override
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< Backend > writableBackend_