|
rippled
|
Ledger replay client side. More...

Ledger replay client side.
It creates the LedgerReplayer which has the client side logic. The client side and server side message handlers are connect via the peerSet to pass the requests and responses. It also has utility functions for checking task status
Definition at line 568 of file LedgerReplay_test.cpp.
| xrpl::test::LedgerReplayClient::LedgerReplayClient | ( | beast::unit_test::suite & | suite, |
| LedgerServer & | server, | ||
| PeerSetBehavior | behavior = PeerSetBehavior::Good, |
||
| InboundLedgersBehavior | inboundBhvr = InboundLedgersBehavior::Good, |
||
| PeerFeature | peerFeature = PeerFeature::LedgerReplayEnabled |
||
| ) |
Definition at line 571 of file LedgerReplay_test.cpp.
| void xrpl::test::LedgerReplayClient::addLedger | ( | std::shared_ptr< Ledger const > const & | l | ) |
Definition at line 598 of file LedgerReplay_test.cpp.
| bool xrpl::test::LedgerReplayClient::haveLedgers | ( | uint256 const & | finishLedgerHash, |
| int | totalReplay | ||
| ) |
Definition at line 604 of file LedgerReplay_test.cpp.
| bool xrpl::test::LedgerReplayClient::waitForLedgers | ( | uint256 const & | finishLedgerHash, |
| int | totalReplay | ||
| ) |
Definition at line 619 of file LedgerReplay_test.cpp.
| bool xrpl::test::LedgerReplayClient::waitForDone | ( | ) |
Definition at line 633 of file LedgerReplay_test.cpp.
| std::vector< std::shared_ptr< LedgerReplayTask > > xrpl::test::LedgerReplayClient::getTasks | ( | ) |
Definition at line 659 of file LedgerReplay_test.cpp.
| std::shared_ptr< LedgerReplayTask > xrpl::test::LedgerReplayClient::findTask | ( | uint256 const & | hash, |
| int | totalReplay | ||
| ) |
Definition at line 666 of file LedgerReplay_test.cpp.
| std::size_t xrpl::test::LedgerReplayClient::countDeltas | ( | ) |
Definition at line 680 of file LedgerReplay_test.cpp.
| std::size_t xrpl::test::LedgerReplayClient::countSkipLists | ( | ) |
Definition at line 687 of file LedgerReplay_test.cpp.
| bool xrpl::test::LedgerReplayClient::countsAsExpected | ( | std::size_t | tasks, |
| std::size_t | skipLists, | ||
| std::size_t | deltas | ||
| ) |
Definition at line 694 of file LedgerReplay_test.cpp.
| std::shared_ptr< SkipListAcquire > xrpl::test::LedgerReplayClient::findSkipListAcquire | ( | uint256 const & | hash | ) |
Definition at line 706 of file LedgerReplay_test.cpp.
| std::shared_ptr< LedgerDeltaAcquire > xrpl::test::LedgerReplayClient::findLedgerDeltaAcquire | ( | uint256 const & | hash | ) |
Definition at line 716 of file LedgerReplay_test.cpp.
| TaskStatus xrpl::test::LedgerReplayClient::taskStatus | ( | std::shared_ptr< T > const & | t | ) |
Definition at line 727 of file LedgerReplay_test.cpp.
| bool xrpl::test::LedgerReplayClient::asExpected | ( | std::shared_ptr< LedgerReplayTask > const & | task, |
| TaskStatus | taskExpect, | ||
| TaskStatus | skiplistExpect, | ||
| std::vector< TaskStatus > const & | deltaExpects | ||
| ) |
Definition at line 737 of file LedgerReplay_test.cpp.
| bool xrpl::test::LedgerReplayClient::asExpected | ( | uint256 const & | hash, |
| int | totalReplay, | ||
| TaskStatus | taskExpect, | ||
| TaskStatus | skiplistExpect, | ||
| std::vector< TaskStatus > const & | deltaExpects | ||
| ) |
Definition at line 762 of file LedgerReplay_test.cpp.
| bool xrpl::test::LedgerReplayClient::checkStatus | ( | uint256 const & | hash, |
| int | totalReplay, | ||
| TaskStatus | taskExpect, | ||
| TaskStatus | skiplistExpect, | ||
| std::vector< TaskStatus > const & | deltaExpects | ||
| ) |
Definition at line 781 of file LedgerReplay_test.cpp.
| bool xrpl::test::LedgerReplayClient::waitAndCheckStatus | ( | uint256 const & | hash, |
| int | totalReplay, | ||
| TaskStatus | taskExpect, | ||
| TaskStatus | skiplistExpect, | ||
| std::vector< TaskStatus > const & | deltaExpects | ||
| ) |
Definition at line 800 of file LedgerReplay_test.cpp.
| jtx::Env xrpl::test::LedgerReplayClient::env |
Definition at line 814 of file LedgerReplay_test.cpp.
| Application& xrpl::test::LedgerReplayClient::app |
Definition at line 815 of file LedgerReplay_test.cpp.
| LedgerMaster& xrpl::test::LedgerReplayClient::ledgerMaster |
Definition at line 816 of file LedgerReplay_test.cpp.
| MagicInboundLedgers xrpl::test::LedgerReplayClient::inboundLedgers |
Definition at line 817 of file LedgerReplay_test.cpp.
| LedgerReplayMsgHandler xrpl::test::LedgerReplayClient::serverMsgHandler |
Definition at line 818 of file LedgerReplay_test.cpp.
| LedgerReplayMsgHandler xrpl::test::LedgerReplayClient::clientMsgHandler |
Definition at line 819 of file LedgerReplay_test.cpp.
| LedgerReplayer xrpl::test::LedgerReplayClient::replayer |
Definition at line 820 of file LedgerReplay_test.cpp.