3#include <xrpl/basics/chrono.h>
4#include <xrpl/config/BasicConfig.h>
5#include <xrpl/config/Constants.h>
6#include <xrpl/nodestore/DummyScheduler.h>
7#include <xrpl/nodestore/Manager.h>
8#include <xrpl/shamap/Family.h>
30 "App family tree node cache",
32 std::chrono::minutes{1},
A generic endpoint for log messages.
Manual clock implementation.
Family(Family const &)=delete
Persistency layer for NodeObject.
Simple NodeStore Scheduler that just performs the tasks synchronously.
static Manager & instance()
Returns the instance of the manager singleton.
virtual std::unique_ptr< Database > makeDatabase(std::size_t burstSize, Scheduler &scheduler, int readThreads, Section const &backendParameters, beast::Journal journal)=0
Construct a NodeStore database.
Holds a collection of configuration values.
void set(std::string const &key, std::string const &value)
Set a key/value pair.
std::shared_ptr< TreeNodeCache > tnCache_
std::unique_ptr< NodeStore::Database > db_
void missingNodeAcquireByHash(uint256 const &refHash, std::uint32_t refNum) override
Acquire ledger that has a missing node by ledger hash.
NodeStore::Database const & db() const override
std::shared_ptr< FullBelowCache > getFullBelowCache() override
Return a pointer to the Family Full Below Cache.
std::shared_ptr< TreeNodeCache > getTreeNodeCache() override
Return a pointer to the Family Tree Node Cache.
beast::ManualClock< std::chrono::steady_clock > clock()
TestNodeFamily(beast::Journal j)
std::shared_ptr< FullBelowCache > fbCache_
NodeStore::DummyScheduler scheduler_
void missingNodeAcquireBySeq(std::uint32_t refNum, uint256 const &nodeHash) override
Acquire ledger that has a missing node by ledger sequence.
beast::Journal const & journal() override
NodeStore::Database & db() override
detail::BasicFullBelowCache FullBelowCache
TaggedCache< uint256, SHAMapTreeNode, false, intr_ptr::SharedWeakUnionPtr< SHAMapTreeNode >, SHAMapTreeNodePtr > TreeNodeCache
constexpr auto megabytes(T value) noexcept
beast::ManualClock< std::chrono::steady_clock > TestStopwatch
A manual Stopwatch for unit tests.
XRPL_NO_SANITIZE_ADDRESS void Throw(Args &&... args)
static constexpr auto kType
static constexpr auto kPath