Files
rippled/Database_8h_source.html
2026-01-28 10:13:01 -08:00

375 lines
70 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" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: Database.h Source File</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 id="projectrow">
<td id="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- 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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0103a8ad82dcc2c51f5cde661b4b5cb7.html">xrpl</a></li><li class="navelem"><a class="el" href="dir_e1b4f750ea5d02d697bca882e10403c3.html">nodestore</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">Database.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef XRPL_NODESTORE_DATABASE_H_INCLUDED</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define XRPL_NODESTORE_DATABASE_H_INCLUDED</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include &lt;xrpl/basics/BasicConfig.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &lt;xrpl/basics/Log.h&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include &lt;xrpl/basics/TaggedCache.ipp&gt;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include &lt;xrpl/nodestore/Backend.h&gt;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &lt;xrpl/nodestore/NodeObject.h&gt;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &lt;xrpl/nodestore/Scheduler.h&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &lt;xrpl/protocol/SystemParameters.h&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/condition_variable.html">condition_variable</a>&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacexrpl.html">xrpl</a> {</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keyword">namespace </span>NodeStore {</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="foldopen" id="foldopen00031" data-start="{" data-end="};">
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html"> 31</a></span><span class="keyword">class </span><a class="code hl_class" href="classxrpl_1_1NodeStore_1_1Database.html">Database</a></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>{</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a45d4e7fa2339eae899dac6132f79dfa8"> 34</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a45d4e7fa2339eae899dac6132f79dfa8">Database</a>() = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a45d4e7fa2339eae899dac6132f79dfa8">Database</a>(<a class="code hl_class" href="classxrpl_1_1NodeStore_1_1Scheduler.html">Scheduler</a>&amp; scheduler, <span class="keywordtype">int</span> readThreads, <a class="code hl_class" href="classxrpl_1_1Section.html">Section</a> <span class="keyword">const</span>&amp; config, <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> j);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">virtual</span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a8549eca2abe3cd2cf6a8cf65558276be">~Database</a>();</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#aaf45640c231d65663dc43e9f1565aa39"> 56</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#aaf45640c231d65663dc43e9f1565aa39">getName</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a1a9b9865e22fff88976544992d747444"> 60</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a1a9b9865e22fff88976544992d747444">importDatabase</a>(<a class="code hl_class" href="classxrpl_1_1NodeStore_1_1Database.html">Database</a>&amp; source) = 0;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::int32_t</a></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#ae2868e25499e20b0d4a63dfcbca28914"> 66</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#ae2868e25499e20b0d4a63dfcbca28914">getWriteLoad</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#ac3f1770e416e3caebb451717055b430e"> 81</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#ac3f1770e416e3caebb451717055b430e">store</a>(<a class="code hl_enumeration" href="namespacexrpl.html#a663b0ac7aab40440c7da9e3ea84a2ebf">NodeObjectType</a> type, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Blob</a>&amp;&amp; data, <a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ledgerSeq) = 0;</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="comment">/* Check if two ledgers are in the same database</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="comment"></span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span><span class="comment"> If these two sequence numbers map to the same database,</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span><span class="comment"> the result of a fetch with either sequence number would</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span><span class="comment"> be identical.</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span><span class="comment"></span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span><span class="comment"> @param s1 The first sequence number</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="comment"> @param s2 The second sequence number</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span><span class="comment"></span> </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span><span class="comment"> @return &#39;true&#39; if both ledgers would be in the same DB</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span><span class="comment"></span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span><span class="comment"> */</span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a810fe3f01ba81b15b21e37ed9b3f317c"> 96</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a810fe3f01ba81b15b21e37ed9b3f317c">isSameDB</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> s1, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> s2) = 0;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a9465e246825a73370f5e739bda610de7"> 99</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a9465e246825a73370f5e739bda610de7">sync</a>() = 0;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#ab1c70e66ae4af42db2665020e58d746f">fetchNodeObject</a>(</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash,</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ledgerSeq = 0,</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_enumeration" href="namespacexrpl_1_1NodeStore.html#a4abeb46fdf43e4f80398fc27751f220a">FetchType</a> fetchType = <a class="code hl_enumvalue" href="namespacexrpl_1_1NodeStore.html#a4abeb46fdf43e4f80398fc27751f220aa1303c4f41a88e739bc859612321b189f">FetchType::synchronous</a>,</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordtype">bool</span> duplicate = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a7104f8edd1132f71fcc37a5627283b64">asyncFetch</a>(</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash,</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ledgerSeq,</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;<span class="keywordtype">void</span>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a> <span class="keyword">const</span>&amp;)&gt;&amp;&amp; callback);</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a1284f4bf5c137c021c61f845ebe44a44"> 139</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a1284f4bf5c137c021c61f845ebe44a44">sweep</a>() = 0;</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a></div>
<div class="foldopen" id="foldopen00146" data-start="{" data-end="}">
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#abc340322eb00382acc839c9270387242"> 146</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#abc340322eb00382acc839c9270387242">getStoreCount</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#aaa66af23d53df6dac315f271a957e1af">storeCount_</a>;</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> }</div>
</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div>
<div class="foldopen" id="foldopen00152" data-start="{" data-end="}">
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#adb09cccf6f30239fedcf4e6ca82ebfe6"> 152</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#adb09cccf6f30239fedcf4e6ca82ebfe6">getFetchTotalCount</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a34ea1b9ed96f470623fc9e6ec8042ed7">fetchTotalCount_</a>;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> }</div>
</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div>
<div class="foldopen" id="foldopen00158" data-start="{" data-end="}">
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a00fc84df3d4362e35ad6cee8b9651c37"> 158</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a00fc84df3d4362e35ad6cee8b9651c37">getFetchHitCount</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#aa3787d596a1b0af5b5c4fa0fccf0817f">fetchHitCount_</a>;</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> }</div>
</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a></div>
<div class="foldopen" id="foldopen00164" data-start="{" data-end="}">
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#ac1636f3d92d70e37b6624e979077482f"> 164</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#ac1636f3d92d70e37b6624e979077482f">getStoreSize</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a9d7777e55b97a744fc8bb70c9b22419c">storeSz_</a>;</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> }</div>
</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div>
<div class="foldopen" id="foldopen00170" data-start="{" data-end="}">
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#ae13572b1f2563d42f05c5b8da462873e"> 170</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#ae13572b1f2563d42f05c5b8da462873e">getFetchSize</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#ae8b166eb63a36199a993da183912118b">fetchSz_</a>;</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> }</div>
</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> </div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#acbeacc2a25b1d1d03de39033dd060411">getCountsJson</a>(<a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a>&amp; obj);</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="keywordtype">int</span></div>
<div class="foldopen" id="foldopen00180" data-start="{" data-end="}">
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a433c172dae4d90c5dd1eb8212f04b406"> 180</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a433c172dae4d90c5dd1eb8212f04b406">fdRequired</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a5b08ca82c490f8f45b1a255a94ca247d">fdRequired_</a>;</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> }</div>
</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a1de37e4294b711489917a9264ff48468">stop</a>();</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a1b049d3e2d7d31e06435815a0525c31d">isStopping</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> [[nodiscard]] <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div>
<div class="foldopen" id="foldopen00194" data-start="{" data-end="}">
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a130ed51436fb79f2252d3845023431df"> 194</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a130ed51436fb79f2252d3845023431df">earliestLedgerSeq</a>() const noexcept</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> {</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a9e377e9f5b7f132a28b1154f9df8e18b">earliestLedgerSeq_</a>;</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> }</div>
</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> </div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span><span class="keyword">protected</span>:</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a51a71f2e714bad4a321a4567cec1c785"> 200</a></span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> <span class="keyword">const</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a51a71f2e714bad4a321a4567cec1c785">j_</a>;</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a7629acbd2e65a6ba021e0179e3ebf467"> 201</a></span> <a class="code hl_class" href="classxrpl_1_1NodeStore_1_1Scheduler.html">Scheduler</a>&amp; <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a7629acbd2e65a6ba021e0179e3ebf467">scheduler_</a>;</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a5b08ca82c490f8f45b1a255a94ca247d"> 202</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a5b08ca82c490f8f45b1a255a94ca247d">fdRequired_</a>{0};</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> </div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#aa3787d596a1b0af5b5c4fa0fccf0817f"> 204</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;std::uint32_t&gt;</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#aa3787d596a1b0af5b5c4fa0fccf0817f">fetchHitCount_</a>{0};</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#ae8b166eb63a36199a993da183912118b"> 205</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;std::uint32_t&gt;</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#ae8b166eb63a36199a993da183912118b">fetchSz_</a>{0};</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> </div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <span class="comment">// The default is XRP_LEDGER_EARLIEST_SEQ (32570) to match the XRP ledger</span></div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> <span class="comment">// network&#39;s earliest allowed ledger sequence. Can be set through the</span></div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="comment">// configuration file using the &#39;earliest_seq&#39; field under the &#39;node_db&#39;</span></div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> <span class="comment">// stanza. If specified, the value must be greater than zero.</span></div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="comment">// Only unit tests or alternate</span></div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <span class="comment">// networks should change this value.</span></div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a9e377e9f5b7f132a28b1154f9df8e18b"> 213</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> <span class="keyword">const</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a9e377e9f5b7f132a28b1154f9df8e18b">earliestLedgerSeq_</a>;</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> </div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <span class="comment">// The maximum number of requests a thread extracts from the queue in an</span></div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="comment">// attempt to minimize the overhead of mutex acquisition. This is an</span></div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> <span class="comment">// advanced tunable, via the config file. The default value is 4.</span></div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#ac8cfbf7d84ac217a815dffab2bd818ad"> 218</a></span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#ac8cfbf7d84ac217a815dffab2bd818ad">requestBundle_</a>;</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00221" data-start="{" data-end="}">
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a22a4de137cbecd91adac5bc6d98cc084"> 221</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a22a4de137cbecd91adac5bc6d98cc084">storeStats</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a> count, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a> sz)</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> {</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> XRPL_ASSERT(count &lt;= sz, <span class="stringliteral">&quot;xrpl::NodeStore::Database::storeStats : valid inputs&quot;</span>);</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#aaa66af23d53df6dac315f271a957e1af">storeCount_</a> += count;</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a9d7777e55b97a744fc8bb70c9b22419c">storeSz_</a> += sz;</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> }</div>
</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> </div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="comment">// Called by the public import function</span></div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#affdf06b604e9f802daf761c907e3a92a">importInternal</a>(<a class="code hl_class" href="classxrpl_1_1NodeStore_1_1Backend.html">Backend</a>&amp; dstBackend, <a class="code hl_class" href="classxrpl_1_1NodeStore_1_1Database.html">Database</a>&amp; srcDB);</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00233" data-start="{" data-end="}">
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a38e76177b3928998a917caa8890c817b"> 233</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a38e76177b3928998a917caa8890c817b">updateFetchMetrics</a>(uint64_t fetches, uint64_t hits, uint64_t duration)</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> {</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a34ea1b9ed96f470623fc9e6ec8042ed7">fetchTotalCount_</a> += fetches;</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#aa3787d596a1b0af5b5c4fa0fccf0817f">fetchHitCount_</a> += hits;</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a80e8aead605504b16c725df3782f64bf">fetchDurationUs_</a> += duration;</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> }</div>
</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> </div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#aaa66af23d53df6dac315f271a957e1af"> 241</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;std::uint64_t&gt;</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#aaa66af23d53df6dac315f271a957e1af">storeCount_</a>{0};</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a9d7777e55b97a744fc8bb70c9b22419c"> 242</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;std::uint64_t&gt;</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a9d7777e55b97a744fc8bb70c9b22419c">storeSz_</a>{0};</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a34ea1b9ed96f470623fc9e6ec8042ed7"> 243</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;std::uint64_t&gt;</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a34ea1b9ed96f470623fc9e6ec8042ed7">fetchTotalCount_</a>{0};</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a80e8aead605504b16c725df3782f64bf"> 244</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;std::uint64_t&gt;</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a80e8aead605504b16c725df3782f64bf">fetchDurationUs_</a>{0};</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a42e51ba48a7ce1c3685a45f64c5caed3"> 245</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;std::uint64_t&gt;</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a42e51ba48a7ce1c3685a45f64c5caed3">storeDurationUs_</a>{0};</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> </div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a50607c8e37d1e4da9cc630af42a35020"> 247</a></span> <span class="keyword">mutable</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a50607c8e37d1e4da9cc630af42a35020">readLock_</a>;</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a285ba622231e2b4103cae09de16d2870"> 248</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable.html">std::condition_variable</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a285ba622231e2b4103cae09de16d2870">readCondVar_</a>;</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> </div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> <span class="comment">// reads to do</span></div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a>&lt;<a class="code hl_typedef" href="namespacexrpl.html#a76c892803711595bd0d3cf6fbedf028a">uint256</a>, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a>&lt;<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;void(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a> <span class="keyword">const</span>&amp;)&gt;&gt;&gt;&gt;</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a726cfe6e531cd9fc8a400181046ac6b7"> 252</a></span> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a726cfe6e531cd9fc8a400181046ac6b7">read_</a>;</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> </div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a6b2f88bb9853a86e65df2a43f13295f3"> 254</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;bool&gt;</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a6b2f88bb9853a86e65df2a43f13295f3">readStopping_</a> = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a38d84907a30540bca6e1ed9b4270677d"> 255</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;int&gt;</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a38d84907a30540bca6e1ed9b4270677d">readThreads_</a> = 0;</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a4536330a646be9055759565dc4b79d46"> 256</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic&lt;int&gt;</a> <a class="code hl_variable" href="classxrpl_1_1NodeStore_1_1Database.html#a4536330a646be9055759565dc4b79d46">runningThreads_</a> = 0;</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> </div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a></div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#ac8179c0db5895d769d5041645440aa0f"> 259</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#ac8179c0db5895d769d5041645440aa0f">fetchNodeObject</a>(<a class="code hl_class" href="classxrpl_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ledgerSeq, <a class="code hl_struct" href="structxrpl_1_1NodeStore_1_1FetchReport.html">FetchReport</a>&amp; fetchReport, <span class="keywordtype">bool</span> duplicate) = 0;</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> </div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#a55d18c81aa7262045ac4ff65faa7c079"> 269</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#a55d18c81aa7262045ac4ff65faa7c079">for_each</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;<span class="keywordtype">void</span>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a>)&gt; f) = 0;</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> </div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"><a class="line" href="classxrpl_1_1NodeStore_1_1Database.html#ac52d634d0477712d8905f92aa7f221f7"> 272</a></span> <a class="code hl_function" href="classxrpl_1_1NodeStore_1_1Database.html#ac52d634d0477712d8905f92aa7f221f7">threadEntry</a>();</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span>};</div>
</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> </div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span>} <span class="comment">// namespace NodeStore</span></div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span>} <span class="comment">// namespace xrpl</span></div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> </div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aatomic_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic</a></div></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html"><div class="ttname"><a href="classJson_1_1Value.html">Json::Value</a></div><div class="ttdoc">Represents a JSON value.</div><div class="ttdef"><b>Definition</b> <a href="json__value_8h_source.html#l00130">json_value.h:131</a></div></div>
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition</b> <a href="Journal_8h_source.html#l00040">Journal.h:41</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Backend_html"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Backend.html">xrpl::NodeStore::Backend</a></div><div class="ttdoc">A backend used for the NodeStore.</div><div class="ttdef"><b>Definition</b> <a href="Backend_8h_source.html#l00020">Backend.h:21</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html">xrpl::NodeStore::Database</a></div><div class="ttdoc">Persistency layer for NodeObject.</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00031">Database.h:32</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a00fc84df3d4362e35ad6cee8b9651c37"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a00fc84df3d4362e35ad6cee8b9651c37">xrpl::NodeStore::Database::getFetchHitCount</a></div><div class="ttdeci">std::uint32_t getFetchHitCount() const</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00158">Database.h:158</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a1284f4bf5c137c021c61f845ebe44a44"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a1284f4bf5c137c021c61f845ebe44a44">xrpl::NodeStore::Database::sweep</a></div><div class="ttdeci">virtual void sweep()=0</div><div class="ttdoc">Remove expired entries from the positive and negative caches.</div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a130ed51436fb79f2252d3845023431df"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a130ed51436fb79f2252d3845023431df">xrpl::NodeStore::Database::earliestLedgerSeq</a></div><div class="ttdeci">std::uint32_t earliestLedgerSeq() const noexcept</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00194">Database.h:194</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a1a9b9865e22fff88976544992d747444"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a1a9b9865e22fff88976544992d747444">xrpl::NodeStore::Database::importDatabase</a></div><div class="ttdeci">virtual void importDatabase(Database &amp;source)=0</div><div class="ttdoc">Import objects from another database.</div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a1b049d3e2d7d31e06435815a0525c31d"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a1b049d3e2d7d31e06435815a0525c31d">xrpl::NodeStore::Database::isStopping</a></div><div class="ttdeci">bool isStopping() const</div><div class="ttdef"><b>Definition</b> <a href="Database_8cpp_source.html#l00112">Database.cpp:112</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a1de37e4294b711489917a9264ff48468"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a1de37e4294b711489917a9264ff48468">xrpl::NodeStore::Database::stop</a></div><div class="ttdeci">virtual void stop()</div><div class="ttdef"><b>Definition</b> <a href="Database_8cpp_source.html#l00118">Database.cpp:118</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a22a4de137cbecd91adac5bc6d98cc084"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a22a4de137cbecd91adac5bc6d98cc084">xrpl::NodeStore::Database::storeStats</a></div><div class="ttdeci">void storeStats(std::uint64_t count, std::uint64_t sz)</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00221">Database.h:221</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a285ba622231e2b4103cae09de16d2870"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a285ba622231e2b4103cae09de16d2870">xrpl::NodeStore::Database::readCondVar_</a></div><div class="ttdeci">std::condition_variable readCondVar_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00248">Database.h:248</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a34ea1b9ed96f470623fc9e6ec8042ed7"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a34ea1b9ed96f470623fc9e6ec8042ed7">xrpl::NodeStore::Database::fetchTotalCount_</a></div><div class="ttdeci">std::atomic&lt; std::uint64_t &gt; fetchTotalCount_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00243">Database.h:243</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a38d84907a30540bca6e1ed9b4270677d"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a38d84907a30540bca6e1ed9b4270677d">xrpl::NodeStore::Database::readThreads_</a></div><div class="ttdeci">std::atomic&lt; int &gt; readThreads_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00255">Database.h:255</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a38e76177b3928998a917caa8890c817b"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a38e76177b3928998a917caa8890c817b">xrpl::NodeStore::Database::updateFetchMetrics</a></div><div class="ttdeci">void updateFetchMetrics(uint64_t fetches, uint64_t hits, uint64_t duration)</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00233">Database.h:233</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a42e51ba48a7ce1c3685a45f64c5caed3"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a42e51ba48a7ce1c3685a45f64c5caed3">xrpl::NodeStore::Database::storeDurationUs_</a></div><div class="ttdeci">std::atomic&lt; std::uint64_t &gt; storeDurationUs_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00245">Database.h:245</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a433c172dae4d90c5dd1eb8212f04b406"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a433c172dae4d90c5dd1eb8212f04b406">xrpl::NodeStore::Database::fdRequired</a></div><div class="ttdeci">int fdRequired() const</div><div class="ttdoc">Returns the number of file descriptors the database expects to need.</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00180">Database.h:180</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a4536330a646be9055759565dc4b79d46"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a4536330a646be9055759565dc4b79d46">xrpl::NodeStore::Database::runningThreads_</a></div><div class="ttdeci">std::atomic&lt; int &gt; runningThreads_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00256">Database.h:256</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a45d4e7fa2339eae899dac6132f79dfa8"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a45d4e7fa2339eae899dac6132f79dfa8">xrpl::NodeStore::Database::Database</a></div><div class="ttdeci">Database()=delete</div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a50607c8e37d1e4da9cc630af42a35020"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a50607c8e37d1e4da9cc630af42a35020">xrpl::NodeStore::Database::readLock_</a></div><div class="ttdeci">std::mutex readLock_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00247">Database.h:247</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a51a71f2e714bad4a321a4567cec1c785"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a51a71f2e714bad4a321a4567cec1c785">xrpl::NodeStore::Database::j_</a></div><div class="ttdeci">beast::Journal const j_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00200">Database.h:200</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a55d18c81aa7262045ac4ff65faa7c079"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a55d18c81aa7262045ac4ff65faa7c079">xrpl::NodeStore::Database::for_each</a></div><div class="ttdeci">virtual void for_each(std::function&lt; void(std::shared_ptr&lt; NodeObject &gt;)&gt; f)=0</div><div class="ttdoc">Visit every object in the database This is usually called during import.</div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a5b08ca82c490f8f45b1a255a94ca247d"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a5b08ca82c490f8f45b1a255a94ca247d">xrpl::NodeStore::Database::fdRequired_</a></div><div class="ttdeci">int fdRequired_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00202">Database.h:202</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a6b2f88bb9853a86e65df2a43f13295f3"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a6b2f88bb9853a86e65df2a43f13295f3">xrpl::NodeStore::Database::readStopping_</a></div><div class="ttdeci">std::atomic&lt; bool &gt; readStopping_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00254">Database.h:254</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a7104f8edd1132f71fcc37a5627283b64"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a7104f8edd1132f71fcc37a5627283b64">xrpl::NodeStore::Database::asyncFetch</a></div><div class="ttdeci">virtual void asyncFetch(uint256 const &amp;hash, std::uint32_t ledgerSeq, std::function&lt; void(std::shared_ptr&lt; NodeObject &gt; const &amp;)&gt; &amp;&amp;callback)</div><div class="ttdoc">Fetch an object without waiting.</div><div class="ttdef"><b>Definition</b> <a href="Database_8cpp_source.html#l00149">Database.cpp:149</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a726cfe6e531cd9fc8a400181046ac6b7"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a726cfe6e531cd9fc8a400181046ac6b7">xrpl::NodeStore::Database::read_</a></div><div class="ttdeci">std::map&lt; uint256, std::vector&lt; std::pair&lt; std::uint32_t, std::function&lt; void(std::shared_ptr&lt; NodeObject &gt; const &amp;)&gt; &gt; &gt; &gt; read_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00252">Database.h:252</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a7629acbd2e65a6ba021e0179e3ebf467"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a7629acbd2e65a6ba021e0179e3ebf467">xrpl::NodeStore::Database::scheduler_</a></div><div class="ttdeci">Scheduler &amp; scheduler_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00201">Database.h:201</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a80e8aead605504b16c725df3782f64bf"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a80e8aead605504b16c725df3782f64bf">xrpl::NodeStore::Database::fetchDurationUs_</a></div><div class="ttdeci">std::atomic&lt; std::uint64_t &gt; fetchDurationUs_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00244">Database.h:244</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a810fe3f01ba81b15b21e37ed9b3f317c"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a810fe3f01ba81b15b21e37ed9b3f317c">xrpl::NodeStore::Database::isSameDB</a></div><div class="ttdeci">virtual bool isSameDB(std::uint32_t s1, std::uint32_t s2)=0</div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a8549eca2abe3cd2cf6a8cf65558276be"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a8549eca2abe3cd2cf6a8cf65558276be">xrpl::NodeStore::Database::~Database</a></div><div class="ttdeci">virtual ~Database()</div><div class="ttdoc">Destroy the node store.</div><div class="ttdef"><b>Definition</b> <a href="Database_8cpp_source.html#l00100">Database.cpp:100</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a9465e246825a73370f5e739bda610de7"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a9465e246825a73370f5e739bda610de7">xrpl::NodeStore::Database::sync</a></div><div class="ttdeci">virtual void sync()=0</div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a9d7777e55b97a744fc8bb70c9b22419c"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a9d7777e55b97a744fc8bb70c9b22419c">xrpl::NodeStore::Database::storeSz_</a></div><div class="ttdeci">std::atomic&lt; std::uint64_t &gt; storeSz_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00242">Database.h:242</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_a9e377e9f5b7f132a28b1154f9df8e18b"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#a9e377e9f5b7f132a28b1154f9df8e18b">xrpl::NodeStore::Database::earliestLedgerSeq_</a></div><div class="ttdeci">std::uint32_t const earliestLedgerSeq_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00213">Database.h:213</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_aa3787d596a1b0af5b5c4fa0fccf0817f"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#aa3787d596a1b0af5b5c4fa0fccf0817f">xrpl::NodeStore::Database::fetchHitCount_</a></div><div class="ttdeci">std::atomic&lt; std::uint32_t &gt; fetchHitCount_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00204">Database.h:204</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_aaa66af23d53df6dac315f271a957e1af"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#aaa66af23d53df6dac315f271a957e1af">xrpl::NodeStore::Database::storeCount_</a></div><div class="ttdeci">std::atomic&lt; std::uint64_t &gt; storeCount_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00241">Database.h:241</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_aaf45640c231d65663dc43e9f1565aa39"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#aaf45640c231d65663dc43e9f1565aa39">xrpl::NodeStore::Database::getName</a></div><div class="ttdeci">virtual std::string getName() const =0</div><div class="ttdoc">Retrieve the name associated with this backend.</div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_ab1c70e66ae4af42db2665020e58d746f"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#ab1c70e66ae4af42db2665020e58d746f">xrpl::NodeStore::Database::fetchNodeObject</a></div><div class="ttdeci">std::shared_ptr&lt; NodeObject &gt; fetchNodeObject(uint256 const &amp;hash, std::uint32_t ledgerSeq=0, FetchType fetchType=FetchType::synchronous, bool duplicate=false)</div><div class="ttdoc">Fetch a node object.</div><div class="ttdef"><b>Definition</b> <a href="Database_8cpp_source.html#l00202">Database.cpp:202</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_abc340322eb00382acc839c9270387242"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#abc340322eb00382acc839c9270387242">xrpl::NodeStore::Database::getStoreCount</a></div><div class="ttdeci">std::uint64_t getStoreCount() const</div><div class="ttdoc">Gather statistics pertaining to read and write activities.</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00146">Database.h:146</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_ac1636f3d92d70e37b6624e979077482f"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#ac1636f3d92d70e37b6624e979077482f">xrpl::NodeStore::Database::getStoreSize</a></div><div class="ttdeci">std::uint64_t getStoreSize() const</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00164">Database.h:164</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_ac3f1770e416e3caebb451717055b430e"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#ac3f1770e416e3caebb451717055b430e">xrpl::NodeStore::Database::store</a></div><div class="ttdeci">virtual void store(NodeObjectType type, Blob &amp;&amp;data, uint256 const &amp;hash, std::uint32_t ledgerSeq)=0</div><div class="ttdoc">Store the object.</div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_ac52d634d0477712d8905f92aa7f221f7"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#ac52d634d0477712d8905f92aa7f221f7">xrpl::NodeStore::Database::threadEntry</a></div><div class="ttdeci">void threadEntry()</div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_ac8179c0db5895d769d5041645440aa0f"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#ac8179c0db5895d769d5041645440aa0f">xrpl::NodeStore::Database::fetchNodeObject</a></div><div class="ttdeci">virtual std::shared_ptr&lt; NodeObject &gt; fetchNodeObject(uint256 const &amp;hash, std::uint32_t ledgerSeq, FetchReport &amp;fetchReport, bool duplicate)=0</div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_ac8cfbf7d84ac217a815dffab2bd818ad"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#ac8cfbf7d84ac217a815dffab2bd818ad">xrpl::NodeStore::Database::requestBundle_</a></div><div class="ttdeci">int const requestBundle_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00218">Database.h:218</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_acbeacc2a25b1d1d03de39033dd060411"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#acbeacc2a25b1d1d03de39033dd060411">xrpl::NodeStore::Database::getCountsJson</a></div><div class="ttdeci">void getCountsJson(Json::Value &amp;obj)</div><div class="ttdef"><b>Definition</b> <a href="Database_8cpp_source.html#l00225">Database.cpp:225</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_adb09cccf6f30239fedcf4e6ca82ebfe6"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#adb09cccf6f30239fedcf4e6ca82ebfe6">xrpl::NodeStore::Database::getFetchTotalCount</a></div><div class="ttdeci">std::uint32_t getFetchTotalCount() const</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00152">Database.h:152</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_ae13572b1f2563d42f05c5b8da462873e"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#ae13572b1f2563d42f05c5b8da462873e">xrpl::NodeStore::Database::getFetchSize</a></div><div class="ttdeci">std::uint32_t getFetchSize() const</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00170">Database.h:170</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_ae2868e25499e20b0d4a63dfcbca28914"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#ae2868e25499e20b0d4a63dfcbca28914">xrpl::NodeStore::Database::getWriteLoad</a></div><div class="ttdeci">virtual std::int32_t getWriteLoad() const =0</div><div class="ttdoc">Retrieve the estimated number of pending write operations.</div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_ae8b166eb63a36199a993da183912118b"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#ae8b166eb63a36199a993da183912118b">xrpl::NodeStore::Database::fetchSz_</a></div><div class="ttdeci">std::atomic&lt; std::uint32_t &gt; fetchSz_</div><div class="ttdef"><b>Definition</b> <a href="Database_8h_source.html#l00205">Database.h:205</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Database_html_affdf06b604e9f802daf761c907e3a92a"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Database.html#affdf06b604e9f802daf761c907e3a92a">xrpl::NodeStore::Database::importInternal</a></div><div class="ttdeci">void importInternal(Backend &amp;dstBackend, Database &amp;srcDB)</div><div class="ttdef"><b>Definition</b> <a href="Database_8cpp_source.html#l00164">Database.cpp:164</a></div></div>
<div class="ttc" id="aclassxrpl_1_1NodeStore_1_1Scheduler_html"><div class="ttname"><a href="classxrpl_1_1NodeStore_1_1Scheduler.html">xrpl::NodeStore::Scheduler</a></div><div class="ttdoc">Scheduling for asynchronous backend activity.</div><div class="ttdef"><b>Definition</b> <a href="include_2xrpl_2nodestore_2Scheduler_8h_source.html#l00042">include/xrpl/nodestore/Scheduler.h:43</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Section_html"><div class="ttname"><a href="classxrpl_1_1Section.html">xrpl::Section</a></div><div class="ttdoc">Holds a collection of configuration values.</div><div class="ttdef"><b>Definition</b> <a href="BasicConfig_8h_source.html#l00024">BasicConfig.h:25</a></div></div>
<div class="ttc" id="aclassxrpl_1_1base__uint_html"><div class="ttname"><a href="classxrpl_1_1base__uint.html">xrpl::base_uint&lt; 256 &gt;</a></div></div>
<div class="ttc" id="acondition_variable_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/condition_variable.html">condition_variable</a></div></div>
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a></div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::int32_t</a></div></div>
<div class="ttc" id="amap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a></div></div>
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a></div></div>
<div class="ttc" id="anamespacexrpl_1_1NodeStore_html_a4abeb46fdf43e4f80398fc27751f220a"><div class="ttname"><a href="namespacexrpl_1_1NodeStore.html#a4abeb46fdf43e4f80398fc27751f220a">xrpl::NodeStore::FetchType</a></div><div class="ttdeci">FetchType</div><div class="ttdef"><b>Definition</b> <a href="include_2xrpl_2nodestore_2Scheduler_8h_source.html#l00011">include/xrpl/nodestore/Scheduler.h:11</a></div></div>
<div class="ttc" id="anamespacexrpl_1_1NodeStore_html_a4abeb46fdf43e4f80398fc27751f220aa1303c4f41a88e739bc859612321b189f"><div class="ttname"><a href="namespacexrpl_1_1NodeStore.html#a4abeb46fdf43e4f80398fc27751f220aa1303c4f41a88e739bc859612321b189f">xrpl::NodeStore::FetchType::synchronous</a></div><div class="ttdeci">@ synchronous</div></div>
<div class="ttc" id="anamespacexrpl_html"><div class="ttname"><a href="namespacexrpl.html">xrpl</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8h_source.html#l00006">algorithm.h:6</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a663b0ac7aab40440c7da9e3ea84a2ebf"><div class="ttname"><a href="namespacexrpl.html#a663b0ac7aab40440c7da9e3ea84a2ebf">xrpl::NodeObjectType</a></div><div class="ttdeci">NodeObjectType</div><div class="ttdoc">The types of node objects.</div><div class="ttdef"><b>Definition</b> <a href="NodeObject_8h_source.html#l00013">NodeObject.h:13</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a76c892803711595bd0d3cf6fbedf028a"><div class="ttname"><a href="namespacexrpl.html#a76c892803711595bd0d3cf6fbedf028a">xrpl::uint256</a></div><div class="ttdeci">base_uint&lt; 256 &gt; uint256</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00527">base_uint.h:527</a></div></div>
<div class="ttc" id="apair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a></div></div>
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div></div>
<div class="ttc" id="astructxrpl_1_1NodeStore_1_1FetchReport_html"><div class="ttname"><a href="structxrpl_1_1NodeStore_1_1FetchReport.html">xrpl::NodeStore::FetchReport</a></div><div class="ttdoc">Contains information about a fetch operation.</div><div class="ttdef"><b>Definition</b> <a href="include_2xrpl_2nodestore_2Scheduler_8h_source.html#l00014">include/xrpl/nodestore/Scheduler.h:15</a></div></div>
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt; unsigned char &gt;</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>