20 #ifndef RIPPLE_NODESTORE_DATABASEROTATINGIMP_H_INCLUDED
21 #define RIPPLE_NODESTORE_DATABASEROTATINGIMP_H_INCLUDED
23 #include <ripple/nodestore/DatabaseRotating.h>
55 std::string const& writableBackendName)>
const& f)
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.
std::shared_ptr< Backend > archiveBackend_
Persistency layer for NodeObject.
void sweep() override
Remove expired entries from the positive and negative caches.
Backend & getBackend() override
NodeObjectType
The types of node objects.
std::shared_ptr< Backend > const & archiveBackend
DatabaseRotatingImp()=delete
std::shared_ptr< NodeObject > fetchNodeObject(uint256 const &hash, std::uint32_t, FetchReport &fetchReport) override
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.
Provides an interface for starting and stopping.
Backends getBackends() const
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.
~DatabaseRotatingImp() override
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.
std::shared_ptr< Backend > const & writableBackend
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_
A backend used for the NodeStore.