This commit is contained in:
nbougalis
2020-05-06 06:59:28 +00:00
parent a569e0f56e
commit 755b13a414
3523 changed files with 69315 additions and 79715 deletions

View File

@@ -120,188 +120,136 @@ $(function() {
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1Database.html#ab8f5eeb95d1166af47301d041b3063f2">stopThreads</a>();</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; }</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Backend&gt;</a> <span class="keyword">const</span>&amp;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab9ca2428a45818428ab7728e4fe9fd1f"> 53</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab9ca2428a45818428ab7728e4fe9fd1f">getWritableBackend</a>()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a9e59676838e21c35923b9afce7974816">rotateMutex_</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acaa8e51a8678905a0b2d831154cc91b5">writableBackend_</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; }</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Backend&gt;</a></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a8e1c86b282c83e020a0fe27175b6e96f">rotateBackends</a>(</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Backend&gt;</a> newBackend,</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard&lt;std::mutex&gt;</a> <span class="keyword">const</span>&amp;) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a>&amp;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab6ffefa9785f4c656bde234b04d09ef5"> 65</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab6ffefa9785f4c656bde234b04d09ef5">peekMutex</a>()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a9e59676838e21c35923b9afce7974816">rotateMutex_</a>;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; }</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a9c3f2d7e8b7e4cca14afe2177c1466b3"> 71</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a9c3f2d7e8b7e4cca14afe2177c1466b3">getName</a>()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab9ca2428a45818428ab7728e4fe9fd1f">getWritableBackend</a>()-&gt;getName();</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; }</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::int32_t</a></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a3b006f7535475fd276bc30b77a1b4673"> 77</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a3b006f7535475fd276bc30b77a1b4673">getWriteLoad</a>()<span class="keyword"> const override</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab9ca2428a45818428ab7728e4fe9fd1f">getWritableBackend</a>()-&gt;getWriteLoad();</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; }</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ae018381e1b62ed9c61ef8a82d1b3db47"> 83</a></span>&#160; <span class="keyword">import</span>(<a class="code" href="classripple_1_1NodeStore_1_1Database.html">Database</a>&amp; source) <span class="keyword">override</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; {</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1Database.html#af885d9fe877259a258481f0df20697cd">importInternal</a>(*<a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab9ca2428a45818428ab7728e4fe9fd1f">getWritableBackend</a>(), source);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; }</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a76f256f68048bc81a0d034f7226387b8">rotateWithLock</a>(</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr&lt;NodeStore::Backend&gt;</a>(</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; writableBackendName)&gt; <span class="keyword">const</span>&amp; f) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a9c3f2d7e8b7e4cca14afe2177c1466b3">getName</a>() <span class="keyword">const override</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::int32_t</a></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a3b006f7535475fd276bc30b77a1b4673">getWriteLoad</a>() <span class="keyword">const override</span>;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keyword">import</span>(<a class="code" href="classripple_1_1NodeStore_1_1Database.html">Database</a>&amp; source) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ac573cc8f4c2949ad9c7fd2640a029044">store</a>(</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="namespaceripple.html#a57d7e7b27df7e719fdf5569f96be60a3">NodeObjectType</a> type,</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Blob</a>&amp;&amp; data,</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash,</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a175a18a3c339ccc6e0ec2e6fafc6effb"> 74</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a175a18a3c339ccc6e0ec2e6fafc6effb">fetch</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq)<span class="keyword"> override</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1Database.html#a1eb657a3b7c4b409f9640b82c11ed89e">doFetch</a>(hash, seq, *<a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">pCache_</a>, *<a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a679d869332ca5983aeb5f84e5ad710b2">nCache_</a>, <span class="keyword">false</span>);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; }</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ae89e625356dc0fb84c741d7b7dc2fa0e">asyncFetch</a>(</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash,</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq,</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a>&amp; <span class="keywordtype">object</span>) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a55502de7f83a364526263b38bc1fe709">storeLedger</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Ledger const&gt;</a> <span class="keyword">const</span>&amp; srcLedger) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ac573cc8f4c2949ad9c7fd2640a029044">store</a>(</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <a class="code" href="namespaceripple.html#a57d7e7b27df7e719fdf5569f96be60a3">NodeObjectType</a> type,</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Blob</a>&amp;&amp; data,</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash,</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a175a18a3c339ccc6e0ec2e6fafc6effb"> 96</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a175a18a3c339ccc6e0ec2e6fafc6effb">fetch</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq)<span class="keyword"> override</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1Database.html#a1eb657a3b7c4b409f9640b82c11ed89e">doFetch</a>(hash, seq, *<a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">pCache_</a>, *<a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a679d869332ca5983aeb5f84e5ad710b2">nCache_</a>, <span class="keyword">false</span>);</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; }</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ae89e625356dc0fb84c741d7b7dc2fa0e">asyncFetch</a>(</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash,</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq,</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a>&amp; <span class="keywordtype">object</span>) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a55502de7f83a364526263b38bc1fe709"> 108</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a55502de7f83a364526263b38bc1fe709">storeLedger</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Ledger const&gt;</a> <span class="keyword">const</span>&amp; srcLedger)<span class="keyword"> override</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1Database.html#aad7aa12d0cc01006120761d23312d428">Database::storeLedger</a>(</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; *srcLedger, <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab9ca2428a45818428ab7728e4fe9fd1f">getWritableBackend</a>(), <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">pCache_</a>, <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a679d869332ca5983aeb5f84e5ad710b2">nCache_</a>, <span class="keyword">nullptr</span>);</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; }</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordtype">int</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#af5550c15039a303f7983fdeb323794f3"> 115</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#af5550c15039a303f7983fdeb323794f3">getDesiredAsyncReadCount</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq)<span class="keyword"> override</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="comment">// We prefer a client not fill our cache</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="comment">// We don&#39;t want to push data out of the cache</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="comment">// before it&#39;s retrieved</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">pCache_</a>-&gt;getTargetSize() / <a class="code" href="namespaceripple_1_1NodeStore.html#ab026118fd22b5e7db14b5dea6938aaa8ac33a634d0db63027973fd6d4ac0b5433">asyncDivider</a>;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; }</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordtype">float</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a47ae911df9c292c3c074e5c809759b58"> 124</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a47ae911df9c292c3c074e5c809759b58">getCacheHitRate</a>()<span class="keyword"> override</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">pCache_</a>-&gt;getHitRate();</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; }</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordtype">int</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#af5550c15039a303f7983fdeb323794f3"> 89</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#af5550c15039a303f7983fdeb323794f3">getDesiredAsyncReadCount</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq)<span class="keyword"> override</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">// We prefer a client not fill our cache</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="comment">// We don&#39;t want to push data out of the cache</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="comment">// before it&#39;s retrieved</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">pCache_</a>-&gt;getTargetSize() / <a class="code" href="namespaceripple_1_1NodeStore.html#ab026118fd22b5e7db14b5dea6938aaa8ac33a634d0db63027973fd6d4ac0b5433">asyncDivider</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; }</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordtype">float</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a47ae911df9c292c3c074e5c809759b58"> 98</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a47ae911df9c292c3c074e5c809759b58">getCacheHitRate</a>()<span class="keyword"> override</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">pCache_</a>-&gt;getHitRate();</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; }</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aaf5cdba2bb5e1dde75cfe528bd81a541">tune</a>(<span class="keywordtype">int</span> size, <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a> age) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aa67b13515a70659f536b6d1cfeb1c2a2">sweep</a>() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="classripple_1_1TaggedCache.html">TaggedCache&lt;uint256, NodeObject&gt;</a> <span class="keyword">const</span>&amp;</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acddd9a9af871b683e79a35aabf87f8fa"> 110</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acddd9a9af871b683e79a35aabf87f8fa">getPositiveCache</a>()<span class="keyword"> override</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordflow">return</span> *<a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">pCache_</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; }</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="comment">// Positive cache</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125"> 117</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;TaggedCache&lt;uint256, NodeObject&gt;</a>&gt; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">pCache_</a>;</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="comment">// Negative cache</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a679d869332ca5983aeb5f84e5ad710b2"> 120</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;KeyCache&lt;uint256&gt;</a>&gt; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a679d869332ca5983aeb5f84e5ad710b2">nCache_</a>;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acaa8e51a8678905a0b2d831154cc91b5"> 122</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Backend&gt;</a> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acaa8e51a8678905a0b2d831154cc91b5">writableBackend_</a>;</div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a44b1eace70e02649d16668ca920531cb"> 123</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Backend&gt;</a> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a44b1eace70e02649d16668ca920531cb">archiveBackend_</a>;</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a4d803c36c8aea67c83f735814de25717"> 124</a></span>&#160; <span class="keyword">mutable</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a4d803c36c8aea67c83f735814de25717">mutex_</a>;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab0571f6e63778adc6379cb263a6f21f6">fetchFrom</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aaf5cdba2bb5e1dde75cfe528bd81a541">tune</a>(<span class="keywordtype">int</span> size, <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a> age) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aa67b13515a70659f536b6d1cfeb1c2a2">sweep</a>() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <a class="code" href="classripple_1_1TaggedCache.html">TaggedCache&lt;uint256, NodeObject&gt;</a> <span class="keyword">const</span>&amp;</div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acddd9a9af871b683e79a35aabf87f8fa"> 136</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acddd9a9af871b683e79a35aabf87f8fa">getPositiveCache</a>()<span class="keyword"> override</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordflow">return</span> *<a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">pCache_</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; }</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="comment">// Positive cache</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125"> 143</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;TaggedCache&lt;uint256, NodeObject&gt;</a>&gt; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">pCache_</a>;</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="comment">// Negative cache</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a679d869332ca5983aeb5f84e5ad710b2"> 146</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;KeyCache&lt;uint256&gt;</a>&gt; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a679d869332ca5983aeb5f84e5ad710b2">nCache_</a>;</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acaa8e51a8678905a0b2d831154cc91b5"> 148</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Backend&gt;</a> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acaa8e51a8678905a0b2d831154cc91b5">writableBackend_</a>;</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a44b1eace70e02649d16668ca920531cb"> 149</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Backend&gt;</a> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a44b1eace70e02649d16668ca920531cb">archiveBackend_</a>;</div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a9e59676838e21c35923b9afce7974816"> 150</a></span>&#160; <span class="keyword">mutable</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a9e59676838e21c35923b9afce7974816">rotateMutex_</a>;</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html"> 152</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html">Backends</a></div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; {</div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html#a4f1561f76ce402f223faf00ba3396c4b"> 154</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Backend&gt;</a> <span class="keyword">const</span>&amp; <a class="code" href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html#a4f1561f76ce402f223faf00ba3396c4b">writableBackend</a>;</div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html#a2b10b7c2daa16551441cedb31ea179f0"> 155</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Backend&gt;</a> <span class="keyword">const</span>&amp; <a class="code" href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html#a2b10b7c2daa16551441cedb31ea179f0">archiveBackend</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; };</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <a class="code" href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html">Backends</a></div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ae393c2bdac121a9e9d2c801a6817624d"> 159</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ae393c2bdac121a9e9d2c801a6817624d">getBackends</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a9e59676838e21c35923b9afce7974816">rotateMutex_</a>);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html">Backends</a>{<a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acaa8e51a8678905a0b2d831154cc91b5">writableBackend_</a>, <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a44b1eace70e02649d16668ca920531cb">archiveBackend_</a>};</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; }</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a></div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab0571f6e63778adc6379cb263a6f21f6">fetchFrom</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; hash, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aee99c67c55042890a37368f5d17620d4"> 169</a></span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aee99c67c55042890a37368f5d17620d4">for_each</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;<span class="keywordtype">void</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a>)&gt; f)<span class="keyword"> override</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <a class="code" href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html">Backends</a> b = <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ae393c2bdac121a9e9d2c801a6817624d">getBackends</a>();</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; b.<a class="code" href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html#a2b10b7c2daa16551441cedb31ea179f0">archiveBackend</a>-&gt;for_each(f);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; b.<a class="code" href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html#a4f1561f76ce402f223faf00ba3396c4b">writableBackend</a>-&gt;for_each(f);</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; }</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;};</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; </div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;} <span class="comment">// namespace NodeStore</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <a class="code" href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aee99c67c55042890a37368f5d17620d4">for_each</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;<span class="keywordtype">void</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;NodeObject&gt;</a>)&gt; f) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;};</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;} <span class="comment">// namespace NodeStore</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassripple_1_1Section_html"><div class="ttname"><a href="classripple_1_1Section.html">ripple::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#l00043">BasicConfig.h:43</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a47ae911df9c292c3c074e5c809759b58"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a47ae911df9c292c3c074e5c809759b58">ripple::NodeStore::DatabaseRotatingImp::getCacheHitRate</a></div><div class="ttdeci">float getCacheHitRate() override</div><div class="ttdoc">Get the positive cache hits to total attempts ratio.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00124">DatabaseRotatingImp.h:124</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a44b1eace70e02649d16668ca920531cb"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a44b1eace70e02649d16668ca920531cb">ripple::NodeStore::DatabaseRotatingImp::archiveBackend_</a></div><div class="ttdeci">std::shared_ptr&lt; Backend &gt; archiveBackend_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00149">DatabaseRotatingImp.h:149</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a76f256f68048bc81a0d034f7226387b8"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a76f256f68048bc81a0d034f7226387b8">ripple::NodeStore::DatabaseRotatingImp::rotateWithLock</a></div><div class="ttdeci">void rotateWithLock(std::function&lt; std::unique_ptr&lt; NodeStore::Backend &gt;(std::string const &amp;writableBackendName)&gt; const &amp;f) override</div><div class="ttdoc">Rotates the backends.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00059">DatabaseRotatingImp.cpp:59</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a47ae911df9c292c3c074e5c809759b58"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a47ae911df9c292c3c074e5c809759b58">ripple::NodeStore::DatabaseRotatingImp::getCacheHitRate</a></div><div class="ttdeci">float getCacheHitRate() override</div><div class="ttdoc">Get the positive cache hits to total attempts ratio.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00098">DatabaseRotatingImp.h:98</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a44b1eace70e02649d16668ca920531cb"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a44b1eace70e02649d16668ca920531cb">ripple::NodeStore::DatabaseRotatingImp::archiveBackend_</a></div><div class="ttdeci">std::shared_ptr&lt; Backend &gt; archiveBackend_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00123">DatabaseRotatingImp.h:123</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Database_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Database.html">ripple::NodeStore::Database</a></div><div class="ttdoc">Persistency layer for NodeObject.</div><div class="ttdef"><b>Definition:</b> <a href="Database_8h_source.html#l00053">Database.h:53</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 class="ttdoc">STL class.</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 class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1TaggedCache_html"><div class="ttname"><a href="classripple_1_1TaggedCache.html">ripple::TaggedCache</a></div><div class="ttdoc">Map/cache combination.</div><div class="ttdef"><b>Definition:</b> <a href="TaggedCache_8h_source.html#l00054">TaggedCache.h:54</a></div></div>
<div class="ttc" id="aclassripple_1_1TaggedCache_html"><div class="ttname"><a href="classripple_1_1TaggedCache.html">ripple::TaggedCache</a></div><div class="ttdoc">Map/cache combination.</div><div class="ttdef"><b>Definition:</b> <a href="TaggedCache_8h_source.html#l00052">TaggedCache.h:52</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Database_html_a1eb657a3b7c4b409f9640b82c11ed89e"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Database.html#a1eb657a3b7c4b409f9640b82c11ed89e">ripple::NodeStore::Database::doFetch</a></div><div class="ttdeci">std::shared_ptr&lt; NodeObject &gt; doFetch(uint256 const &amp;hash, std::uint32_t seq, TaggedCache&lt; uint256, NodeObject &gt; &amp;pCache, KeyCache&lt; uint256 &gt; &amp;nCache, bool isAsync)</div><div class="ttdef"><b>Definition:</b> <a href="Database_8cpp_source.html#l00184">Database.cpp:184</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a175a18a3c339ccc6e0ec2e6fafc6effb"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a175a18a3c339ccc6e0ec2e6fafc6effb">ripple::NodeStore::DatabaseRotatingImp::fetch</a></div><div class="ttdeci">std::shared_ptr&lt; NodeObject &gt; fetch(uint256 const &amp;hash, std::uint32_t seq) override</div><div class="ttdoc">Fetch an object.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00096">DatabaseRotatingImp.h:96</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_aa67b13515a70659f536b6d1cfeb1c2a2"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aa67b13515a70659f536b6d1cfeb1c2a2">ripple::NodeStore::DatabaseRotatingImp::sweep</a></div><div class="ttdeci">void sweep() override</div><div class="ttdoc">Remove expired entries from the positive and negative caches.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00108">DatabaseRotatingImp.cpp:108</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_aaf5cdba2bb5e1dde75cfe528bd81a541"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aaf5cdba2bb5e1dde75cfe528bd81a541">ripple::NodeStore::DatabaseRotatingImp::tune</a></div><div class="ttdeci">void tune(int size, std::chrono::seconds age) override</div><div class="ttdoc">Set the maximum number of entries and maximum cache age for both caches.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00099">DatabaseRotatingImp.cpp:99</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a175a18a3c339ccc6e0ec2e6fafc6effb"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a175a18a3c339ccc6e0ec2e6fafc6effb">ripple::NodeStore::DatabaseRotatingImp::fetch</a></div><div class="ttdeci">std::shared_ptr&lt; NodeObject &gt; fetch(uint256 const &amp;hash, std::uint32_t seq) override</div><div class="ttdoc">Fetch an object.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00074">DatabaseRotatingImp.h:74</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_aa67b13515a70659f536b6d1cfeb1c2a2"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aa67b13515a70659f536b6d1cfeb1c2a2">ripple::NodeStore::DatabaseRotatingImp::sweep</a></div><div class="ttdeci">void sweep() override</div><div class="ttdoc">Remove expired entries from the positive and negative caches.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00154">DatabaseRotatingImp.cpp:154</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_aaf5cdba2bb5e1dde75cfe528bd81a541"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aaf5cdba2bb5e1dde75cfe528bd81a541">ripple::NodeStore::DatabaseRotatingImp::tune</a></div><div class="ttdeci">void tune(int size, std::chrono::seconds age) override</div><div class="ttdoc">Set the maximum number of entries and maximum cache age for both caches.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00145">DatabaseRotatingImp.cpp:145</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 class="ttc" id="anamespaceripple_html_a57d7e7b27df7e719fdf5569f96be60a3"><div class="ttname"><a href="namespaceripple.html#a57d7e7b27df7e719fdf5569f96be60a3">ripple::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#l00032">NodeObject.h:32</a></div></div>
<div class="ttc" id="astructripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends_html_a2b10b7c2daa16551441cedb31ea179f0"><div class="ttname"><a href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html#a2b10b7c2daa16551441cedb31ea179f0">ripple::NodeStore::DatabaseRotatingImp::Backends::archiveBackend</a></div><div class="ttdeci">std::shared_ptr&lt; Backend &gt; const &amp; archiveBackend</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00155">DatabaseRotatingImp.h:155</a></div></div>
<div class="ttc" id="aduration_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ac82d8cd599ee29280d5cf6796ff01332"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ac82d8cd599ee29280d5cf6796ff01332">ripple::NodeStore::DatabaseRotatingImp::DatabaseRotatingImp</a></div><div class="ttdeci">DatabaseRotatingImp()=delete</div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ac573cc8f4c2949ad9c7fd2640a029044"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ac573cc8f4c2949ad9c7fd2640a029044">ripple::NodeStore::DatabaseRotatingImp::store</a></div><div class="ttdeci">void store(NodeObjectType type, Blob &amp;&amp;data, uint256 const &amp;hash, std::uint32_t seq) override</div><div class="ttdoc">Store the object.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00070">DatabaseRotatingImp.cpp:70</a></div></div>
<div class="ttc" id="alock_guard_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ab9ca2428a45818428ab7728e4fe9fd1f"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab9ca2428a45818428ab7728e4fe9fd1f">ripple::NodeStore::DatabaseRotatingImp::getWritableBackend</a></div><div class="ttdeci">std::shared_ptr&lt; Backend &gt; const &amp; getWritableBackend() const override</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00053">DatabaseRotatingImp.h:53</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ac573cc8f4c2949ad9c7fd2640a029044"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ac573cc8f4c2949ad9c7fd2640a029044">ripple::NodeStore::DatabaseRotatingImp::store</a></div><div class="ttdeci">void store(NodeObjectType type, Blob &amp;&amp;data, uint256 const &amp;hash, std::uint32_t seq) override</div><div class="ttdoc">Store the object.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00109">DatabaseRotatingImp.cpp:109</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="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a9c3f2d7e8b7e4cca14afe2177c1466b3"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a9c3f2d7e8b7e4cca14afe2177c1466b3">ripple::NodeStore::DatabaseRotatingImp::getName</a></div><div class="ttdeci">std::string getName() const override</div><div class="ttdoc">Retrieve the name associated with this backend.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00071">DatabaseRotatingImp.h:71</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_acddd9a9af871b683e79a35aabf87f8fa"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acddd9a9af871b683e79a35aabf87f8fa">ripple::NodeStore::DatabaseRotatingImp::getPositiveCache</a></div><div class="ttdeci">TaggedCache&lt; uint256, NodeObject &gt; const &amp; getPositiveCache() override</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00136">DatabaseRotatingImp.h:136</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a9c3f2d7e8b7e4cca14afe2177c1466b3"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a9c3f2d7e8b7e4cca14afe2177c1466b3">ripple::NodeStore::DatabaseRotatingImp::getName</a></div><div class="ttdeci">std::string getName() const override</div><div class="ttdoc">Retrieve the name associated with this backend.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00072">DatabaseRotatingImp.cpp:72</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_acddd9a9af871b683e79a35aabf87f8fa"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acddd9a9af871b683e79a35aabf87f8fa">ripple::NodeStore::DatabaseRotatingImp::getPositiveCache</a></div><div class="ttdeci">TaggedCache&lt; uint256, NodeObject &gt; const &amp; getPositiveCache() override</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00110">DatabaseRotatingImp.h:110</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint&lt; 256 &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a3b006f7535475fd276bc30b77a1b4673"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a3b006f7535475fd276bc30b77a1b4673">ripple::NodeStore::DatabaseRotatingImp::getWriteLoad</a></div><div class="ttdeci">std::int32_t getWriteLoad() const override</div><div class="ttdoc">Retrieve the estimated number of pending write operations.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00077">DatabaseRotatingImp.h:77</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a3b006f7535475fd276bc30b77a1b4673"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a3b006f7535475fd276bc30b77a1b4673">ripple::NodeStore::DatabaseRotatingImp::getWriteLoad</a></div><div class="ttdeci">std::int32_t getWriteLoad() const override</div><div class="ttdoc">Retrieve the estimated number of pending write operations.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00079">DatabaseRotatingImp.cpp:79</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html">ripple::NodeStore::DatabaseRotatingImp</a></div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00028">DatabaseRotatingImp.h:28</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ab6ffefa9785f4c656bde234b04d09ef5"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab6ffefa9785f4c656bde234b04d09ef5">ripple::NodeStore::DatabaseRotatingImp::peekMutex</a></div><div class="ttdeci">std::mutex &amp; peekMutex() const override</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00065">DatabaseRotatingImp.h:65</a></div></div>
<div class="ttc" id="aclassripple_1_1Stoppable_html"><div class="ttname"><a href="classripple_1_1Stoppable.html">ripple::Stoppable</a></div><div class="ttdoc">Provides an interface for starting and stopping.</div><div class="ttdef"><b>Definition:</b> <a href="Stoppable_8h_source.html#l00200">Stoppable.h:200</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Database_html_af885d9fe877259a258481f0df20697cd"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Database.html#af885d9fe877259a258481f0df20697cd">ripple::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#l00158">Database.cpp:158</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ae89e625356dc0fb84c741d7b7dc2fa0e"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ae89e625356dc0fb84c741d7b7dc2fa0e">ripple::NodeStore::DatabaseRotatingImp::asyncFetch</a></div><div class="ttdeci">bool asyncFetch(uint256 const &amp;hash, std::uint32_t seq, std::shared_ptr&lt; NodeObject &gt; &amp;object) override</div><div class="ttdoc">Fetch an object without waiting.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00084">DatabaseRotatingImp.cpp:84</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ae393c2bdac121a9e9d2c801a6817624d"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ae393c2bdac121a9e9d2c801a6817624d">ripple::NodeStore::DatabaseRotatingImp::getBackends</a></div><div class="ttdeci">Backends getBackends() const</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00159">DatabaseRotatingImp.h:159</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a55502de7f83a364526263b38bc1fe709"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a55502de7f83a364526263b38bc1fe709">ripple::NodeStore::DatabaseRotatingImp::storeLedger</a></div><div class="ttdeci">bool storeLedger(std::shared_ptr&lt; Ledger const &gt; const &amp;srcLedger) override</div><div class="ttdoc">Copies a ledger stored in a different database to this one.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00108">DatabaseRotatingImp.h:108</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ae89e625356dc0fb84c741d7b7dc2fa0e"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ae89e625356dc0fb84c741d7b7dc2fa0e">ripple::NodeStore::DatabaseRotatingImp::asyncFetch</a></div><div class="ttdeci">bool asyncFetch(uint256 const &amp;hash, std::uint32_t seq, std::shared_ptr&lt; NodeObject &gt; &amp;object) override</div><div class="ttdoc">Fetch an object without waiting.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00129">DatabaseRotatingImp.cpp:129</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a4d803c36c8aea67c83f735814de25717"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a4d803c36c8aea67c83f735814de25717">ripple::NodeStore::DatabaseRotatingImp::mutex_</a></div><div class="ttdeci">std::mutex mutex_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00124">DatabaseRotatingImp.h:124</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a55502de7f83a364526263b38bc1fe709"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a55502de7f83a364526263b38bc1fe709">ripple::NodeStore::DatabaseRotatingImp::storeLedger</a></div><div class="ttdeci">bool storeLedger(std::shared_ptr&lt; Ledger const &gt; const &amp;srcLedger) override</div><div class="ttdoc">Copies a ledger stored in a different database to this one.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00097">DatabaseRotatingImp.cpp:97</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#l00058">Journal.h:58</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="aclassripple_1_1NodeStore_1_1DatabaseRotating_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotating.html">ripple::NodeStore::DatabaseRotating</a></div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotating_8h_source.html#l00033">DatabaseRotating.h:33</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Scheduler_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Scheduler.html">ripple::NodeStore::Scheduler</a></div><div class="ttdoc">Scheduling for asynchronous backend activity.</div><div class="ttdef"><b>Definition:</b> <a href="ripple_2nodestore_2Scheduler_8h_source.html#l00057">ripple/nodestore/Scheduler.h:57</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a7c5d2c471c6ceac28c09bb729f377c0e"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a7c5d2c471c6ceac28c09bb729f377c0e">ripple::NodeStore::DatabaseRotatingImp::~DatabaseRotatingImp</a></div><div class="ttdeci">~DatabaseRotatingImp() override</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00046">DatabaseRotatingImp.h:46</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a9e59676838e21c35923b9afce7974816"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a9e59676838e21c35923b9afce7974816">ripple::NodeStore::DatabaseRotatingImp::rotateMutex_</a></div><div class="ttdeci">std::mutex rotateMutex_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00150">DatabaseRotatingImp.h:150</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ab0571f6e63778adc6379cb263a6f21f6"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab0571f6e63778adc6379cb263a6f21f6">ripple::NodeStore::DatabaseRotatingImp::fetchFrom</a></div><div class="ttdeci">std::shared_ptr&lt; NodeObject &gt; fetchFrom(uint256 const &amp;hash, std::uint32_t seq) override</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00115">DatabaseRotatingImp.cpp:115</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_af5550c15039a303f7983fdeb323794f3"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#af5550c15039a303f7983fdeb323794f3">ripple::NodeStore::DatabaseRotatingImp::getDesiredAsyncReadCount</a></div><div class="ttdeci">int getDesiredAsyncReadCount(std::uint32_t seq) override</div><div class="ttdoc">Get the maximum number of async reads the node store prefers.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00115">DatabaseRotatingImp.h:115</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ab0571f6e63778adc6379cb263a6f21f6"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ab0571f6e63778adc6379cb263a6f21f6">ripple::NodeStore::DatabaseRotatingImp::fetchFrom</a></div><div class="ttdeci">std::shared_ptr&lt; NodeObject &gt; fetchFrom(uint256 const &amp;hash, std::uint32_t seq) override</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00161">DatabaseRotatingImp.cpp:161</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_af5550c15039a303f7983fdeb323794f3"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#af5550c15039a303f7983fdeb323794f3">ripple::NodeStore::DatabaseRotatingImp::getDesiredAsyncReadCount</a></div><div class="ttdeci">int getDesiredAsyncReadCount(std::uint32_t seq) override</div><div class="ttdoc">Get the maximum number of async reads the node store prefers.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00089">DatabaseRotatingImp.h:89</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</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="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Database_html_aad7aa12d0cc01006120761d23312d428"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Database.html#aad7aa12d0cc01006120761d23312d428">ripple::NodeStore::Database::storeLedger</a></div><div class="ttdeci">virtual bool storeLedger(std::shared_ptr&lt; Ledger const &gt; const &amp;srcLedger)=0</div><div class="ttdoc">Copies a ledger stored in a different database to this one.</div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Database_html_ab8f5eeb95d1166af47301d041b3063f2"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Database.html#ab8f5eeb95d1166af47301d041b3063f2">ripple::NodeStore::Database::stopThreads</a></div><div class="ttdeci">void stopThreads()</div><div class="ttdef"><b>Definition:</b> <a href="Database_8cpp_source.html#l00093">Database.cpp:93</a></div></div>
<div class="ttc" id="astructripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends_html_a4f1561f76ce402f223faf00ba3396c4b"><div class="ttname"><a href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html#a4f1561f76ce402f223faf00ba3396c4b">ripple::NodeStore::DatabaseRotatingImp::Backends::writableBackend</a></div><div class="ttdeci">std::shared_ptr&lt; Backend &gt; const &amp; writableBackend</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00154">DatabaseRotatingImp.h:154</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a60f48a153732ad494f553eded13438cb"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a60f48a153732ad494f553eded13438cb">ripple::NodeStore::DatabaseRotatingImp::operator=</a></div><div class="ttdeci">DatabaseRotatingImp &amp; operator=(DatabaseRotatingImp const &amp;)=delete</div></div>
<div class="ttc" id="astructripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends_html"><div class="ttname"><a href="structripple_1_1NodeStore_1_1DatabaseRotatingImp_1_1Backends.html">ripple::NodeStore::DatabaseRotatingImp::Backends</a></div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00152">DatabaseRotatingImp.h:152</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 class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a8e1c86b282c83e020a0fe27175b6e96f"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a8e1c86b282c83e020a0fe27175b6e96f">ripple::NodeStore::DatabaseRotatingImp::rotateBackends</a></div><div class="ttdeci">std::shared_ptr&lt; Backend &gt; rotateBackends(std::shared_ptr&lt; Backend &gt; newBackend, std::lock_guard&lt; std::mutex &gt; const &amp;) override</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00059">DatabaseRotatingImp.cpp:59</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_aee99c67c55042890a37368f5d17620d4"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aee99c67c55042890a37368f5d17620d4">ripple::NodeStore::DatabaseRotatingImp::for_each</a></div><div class="ttdeci">void for_each(std::function&lt; void(std::shared_ptr&lt; NodeObject &gt;)&gt; f) override</div><div class="ttdoc">Visit every object in the database This is usually called during import.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00169">DatabaseRotatingImp.h:169</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_acaa8e51a8678905a0b2d831154cc91b5"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acaa8e51a8678905a0b2d831154cc91b5">ripple::NodeStore::DatabaseRotatingImp::writableBackend_</a></div><div class="ttdeci">std::shared_ptr&lt; Backend &gt; writableBackend_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00148">DatabaseRotatingImp.h:148</a></div></div>
<div class="ttc" id="aunique_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_aee99c67c55042890a37368f5d17620d4"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#aee99c67c55042890a37368f5d17620d4">ripple::NodeStore::DatabaseRotatingImp::for_each</a></div><div class="ttdeci">void for_each(std::function&lt; void(std::shared_ptr&lt; NodeObject &gt;)&gt; f) override</div><div class="ttdoc">Visit every object in the database This is usually called during import.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8cpp_source.html#l00191">DatabaseRotatingImp.cpp:191</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_acaa8e51a8678905a0b2d831154cc91b5"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#acaa8e51a8678905a0b2d831154cc91b5">ripple::NodeStore::DatabaseRotatingImp::writableBackend_</a></div><div class="ttdeci">std::shared_ptr&lt; Backend &gt; writableBackend_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00122">DatabaseRotatingImp.h:122</a></div></div>
<div class="ttc" id="anamespaceripple_1_1NodeStore_html_ab026118fd22b5e7db14b5dea6938aaa8ac33a634d0db63027973fd6d4ac0b5433"><div class="ttname"><a href="namespaceripple_1_1NodeStore.html#ab026118fd22b5e7db14b5dea6938aaa8ac33a634d0db63027973fd6d4ac0b5433">ripple::NodeStore::asyncDivider</a></div><div class="ttdeci">@ asyncDivider</div><div class="ttdef"><b>Definition:</b> <a href="nodestore_2impl_2Tuning_8h_source.html#l00032">nodestore/impl/Tuning.h:32</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a679d869332ca5983aeb5f84e5ad710b2"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a679d869332ca5983aeb5f84e5ad710b2">ripple::NodeStore::DatabaseRotatingImp::nCache_</a></div><div class="ttdeci">std::shared_ptr&lt; KeyCache&lt; uint256 &gt; &gt; nCache_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00146">DatabaseRotatingImp.h:146</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ad8ffa795b9c94db42da3548719e3d125"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">ripple::NodeStore::DatabaseRotatingImp::pCache_</a></div><div class="ttdeci">std::shared_ptr&lt; TaggedCache&lt; uint256, NodeObject &gt; &gt; pCache_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00143">DatabaseRotatingImp.h:143</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_a679d869332ca5983aeb5f84e5ad710b2"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#a679d869332ca5983aeb5f84e5ad710b2">ripple::NodeStore::DatabaseRotatingImp::nCache_</a></div><div class="ttdeci">std::shared_ptr&lt; KeyCache&lt; uint256 &gt; &gt; nCache_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00120">DatabaseRotatingImp.h:120</a></div></div>
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseRotatingImp_html_ad8ffa795b9c94db42da3548719e3d125"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseRotatingImp.html#ad8ffa795b9c94db42da3548719e3d125">ripple::NodeStore::DatabaseRotatingImp::pCache_</a></div><div class="ttdeci">std::shared_ptr&lt; TaggedCache&lt; uint256, NodeObject &gt; &gt; pCache_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseRotatingImp_8h_source.html#l00117">DatabaseRotatingImp.h:117</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">