mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
deploy: 023f5704d0
This commit is contained in:
@@ -88,78 +88,83 @@ $(function() {
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <ripple/nodestore/impl/DatabaseNodeImp.h></span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <ripple/app/ledger/Ledger.h></span></div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <ripple/app/ledger/Ledger.h></span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <ripple/nodestore/impl/DatabaseNodeImp.h></span></div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <ripple/protocol/HashPrefix.h></span></div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">namespace </span>NodeStore {</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a5f3aa8b51b264bb5d1fe815d67fc8c98"> 28</a></span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a5f3aa8b51b264bb5d1fe815d67fc8c98">DatabaseNodeImp::store</a>(<a class="code" href="namespaceripple.html#a57d7e7b27df7e719fdf5569f96be60a3">NodeObjectType</a> type, <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Blob</a>&& data,</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& hash, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq)</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">auto</span> nObj = <a class="code" href="classripple_1_1NodeObject.html#a841bb9bba547efbd89b240fa9c1cf146">NodeObject::createObject</a>(type, std::move(data), hash);</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>->canonicalize_replace_cache(hash, nObj);</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a2edc67988dfa89034505c059fbe41503">backend_</a>->store(nObj);</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>-><a class="code" href="classripple_1_1KeyCache.html#a3bc4a9df6d2a712da022966c6b4f7090">erase</a>(hash);</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="classripple_1_1NodeStore_1_1Database.html#aa3570fbe5e933011616c7662961de3e5">storeStats</a>(nObj->getData().size());</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> }</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#ab1c2b150933ce2628c9457ac4ab87402"> 39</a></span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#ab1c2b150933ce2628c9457ac4ab87402">DatabaseNodeImp::asyncFetch</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& hash,</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq, <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<NodeObject></a>& <span class="keywordtype">object</span>)</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> {</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="comment">// See if the object is in cache</span></div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">object</span> = <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>->fetch(hash);</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">if</span> (<span class="keywordtype">object</span> || <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>-><a class="code" href="classripple_1_1KeyCache.html#ad93a1bca0da205d937a9b9781ffab7c9">touch_if_exists</a>(hash))</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="comment">// Otherwise post a read</span></div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="classripple_1_1NodeStore_1_1Database.html#a44b4880cc7028c8171c4a901381ba21e">Database::asyncFetch</a>(hash, seq, <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>, <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>);</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> }</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  </div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#abe504ac619dae082bd15d7f16d12b786"> 52</a></span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#abe504ac619dae082bd15d7f16d12b786">DatabaseNodeImp::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)</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> {</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>->setTargetSize(size);</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>->setTargetAge(age);</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>-><a class="code" href="classripple_1_1KeyCache.html#a1c5dbed9b53bcdf3efacce2a3be793cf">setTargetSize</a>(size);</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>-><a class="code" href="classripple_1_1KeyCache.html#a644f17c49571a93e3d421bc5fc265306">setTargetAge</a>(age);</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> }</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#af83b106a8e0f80ef92cc3140e1112ec0"> 61</a></span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#af83b106a8e0f80ef92cc3140e1112ec0">DatabaseNodeImp::sweep</a>()</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> {</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>->sweep();</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>-><a class="code" href="classripple_1_1KeyCache.html#a774eec36bd59b6a346ef7a613734d921">sweep</a>();</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> }</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> } <span class="comment">// NodeStore</span></div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> } <span class="comment">// ripple</span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a5f3aa8b51b264bb5d1fe815d67fc8c98"> 28</a></span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a5f3aa8b51b264bb5d1fe815d67fc8c98">DatabaseNodeImp::store</a>(</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="namespaceripple.html#a57d7e7b27df7e719fdf5569f96be60a3">NodeObjectType</a> type,</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Blob</a>&& data,</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& hash,</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq)</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">auto</span> nObj = <a class="code" href="classripple_1_1NodeObject.html#a841bb9bba547efbd89b240fa9c1cf146">NodeObject::createObject</a>(type, std::move(data), hash);</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>->canonicalize_replace_cache(hash, nObj);</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a2edc67988dfa89034505c059fbe41503">backend_</a>->store(nObj);</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>-><a class="code" href="classripple_1_1KeyCache.html#a3bc4a9df6d2a712da022966c6b4f7090">erase</a>(hash);</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="classripple_1_1NodeStore_1_1Database.html#aa3570fbe5e933011616c7662961de3e5">storeStats</a>(nObj->getData().size());</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> }</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#ab1c2b150933ce2628c9457ac4ab87402"> 42</a></span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#ab1c2b150933ce2628c9457ac4ab87402">DatabaseNodeImp::asyncFetch</a>(</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& hash,</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> seq,</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<NodeObject></a>& <span class="keywordtype">object</span>)</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="comment">// See if the object is in cache</span></div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">object</span> = <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>->fetch(hash);</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">if</span> (<span class="keywordtype">object</span> || <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>-><a class="code" href="classripple_1_1KeyCache.html#ad93a1bca0da205d937a9b9781ffab7c9">touch_if_exists</a>(hash))</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="comment">// Otherwise post a read</span></div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="classripple_1_1NodeStore_1_1Database.html#a44b4880cc7028c8171c4a901381ba21e">Database::asyncFetch</a>(hash, seq, <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>, <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>);</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> }</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  </div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#abe504ac619dae082bd15d7f16d12b786"> 57</a></span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#abe504ac619dae082bd15d7f16d12b786">DatabaseNodeImp::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)</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> {</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>->setTargetSize(size);</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>->setTargetAge(age);</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>-><a class="code" href="classripple_1_1KeyCache.html#a1c5dbed9b53bcdf3efacce2a3be793cf">setTargetSize</a>(size);</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>-><a class="code" href="classripple_1_1KeyCache.html#a644f17c49571a93e3d421bc5fc265306">setTargetAge</a>(age);</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> }</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#af83b106a8e0f80ef92cc3140e1112ec0"> 66</a></span> <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#af83b106a8e0f80ef92cc3140e1112ec0">DatabaseNodeImp::sweep</a>()</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> {</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">pCache_</a>->sweep();</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">nCache_</a>-><a class="code" href="classripple_1_1KeyCache.html#a774eec36bd59b6a346ef7a613734d921">sweep</a>();</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> }</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> } <span class="comment">// namespace NodeStore</span></div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> } <span class="comment">// namespace ripple</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_a2edc67988dfa89034505c059fbe41503"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a2edc67988dfa89034505c059fbe41503">ripple::NodeStore::DatabaseNodeImp::backend_</a></div><div class="ttdeci">std::shared_ptr< Backend > backend_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseNodeImp_8h_source.html#l00126">DatabaseNodeImp.h:126</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_a2edc67988dfa89034505c059fbe41503"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a2edc67988dfa89034505c059fbe41503">ripple::NodeStore::DatabaseNodeImp::backend_</a></div><div class="ttdeci">std::shared_ptr< Backend > backend_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseNodeImp_8h_source.html#l00142">DatabaseNodeImp.h:142</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_a5f3aa8b51b264bb5d1fe815d67fc8c98"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a5f3aa8b51b264bb5d1fe815d67fc8c98">ripple::NodeStore::DatabaseNodeImp::store</a></div><div class="ttdeci">void store(NodeObjectType type, Blob &&data, uint256 const &hash, std::uint32_t seq) override</div><div class="ttdoc">Store the object.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseNodeImp_8cpp_source.html#l00028">DatabaseNodeImp.cpp:28</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< NodeObject ></a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a3bc4a9df6d2a712da022966c6b4f7090"><div class="ttname"><a href="classripple_1_1KeyCache.html#a3bc4a9df6d2a712da022966c6b4f7090">ripple::KeyCache::erase</a></div><div class="ttdeci">bool erase(key_type const &key)</div><div class="ttdoc">Remove the specified cache entry.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00235">KeyCache.h:235</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a3bc4a9df6d2a712da022966c6b4f7090"><div class="ttname"><a href="classripple_1_1KeyCache.html#a3bc4a9df6d2a712da022966c6b4f7090">ripple::KeyCache::erase</a></div><div class="ttdeci">bool erase(key_type const &key)</div><div class="ttdoc">Remove the specified cache entry.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00253">KeyCache.h:253</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< unsigned char ></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="aclassripple_1_1NodeObject_html_a841bb9bba547efbd89b240fa9c1cf146"><div class="ttname"><a href="classripple_1_1NodeObject.html#a841bb9bba547efbd89b240fa9c1cf146">ripple::NodeObject::createObject</a></div><div class="ttdeci">static std::shared_ptr< NodeObject > createObject(NodeObjectType type, Blob &&data, uint256 const &hash)</div><div class="ttdoc">Create an object from fields.</div><div class="ttdef"><b>Definition:</b> <a href="NodeObject_8cpp_source.html#l00039">NodeObject.cpp:39</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeObject_html_a841bb9bba547efbd89b240fa9c1cf146"><div class="ttname"><a href="classripple_1_1NodeObject.html#a841bb9bba547efbd89b240fa9c1cf146">ripple::NodeObject::createObject</a></div><div class="ttdeci">static std::shared_ptr< NodeObject > createObject(NodeObjectType type, Blob &&data, uint256 const &hash)</div><div class="ttdoc">Create an object from fields.</div><div class="ttdef"><b>Definition:</b> <a href="NodeObject_8cpp_source.html#l00037">NodeObject.cpp:37</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_1DatabaseNodeImp_html_abe504ac619dae082bd15d7f16d12b786"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#abe504ac619dae082bd15d7f16d12b786">ripple::NodeStore::DatabaseNodeImp::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="DatabaseNodeImp_8cpp_source.html#l00052">DatabaseNodeImp.cpp:52</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_ad93a1bca0da205d937a9b9781ffab7c9"><div class="ttname"><a href="classripple_1_1KeyCache.html#ad93a1bca0da205d937a9b9781ffab7c9">ripple::KeyCache::touch_if_exists</a></div><div class="ttdeci">bool touch_if_exists(KeyComparable const &key)</div><div class="ttdoc">Refresh the last access time on a key if present.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00217">KeyCache.h:217</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_abe504ac619dae082bd15d7f16d12b786"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#abe504ac619dae082bd15d7f16d12b786">ripple::NodeStore::DatabaseNodeImp::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="DatabaseNodeImp_8cpp_source.html#l00057">DatabaseNodeImp.cpp:57</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_ad93a1bca0da205d937a9b9781ffab7c9"><div class="ttname"><a href="classripple_1_1KeyCache.html#ad93a1bca0da205d937a9b9781ffab7c9">ripple::KeyCache::touch_if_exists</a></div><div class="ttdeci">bool touch_if_exists(KeyComparable const &key)</div><div class="ttdoc">Refresh the last access time on a key if present.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00234">KeyCache.h:234</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< 256 ></a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_a43f4e702f8a28e14e0bbe08e1b6c6aa5"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">ripple::NodeStore::DatabaseNodeImp::pCache_</a></div><div class="ttdeci">std::shared_ptr< TaggedCache< uint256, NodeObject > > pCache_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseNodeImp_8h_source.html#l00120">DatabaseNodeImp.h:120</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Database_html_aa3570fbe5e933011616c7662961de3e5"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Database.html#aa3570fbe5e933011616c7662961de3e5">ripple::NodeStore::Database::storeStats</a></div><div class="ttdeci">void storeStats(size_t sz)</div><div class="ttdef"><b>Definition:</b> <a href="Database_8h_source.html#l00234">Database.h:234</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_a43f4e702f8a28e14e0bbe08e1b6c6aa5"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a43f4e702f8a28e14e0bbe08e1b6c6aa5">ripple::NodeStore::DatabaseNodeImp::pCache_</a></div><div class="ttdeci">std::shared_ptr< TaggedCache< uint256, NodeObject > > pCache_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseNodeImp_8h_source.html#l00136">DatabaseNodeImp.h:136</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Database_html_aa3570fbe5e933011616c7662961de3e5"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Database.html#aa3570fbe5e933011616c7662961de3e5">ripple::NodeStore::Database::storeStats</a></div><div class="ttdeci">void storeStats(size_t sz)</div><div class="ttdef"><b>Definition:</b> <a href="Database_8h_source.html#l00250">Database.h:250</a></div></div>
|
||||
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a774eec36bd59b6a346ef7a613734d921"><div class="ttname"><a href="classripple_1_1KeyCache.html#a774eec36bd59b6a346ef7a613734d921">ripple::KeyCache::sweep</a></div><div class="ttdeci">void sweep()</div><div class="ttdoc">Remove stale entries from the cache.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00248">KeyCache.h:248</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_ab1c2b150933ce2628c9457ac4ab87402"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#ab1c2b150933ce2628c9457ac4ab87402">ripple::NodeStore::DatabaseNodeImp::asyncFetch</a></div><div class="ttdeci">bool asyncFetch(uint256 const &hash, std::uint32_t seq, std::shared_ptr< NodeObject > &object) override</div><div class="ttdoc">Fetch an object without waiting.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseNodeImp_8cpp_source.html#l00039">DatabaseNodeImp.cpp:39</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_a8c8554053c68cd10c47edf735bcda7ad"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">ripple::NodeStore::DatabaseNodeImp::nCache_</a></div><div class="ttdeci">std::shared_ptr< KeyCache< uint256 > > nCache_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseNodeImp_8h_source.html#l00123">DatabaseNodeImp.h:123</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a774eec36bd59b6a346ef7a613734d921"><div class="ttname"><a href="classripple_1_1KeyCache.html#a774eec36bd59b6a346ef7a613734d921">ripple::KeyCache::sweep</a></div><div class="ttdeci">void sweep()</div><div class="ttdoc">Remove stale entries from the cache.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00267">KeyCache.h:267</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_ab1c2b150933ce2628c9457ac4ab87402"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#ab1c2b150933ce2628c9457ac4ab87402">ripple::NodeStore::DatabaseNodeImp::asyncFetch</a></div><div class="ttdeci">bool asyncFetch(uint256 const &hash, std::uint32_t seq, std::shared_ptr< NodeObject > &object) override</div><div class="ttdoc">Fetch an object without waiting.</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseNodeImp_8cpp_source.html#l00042">DatabaseNodeImp.cpp:42</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_a8c8554053c68cd10c47edf735bcda7ad"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#a8c8554053c68cd10c47edf735bcda7ad">ripple::NodeStore::DatabaseNodeImp::nCache_</a></div><div class="ttdeci">std::shared_ptr< KeyCache< uint256 > > nCache_</div><div class="ttdef"><b>Definition:</b> <a href="DatabaseNodeImp_8h_source.html#l00139">DatabaseNodeImp.h:139</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_1KeyCache_html_a1c5dbed9b53bcdf3efacce2a3be793cf"><div class="ttname"><a href="classripple_1_1KeyCache.html#a1c5dbed9b53bcdf3efacce2a3be793cf">ripple::KeyCache::setTargetSize</a></div><div class="ttdeci">void setTargetSize(size_type s)</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00165">KeyCache.h:165</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_af83b106a8e0f80ef92cc3140e1112ec0"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#af83b106a8e0f80ef92cc3140e1112ec0">ripple::NodeStore::DatabaseNodeImp::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="DatabaseNodeImp_8cpp_source.html#l00061">DatabaseNodeImp.cpp:61</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a1c5dbed9b53bcdf3efacce2a3be793cf"><div class="ttname"><a href="classripple_1_1KeyCache.html#a1c5dbed9b53bcdf3efacce2a3be793cf">ripple::KeyCache::setTargetSize</a></div><div class="ttdeci">void setTargetSize(size_type s)</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00177">KeyCache.h:177</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1DatabaseNodeImp_html_af83b106a8e0f80ef92cc3140e1112ec0"><div class="ttname"><a href="classripple_1_1NodeStore_1_1DatabaseNodeImp.html#af83b106a8e0f80ef92cc3140e1112ec0">ripple::NodeStore::DatabaseNodeImp::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="DatabaseNodeImp_8cpp_source.html#l00066">DatabaseNodeImp.cpp:66</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Database_html_a44b4880cc7028c8171c4a901381ba21e"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Database.html#a44b4880cc7028c8171c4a901381ba21e">ripple::NodeStore::Database::asyncFetch</a></div><div class="ttdeci">virtual bool asyncFetch(uint256 const &hash, std::uint32_t seq, std::shared_ptr< NodeObject > &object)=0</div><div class="ttdoc">Fetch an object without waiting.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a644f17c49571a93e3d421bc5fc265306"><div class="ttname"><a href="classripple_1_1KeyCache.html#a644f17c49571a93e3d421bc5fc265306">ripple::KeyCache::setTargetAge</a></div><div class="ttdeci">void setTargetAge(std::chrono::seconds s)</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00171">KeyCache.h:171</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a644f17c49571a93e3d421bc5fc265306"><div class="ttname"><a href="classripple_1_1KeyCache.html#a644f17c49571a93e3d421bc5fc265306">ripple::KeyCache::setTargetAge</a></div><div class="ttdeci">void setTargetAge(std::chrono::seconds s)</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00184">KeyCache.h:184</a></div></div>
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
|
||||
Reference in New Issue
Block a user