|
xrpld
|
#include <common.h>


Public Member Functions | |
| TestNodeFamily (beast::Journal j, int readThreads=1) | |
| node_store::Database & | db () override |
| node_store::Database const & | db () const override |
| beast::Journal const & | journal () 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. | |
| void | sweep () override |
| void | missingNodeAcquireBySeq (std::uint32_t refNum, UInt256 const &nodeHash) override |
| Record the report and throw, standing in for Family's real acquisition machinery. | |
| void | missingNodeAcquireByHash (UInt256 const &refHash, std::uint32_t refNum) override |
| Throw, standing in for Family's real acquisition machinery. | |
| std::size_t | missingBySeqReports () const |
| How many times a map of this family has withdrawn its claim of being complete in the database. | |
| std::uint32_t | missingBySeqRefNum () const |
| The ledger sequence the most recent such report named. | |
| void | reset () override |
| TestStopwatch & | clock () |
Private Attributes | |
| std::unique_ptr< node_store::Database > | db_ |
| TestStopwatch | clock_ |
| std::shared_ptr< FullBelowCache > | fbCache_ |
| std::shared_ptr< TreeNodeCache > | tnCache_ |
| node_store::DummyScheduler | scheduler_ |
| beast::Journal const | j_ |
| std::atomic< std::size_t > | missingBySeqReports_ = 0 |
| std::atomic< std::uint32_t > | missingBySeqRefNum_ = 0 |
|
explicit |
|
overridevirtual |
Implements xrpl::Family.
|
nodiscardoverridevirtual |
Implements xrpl::Family.
|
overridevirtual |
Implements xrpl::Family.
|
overridevirtual |
Return a pointer to the Family Full Below Cache.
Implements xrpl::Family.
|
overridevirtual |
Return a pointer to the Family Tree Node Cache.
Implements xrpl::Family.
|
overridevirtual |
Implements xrpl::Family.
|
overridevirtual |
Record the report and throw, standing in for Family's real acquisition machinery.
| refNum | Sequence of the ledger with the missing node. Recorded, and readable through missingBySeqRefNum(). |
| nodeHash | Hash of the missing node. Unused. |
Implements xrpl::Family.
|
overridevirtual |
Throw, standing in for Family's real acquisition machinery.
Uncounted.
| refHash | Hash of the ledger with the missing node. Unused. |
| refNum | Sequence of the ledger with the missing node. Unused. |
Implements xrpl::Family.
|
nodiscard |
How many times a map of this family has withdrawn its claim of being complete in the database.
Counted per family, not per map.
|
nodiscard |
|
overridevirtual |
Implements xrpl::Family.
| TestStopwatch & xrpl::tests::TestNodeFamily::clock | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |