20 #ifndef RIPPLE_APP_MISC_SHAMAPSTORE_H_INCLUDED
21 #define RIPPLE_APP_MISC_SHAMAPSTORE_H_INCLUDED
23 #include <ripple/app/ledger/Ledger.h>
24 #include <ripple/nodestore/Manager.h>
25 #include <ripple/protocol/ErrorCodes.h>
30 class TransactionMaster;
virtual std::unique_ptr< NodeStore::Database > makeNodeStore(int readThreads)=0
virtual std::optional< LedgerIndex > minimumOnline() const =0
The minimum ledger to try and maintain in our database.
virtual ~SHAMapStore()=default
virtual void onLedgerClosed(std::shared_ptr< Ledger const > const &ledger)=0
Called by LedgerMaster every time a ledger validates.
class to create database, launch online delete thread, and related SQLite database
virtual void rendezvous() const =0
virtual LedgerIndex getLastRotated()=0
Maximum ledger that has been deleted, or will be deleted if currently in the act of online deletion.
virtual bool advisoryDelete() const =0
Whether advisory delete is enabled.
virtual std::uint32_t clampFetchDepth(std::uint32_t fetch_depth) const =0
virtual LedgerIndex setCanDelete(LedgerIndex canDelete)=0
Highest ledger that may be deleted.
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.
virtual LedgerIndex getCanDelete()=0
Highest ledger that may be deleted.
virtual int fdRequired() const =0
Returns the number of file descriptors that are needed.
std::unique_ptr< SHAMapStore > make_SHAMapStore(Application &app, NodeStore::Scheduler &scheduler, beast::Journal journal)