20 #ifndef RIPPLE_NODESTORE_DATABASENODEIMP_H_INCLUDED
21 #define RIPPLE_NODESTORE_DATABASENODEIMP_H_INCLUDED
23 #include <ripple/basics/chrono.h>
24 #include <ripple/nodestore/Database.h>
45 :
Database(name, parent, scheduler, readThreads, config, j)
Holds a collection of configuration values.
std::shared_ptr< Backend > backend_
std::int32_t getWriteLoad() const override
Retrieve the estimated number of pending write operations.
Persistency layer for NodeObject.
NodeObjectType
The types of node objects.
std::shared_ptr< NodeObject > fetchNodeObject(uint256 const &hash, std::uint32_t, FetchReport &fetchReport) override
Contains information about a fetch operation.
void for_each(std::function< void(std::shared_ptr< NodeObject >)> f) override
Visit every object in the database This is usually called during import.
void setParent(Stoppable &parent)
Set the parent of this Stoppable.
Provides an interface for starting and stopping.
void importInternal(Backend &dstBackend, Database &srcDB)
A generic endpoint for log messages.
Scheduling for asynchronous backend activity.
DatabaseNodeImp & operator=(DatabaseNodeImp const &)=delete
bool isSameDB(std::uint32_t, std::uint32_t) override
void store(NodeObjectType type, Blob &&data, uint256 const &hash, std::uint32_t) override
Store the object.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual bool storeLedger(std::shared_ptr< Ledger const > const &srcLedger)=0
Store a ledger from a different database.
bool storeLedger(std::shared_ptr< Ledger const > const &srcLedger) override
Store a ledger from a different database.
void sweep() override
Remove expired entries from the positive and negative caches.
DatabaseNodeImp(std::string const &name, Scheduler &scheduler, int readThreads, Stoppable &parent, std::shared_ptr< Backend > backend, Section const &config, beast::Journal j)
std::string getName() const override
Retrieve the name associated with this backend.
~DatabaseNodeImp() override