Files
rippled/classripple_1_1LedgerReplayer.html
2021-11-19 13:45:43 +00:00

663 lines
41 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: ripple::LedgerReplayer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceripple.html">ripple</a></li><li class="navelem"><a class="el" href="classripple_1_1LedgerReplayer.html">LedgerReplayer</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classripple_1_1LedgerReplayer-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">ripple::LedgerReplayer Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>Manages the lifetime of ledger replay tasks.
<a href="classripple_1_1LedgerReplayer.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for ripple::LedgerReplayer:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1LedgerReplayer__coll__graph.png" border="0" usemap="#ripple_1_1LedgerReplayer_coll__map" alt="Collaboration graph"/></div>
<map name="ripple_1_1LedgerReplayer_coll__map" id="ripple_1_1LedgerReplayer_coll__map">
<area shape="rect" title="Manages the lifetime of ledger replay tasks." alt="" coords="3298,366,3466,393"/>
<area shape="rect" href="classripple_1_1LedgerReplayTask.html" title=" " alt="" coords="3628,255,3812,282"/>
<area shape="rect" href="classripple_1_1Application.html" title=" " alt="" coords="1311,218,1451,245"/>
<area shape="rect" href="classripple_1_1TimeoutCounter.html" title="This class is an &quot;active&quot; object." alt="" coords="1780,326,1952,353"/>
<area shape="rect" href="classbeast_1_1PropertyStream_1_1Source.html" title="Subclasses can be called to write to a stream and have children." alt="" coords="889,200,1057,241"/>
<area shape="rect" href="classbeast_1_1PropertyStream_1_1Item.html" title=" " alt="" coords="1297,144,1465,185"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html" title="STL class." alt="" coords="576,258,735,285"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title="STL class." alt="" coords="612,90,699,117"/>
<area shape="rect" href="structripple_1_1TimeoutCounter_1_1QueueJobParameter.html" title=" " alt="" coords="1087,57,1259,99"/>
<area shape="rect" href="classbeast_1_1List.html" title=" " alt="" coords="563,184,748,225"/>
<area shape="rect" href="classbeast_1_1detail_1_1ListNode.html" title=" " alt="" coords="275,177,457,233"/>
<area shape="rect" href="classbeast_1_1detail_1_1ListNode.html" title=" " alt="" coords="5,184,173,225"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="322,355,410,382"/>
<area shape="rect" href="classripple_1_1base__uint.html" title="Integers of any length that is a multiple of 32&#45;bits." alt="" coords="1311,509,1452,551"/>
<area shape="rect" title=" " alt="" coords="900,110,1047,137"/>
<area shape="rect" href="classripple_1_1InboundLedgers.html" title="Manages the lifetime of inbound ledgers." alt="" coords="1781,275,1951,302"/>
<area shape="rect" href="classripple_1_1SkipListAcquire.html" title="Manage the retrieval of a skip list in a ledger from the network." alt="" coords="2197,982,2363,1009"/>
<area shape="rect" href="classripple_1_1LedgerDeltaAcquire.html" title="Manage the retrieval of a ledger delta (header and transactions) from the network." alt="" coords="2183,646,2377,673"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="2908,836,3075,907"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="2897,507,3085,577"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/array.html" title=" " alt="" coords="889,668,1057,709"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="604,817,707,843"/>
<area shape="rect" href="structripple_1_1SkipListAcquire_1_1SkipListData.html" title=" " alt="" coords="890,1124,1057,1165"/>
<area shape="rect" href="classripple_1_1LedgerReplayTask_1_1TaskParameter.html" title=" " alt="" coords="1081,432,1265,473"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/map.html" title=" " alt="" coords="1087,761,1259,817"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/weak_ptr.html" title=" " alt="" coords="2511,911,2673,952"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="2703,964,2873,1005"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/chrono/duration.html" title=" " alt="" coords="1289,319,1473,346"/>
<area shape="rect" href="classbeast_1_1Journal.html" title="A generic endpoint for log messages." alt="" coords="1326,375,1437,402"/>
<area shape="rect" href="classbeast_1_1Journal_1_1Sink.html" title="Abstraction for the underlying message destination." alt="" coords="900,375,1047,402"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html" title=" " alt="" coords="1755,1185,1977,1227"/>
<area shape="rect" href="classripple_1_1CountedObject.html" title=" " alt="" coords="1785,1005,1947,1047"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="1497,1114,1717,1170"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="1765,889,1967,915"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/utility/functional/function.html" title=" " alt="" coords="1330,899,1433,926"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html" title=" " alt="" coords="1781,940,1951,981"/>
<area shape="rect" href="classripple_1_1PeerSet.html" title="Supports data retrieval by managing a set of peers." alt="" coords="1323,950,1440,977"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html" title=" " alt="" coords="2906,325,3077,367"/>
<area shape="rect" href="classripple_1_1PeerSetBuilder.html" title=" " alt="" coords="2511,337,2673,363"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/thread/mutex.html" title="STL class." alt="" coords="2945,602,3037,629"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="4191,337,4445,379"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="3907,260,4077,301"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html" title=" " alt="" coords="3263,224,3501,265"/>
<area shape="rect" href="classripple_1_1CountedObject.html" title=" " alt="" coords="3297,289,3467,331"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="3249,5,3515,47"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="1781,145,1951,187"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/weak_ptr.html" title=" " alt="" coords="2505,599,2679,640"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/enable_shared_from_this.html" title=" " alt="" coords="1741,605,1991,647"/>
<area shape="rect" href="classripple_1_1CountedObject.html" title=" " alt="" coords="1776,671,1956,712"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/container/set.html" title=" " alt="" coords="1775,540,1957,581"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a64acf661a108792c979d2c3dcd52a97d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a64acf661a108792c979d2c3dcd52a97d">LedgerReplayer</a> (<a class="el" href="classripple_1_1Application.html">Application</a> &amp;app, <a class="el" href="classripple_1_1InboundLedgers.html">InboundLedgers</a> &amp;inboundLedgers, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt; <a class="el" href="classripple_1_1PeerSetBuilder.html">PeerSetBuilder</a> &gt; peerSetBuilder)</td></tr>
<tr class="separator:a64acf661a108792c979d2c3dcd52a97d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab627d07265d6b06c75788bfa6919b610"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#ab627d07265d6b06c75788bfa6919b610">~LedgerReplayer</a> ()</td></tr>
<tr class="separator:ab627d07265d6b06c75788bfa6919b610"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a889210425eeef3f27953527a5f21520a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a889210425eeef3f27953527a5f21520a">replay</a> (<a class="el" href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7">InboundLedger::Reason</a> r, <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> const &amp;finishLedgerHash, <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> totalNumLedgers)</td></tr>
<tr class="memdesc:a889210425eeef3f27953527a5f21520a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Replay a range of ledgers. <a href="classripple_1_1LedgerReplayer.html#a889210425eeef3f27953527a5f21520a">More...</a><br /></td></tr>
<tr class="separator:a889210425eeef3f27953527a5f21520a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a117a8fd4c54900b486116583ff8466ca"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a117a8fd4c54900b486116583ff8466ca">createDeltas</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1LedgerReplayTask.html">LedgerReplayTask</a> &gt; task)</td></tr>
<tr class="memdesc:a117a8fd4c54900b486116583ff8466ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create <a class="el" href="classripple_1_1LedgerDeltaAcquire.html" title="Manage the retrieval of a ledger delta (header and transactions) from the network.">LedgerDeltaAcquire</a> subtasks for the <a class="el" href="classripple_1_1LedgerReplayTask.html">LedgerReplayTask</a> task. <a href="classripple_1_1LedgerReplayer.html#a117a8fd4c54900b486116583ff8466ca">More...</a><br /></td></tr>
<tr class="separator:a117a8fd4c54900b486116583ff8466ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f1036aacf255756c523a2cb17986bb4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a7f1036aacf255756c523a2cb17986bb4">gotSkipList</a> (<a class="el" href="structripple_1_1LedgerInfo.html">LedgerInfo</a> const &amp;info, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1SHAMapItem.html">SHAMapItem</a> const &gt; const &amp;data)</td></tr>
<tr class="memdesc:a7f1036aacf255756c523a2cb17986bb4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Process a skip list (extracted from a TMProofPathResponse message) <a href="classripple_1_1LedgerReplayer.html#a7f1036aacf255756c523a2cb17986bb4">More...</a><br /></td></tr>
<tr class="separator:a7f1036aacf255756c523a2cb17986bb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8652a285d05995ff346e6ae2944bef97"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a8652a285d05995ff346e6ae2944bef97">gotReplayDelta</a> (<a class="el" href="structripple_1_1LedgerInfo.html">LedgerInfo</a> const &amp;info, <a class="elRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1STTx.html">STTx</a> const &gt;&gt; &amp;&amp;txns)</td></tr>
<tr class="memdesc:a8652a285d05995ff346e6ae2944bef97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Process a ledger delta (extracted from a TMReplayDeltaResponse message) <a href="classripple_1_1LedgerReplayer.html#a8652a285d05995ff346e6ae2944bef97">More...</a><br /></td></tr>
<tr class="separator:a8652a285d05995ff346e6ae2944bef97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14d52623cda41f42570ca30239eae356"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a14d52623cda41f42570ca30239eae356">sweep</a> ()</td></tr>
<tr class="memdesc:a14d52623cda41f42570ca30239eae356"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove completed tasks. <a href="classripple_1_1LedgerReplayer.html#a14d52623cda41f42570ca30239eae356">More...</a><br /></td></tr>
<tr class="separator:a14d52623cda41f42570ca30239eae356"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ddb27e3488d9a8546b7d897d25dc4f1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a5ddb27e3488d9a8546b7d897d25dc4f1">stop</a> ()</td></tr>
<tr class="separator:a5ddb27e3488d9a8546b7d897d25dc4f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ac0bcab237e804acef639e21822204a3e"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#ac0bcab237e804acef639e21822204a3e">mtx_</a></td></tr>
<tr class="separator:ac0bcab237e804acef639e21822204a3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b3a65f4362211b322e949f6b5f2b9f1"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1LedgerReplayTask.html">LedgerReplayTask</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a1b3a65f4362211b322e949f6b5f2b9f1">tasks_</a></td></tr>
<tr class="separator:a1b3a65f4362211b322e949f6b5f2b9f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad379e998b9ed9b7639191b52a04cee9f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceripple.html#a46c521271235f4e2715d7fa8b68940ca">hash_map</a>&lt; <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a>, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/weak_ptr.html">std::weak_ptr</a>&lt; <a class="el" href="classripple_1_1LedgerDeltaAcquire.html">LedgerDeltaAcquire</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#ad379e998b9ed9b7639191b52a04cee9f">deltas_</a></td></tr>
<tr class="separator:ad379e998b9ed9b7639191b52a04cee9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8773a97fe87b7f61f2c90f1c89f982fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceripple.html#a46c521271235f4e2715d7fa8b68940ca">hash_map</a>&lt; <a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a>, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/weak_ptr.html">std::weak_ptr</a>&lt; <a class="el" href="classripple_1_1SkipListAcquire.html">SkipListAcquire</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a8773a97fe87b7f61f2c90f1c89f982fc">skipLists_</a></td></tr>
<tr class="separator:a8773a97fe87b7f61f2c90f1c89f982fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7942a1a23bb630dce2c7784fa2ac52c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1Application.html">Application</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a7942a1a23bb630dce2c7784fa2ac52c1">app_</a></td></tr>
<tr class="separator:a7942a1a23bb630dce2c7784fa2ac52c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98b23a6e5cbfb1820778a5c1132ac25b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1InboundLedgers.html">InboundLedgers</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a98b23a6e5cbfb1820778a5c1132ac25b">inboundLedgers_</a></td></tr>
<tr class="separator:a98b23a6e5cbfb1820778a5c1132ac25b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cb3a180ec947e7c8c89cf41182c69b8"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt; <a class="el" href="classripple_1_1PeerSetBuilder.html">PeerSetBuilder</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a1cb3a180ec947e7c8c89cf41182c69b8">peerSetBuilder_</a></td></tr>
<tr class="separator:a1cb3a180ec947e7c8c89cf41182c69b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a387edc65f66abef7dca3c076fb271090"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a387edc65f66abef7dca3c076fb271090">j_</a></td></tr>
<tr class="separator:a387edc65f66abef7dca3c076fb271090"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a4156475fb02014076bb365159cbd1810"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1LedgerReplayer.html#a4156475fb02014076bb365159cbd1810">test::LedgerReplayClient</a></td></tr>
<tr class="separator:a4156475fb02014076bb365159cbd1810"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Manages the lifetime of ledger replay tasks. </p>
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8h_source.html#l00072">72</a> of file <a class="el" href="LedgerReplayer_8h_source.html">LedgerReplayer.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a64acf661a108792c979d2c3dcd52a97d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64acf661a108792c979d2c3dcd52a97d">&#9670;&nbsp;</a></span>LedgerReplayer()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ripple::LedgerReplayer::LedgerReplayer </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1Application.html">Application</a> &amp;&#160;</td>
<td class="paramname"><em>app</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1InboundLedgers.html">InboundLedgers</a> &amp;&#160;</td>
<td class="paramname"><em>inboundLedgers</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt; <a class="el" href="classripple_1_1PeerSetBuilder.html">PeerSetBuilder</a> &gt;&#160;</td>
<td class="paramname"><em>peerSetBuilder</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8cpp_source.html#l00027">27</a> of file <a class="el" href="LedgerReplayer_8cpp_source.html">LedgerReplayer.cpp</a>.</p>
</div>
</div>
<a id="ab627d07265d6b06c75788bfa6919b610"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab627d07265d6b06c75788bfa6919b610">&#9670;&nbsp;</a></span>~LedgerReplayer()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ripple::LedgerReplayer::~LedgerReplayer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8cpp_source.html#l00038">38</a> of file <a class="el" href="LedgerReplayer_8cpp_source.html">LedgerReplayer.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a889210425eeef3f27953527a5f21520a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a889210425eeef3f27953527a5f21520a">&#9670;&nbsp;</a></span>replay()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::LedgerReplayer::replay </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1InboundLedger.html#a3e8d7f8b5fa089a184dcc9b00b6e0da7">InboundLedger::Reason</a>&#160;</td>
<td class="paramname"><em>r</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a> const &amp;&#160;</td>
<td class="paramname"><em>finishLedgerHash</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>&#160;</td>
<td class="paramname"><em>totalNumLedgers</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Replay a range of ledgers. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">r</td><td>reason for the replay request </td></tr>
<tr><td class="paramname">finishLedgerHash</td><td>hash of the last ledger </td></tr>
<tr><td class="paramname">totalNumLedgers</td><td>total number of ledgers in the range, inclusive </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>totalNumLedgers must &gt; 0 &amp;&amp; totalNumLedgers must &lt;= 256 </dd></dl>
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8cpp_source.html#l00045">45</a> of file <a class="el" href="LedgerReplayer_8cpp_source.html">LedgerReplayer.cpp</a>.</p>
</div>
</div>
<a id="a117a8fd4c54900b486116583ff8466ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a117a8fd4c54900b486116583ff8466ca">&#9670;&nbsp;</a></span>createDeltas()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::LedgerReplayer::createDeltas </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1LedgerReplayTask.html">LedgerReplayTask</a> &gt;&#160;</td>
<td class="paramname"><em>task</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create <a class="el" href="classripple_1_1LedgerDeltaAcquire.html" title="Manage the retrieval of a ledger delta (header and transactions) from the network.">LedgerDeltaAcquire</a> subtasks for the <a class="el" href="classripple_1_1LedgerReplayTask.html">LedgerReplayTask</a> task. </p>
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8cpp_source.html#l00112">112</a> of file <a class="el" href="LedgerReplayer_8cpp_source.html">LedgerReplayer.cpp</a>.</p>
</div>
</div>
<a id="a7f1036aacf255756c523a2cb17986bb4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f1036aacf255756c523a2cb17986bb4">&#9670;&nbsp;</a></span>gotSkipList()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::LedgerReplayer::gotSkipList </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structripple_1_1LedgerInfo.html">LedgerInfo</a> const &amp;&#160;</td>
<td class="paramname"><em>info</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1SHAMapItem.html">SHAMapItem</a> const &gt; const &amp;&#160;</td>
<td class="paramname"><em>data</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Process a skip list (extracted from a TMProofPathResponse message) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">info</td><td>ledger info </td></tr>
<tr><td class="paramname">data</td><td>skip list holder </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>info and data must have been verified against the ledger hash </dd></dl>
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8cpp_source.html#l00173">173</a> of file <a class="el" href="LedgerReplayer_8cpp_source.html">LedgerReplayer.cpp</a>.</p>
</div>
</div>
<a id="a8652a285d05995ff346e6ae2944bef97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8652a285d05995ff346e6ae2944bef97">&#9670;&nbsp;</a></span>gotReplayDelta()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::LedgerReplayer::gotReplayDelta </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structripple_1_1LedgerInfo.html">LedgerInfo</a> const &amp;&#160;</td>
<td class="paramname"><em>info</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1STTx.html">STTx</a> const &gt;&gt; &amp;&amp;&#160;</td>
<td class="paramname"><em>txns</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Process a ledger delta (extracted from a TMReplayDeltaResponse message) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">info</td><td>ledger info </td></tr>
<tr><td class="paramname">txns</td><td>set of Txns of the ledger </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>info and txns must have been verified against the ledger hash </dd></dl>
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8cpp_source.html#l00196">196</a> of file <a class="el" href="LedgerReplayer_8cpp_source.html">LedgerReplayer.cpp</a>.</p>
</div>
</div>
<a id="a14d52623cda41f42570ca30239eae356"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14d52623cda41f42570ca30239eae356">&#9670;&nbsp;</a></span>sweep()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::LedgerReplayer::sweep </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Remove completed tasks. </p>
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8cpp_source.html#l00219">219</a> of file <a class="el" href="LedgerReplayer_8cpp_source.html">LedgerReplayer.cpp</a>.</p>
</div>
</div>
<a id="a5ddb27e3488d9a8546b7d897d25dc4f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ddb27e3488d9a8546b7d897d25dc4f1">&#9670;&nbsp;</a></span>stop()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::LedgerReplayer::stop </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8cpp_source.html#l00265">265</a> of file <a class="el" href="LedgerReplayer_8cpp_source.html">LedgerReplayer.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="a4156475fb02014076bb365159cbd1810"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4156475fb02014076bb365159cbd1810">&#9670;&nbsp;</a></span>test::LedgerReplayClient</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">friend class <a class="el" href="classripple_1_1test_1_1LedgerReplayClient.html">test::LedgerReplayClient</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8h_source.html#l00139">139</a> of file <a class="el" href="LedgerReplayer_8h_source.html">LedgerReplayer.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ac0bcab237e804acef639e21822204a3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0bcab237e804acef639e21822204a3e">&#9670;&nbsp;</a></span>mtx_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> ripple::LedgerReplayer::mtx_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">mutable</span><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8h_source.html#l00129">129</a> of file <a class="el" href="LedgerReplayer_8h_source.html">LedgerReplayer.h</a>.</p>
</div>
</div>
<a id="a1b3a65f4362211b322e949f6b5f2b9f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b3a65f4362211b322e949f6b5f2b9f1">&#9670;&nbsp;</a></span>tasks_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt;<a class="el" href="classripple_1_1LedgerReplayTask.html">LedgerReplayTask</a>&gt; &gt; ripple::LedgerReplayer::tasks_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8h_source.html#l00130">130</a> of file <a class="el" href="LedgerReplayer_8h_source.html">LedgerReplayer.h</a>.</p>
</div>
</div>
<a id="ad379e998b9ed9b7639191b52a04cee9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad379e998b9ed9b7639191b52a04cee9f">&#9670;&nbsp;</a></span>deltas_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceripple.html#a46c521271235f4e2715d7fa8b68940ca">hash_map</a>&lt;<a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a>, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/weak_ptr.html">std::weak_ptr</a>&lt;<a class="el" href="classripple_1_1LedgerDeltaAcquire.html">LedgerDeltaAcquire</a>&gt; &gt; ripple::LedgerReplayer::deltas_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8h_source.html#l00131">131</a> of file <a class="el" href="LedgerReplayer_8h_source.html">LedgerReplayer.h</a>.</p>
</div>
</div>
<a id="a8773a97fe87b7f61f2c90f1c89f982fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8773a97fe87b7f61f2c90f1c89f982fc">&#9670;&nbsp;</a></span>skipLists_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceripple.html#a46c521271235f4e2715d7fa8b68940ca">hash_map</a>&lt;<a class="el" href="namespaceripple.html#a356c68147333a9a48a344718038576d9">uint256</a>, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/weak_ptr.html">std::weak_ptr</a>&lt;<a class="el" href="classripple_1_1SkipListAcquire.html">SkipListAcquire</a>&gt; &gt; ripple::LedgerReplayer::skipLists_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8h_source.html#l00132">132</a> of file <a class="el" href="LedgerReplayer_8h_source.html">LedgerReplayer.h</a>.</p>
</div>
</div>
<a id="a7942a1a23bb630dce2c7784fa2ac52c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7942a1a23bb630dce2c7784fa2ac52c1">&#9670;&nbsp;</a></span>app_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1Application.html">Application</a>&amp; ripple::LedgerReplayer::app_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8h_source.html#l00134">134</a> of file <a class="el" href="LedgerReplayer_8h_source.html">LedgerReplayer.h</a>.</p>
</div>
</div>
<a id="a98b23a6e5cbfb1820778a5c1132ac25b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98b23a6e5cbfb1820778a5c1132ac25b">&#9670;&nbsp;</a></span>inboundLedgers_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1InboundLedgers.html">InboundLedgers</a>&amp; ripple::LedgerReplayer::inboundLedgers_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8h_source.html#l00135">135</a> of file <a class="el" href="LedgerReplayer_8h_source.html">LedgerReplayer.h</a>.</p>
</div>
</div>
<a id="a1cb3a180ec947e7c8c89cf41182c69b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1cb3a180ec947e7c8c89cf41182c69b8">&#9670;&nbsp;</a></span>peerSetBuilder_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt;<a class="el" href="classripple_1_1PeerSetBuilder.html">PeerSetBuilder</a>&gt; ripple::LedgerReplayer::peerSetBuilder_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8h_source.html#l00136">136</a> of file <a class="el" href="LedgerReplayer_8h_source.html">LedgerReplayer.h</a>.</p>
</div>
</div>
<a id="a387edc65f66abef7dca3c076fb271090"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a387edc65f66abef7dca3c076fb271090">&#9670;&nbsp;</a></span>j_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a> ripple::LedgerReplayer::j_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerReplayer_8h_source.html#l00137">137</a> of file <a class="el" href="LedgerReplayer_8h_source.html">LedgerReplayer.h</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>