mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 07:55:51 +00:00
deploy: 1d42c4f6de
This commit is contained in:
@@ -81,95 +81,76 @@ $(document).ready(function() { init_codefold(0); });
|
||||
<div class="headertitle"><div class="title">Manager.h</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">//==============================================================================</span></div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#ifndef XRPL_NODESTORE_MANAGER_H_INCLUDED</span></div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#define XRPL_NODESTORE_MANAGER_H_INCLUDED</span></div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include <xrpl/nodestore/DatabaseRotating.h></span></div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <xrpl/nodestore/Factory.h></span></div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">namespace </span>NodeStore {</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
||||
<div class="foldopen" id="foldopen00031" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html"> 31</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1NodeStore_1_1Manager.html">Manager</a></div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>{</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a8149442311a55be70b5c10b3986ac28f"> 34</a></span> <span class="keyword">virtual</span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a8149442311a55be70b5c10b3986ac28f">~Manager</a>() = <span class="keywordflow">default</span>;</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a30bb88958a02bd046b4c1642cee0eac7"> 35</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a30bb88958a02bd046b4c1642cee0eac7">Manager</a>() = <span class="keywordflow">default</span>;</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a7e6c1de294b01b889035f9d7469246aa"> 36</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a7e6c1de294b01b889035f9d7469246aa">Manager</a>(<a class="code hl_class" href="classripple_1_1NodeStore_1_1Manager.html">Manager</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <a class="code hl_class" href="classripple_1_1NodeStore_1_1Manager.html">Manager</a>&</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#ad9ed522306662a8054d285ae88a24558"> 38</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#ad9ed522306662a8054d285ae88a24558">operator=</a>(<a class="code hl_class" href="classripple_1_1NodeStore_1_1Manager.html">Manager</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef XRPL_NODESTORE_MANAGER_H_INCLUDED</span></div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define XRPL_NODESTORE_MANAGER_H_INCLUDED</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <xrpl/nodestore/DatabaseRotating.h></span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <xrpl/nodestore/Factory.h></span></div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="keyword">namespace </span>NodeStore {</div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
||||
<div class="foldopen" id="foldopen00012" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html"> 12</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1NodeStore_1_1Manager.html">Manager</a></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span>{</div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a8149442311a55be70b5c10b3986ac28f"> 15</a></span> <span class="keyword">virtual</span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a8149442311a55be70b5c10b3986ac28f">~Manager</a>() = <span class="keywordflow">default</span>;</div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a30bb88958a02bd046b4c1642cee0eac7"> 16</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a30bb88958a02bd046b4c1642cee0eac7">Manager</a>() = <span class="keywordflow">default</span>;</div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a7e6c1de294b01b889035f9d7469246aa"> 17</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a7e6c1de294b01b889035f9d7469246aa">Manager</a>(<a class="code hl_class" href="classripple_1_1NodeStore_1_1Manager.html">Manager</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <a class="code hl_class" href="classripple_1_1NodeStore_1_1Manager.html">Manager</a>&</div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#ad9ed522306662a8054d285ae88a24558"> 19</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#ad9ed522306662a8054d285ae88a24558">operator=</a>(<a class="code hl_class" href="classripple_1_1NodeStore_1_1Manager.html">Manager</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">static</span> <a class="code hl_class" href="classripple_1_1NodeStore_1_1Manager.html">Manager</a>&</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a59f9bcb7e6049d1b4c557891992f6cab">instance</a>();</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#ab1f23554e59a7319ffe3e235cd7028c3"> 27</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#ab1f23554e59a7319ffe3e235cd7028c3">insert</a>(<a class="code hl_class" href="classripple_1_1NodeStore_1_1Factory.html">Factory</a>& factory) = 0;</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a9b76452a117753769c60071959d65f23"> 31</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a9b76452a117753769c60071959d65f23">erase</a>(<a class="code hl_class" href="classripple_1_1NodeStore_1_1Factory.html">Factory</a>& factory) = 0;</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classripple_1_1NodeStore_1_1Factory.html">Factory</a>*</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a7f9af54561affded83b93c90234c78fa"> 38</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a7f9af54561affded83b93c90234c78fa">find</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& name) = 0;</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">static</span> <a class="code hl_class" href="classripple_1_1NodeStore_1_1Manager.html">Manager</a>&</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a59f9bcb7e6049d1b4c557891992f6cab">instance</a>();</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#ab1f23554e59a7319ffe3e235cd7028c3"> 46</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#ab1f23554e59a7319ffe3e235cd7028c3">insert</a>(<a class="code hl_class" href="classripple_1_1NodeStore_1_1Factory.html">Factory</a>& factory) = 0;</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<Backend></a></div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a1372b00e4781a7b915f6c08c27b09cee"> 42</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a1372b00e4781a7b915f6c08c27b09cee">make_Backend</a>(</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_class" href="classripple_1_1Section.html">Section</a> <span class="keyword">const</span>& parameters,</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code hl_enumvalue" href="namespaceripple.html#a1b38e742ac7fe4c3a80a397e06b83dcbaa62741f39e8a8d667ccccd0642c08746">burstSize</a>,</div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <a class="code hl_class" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a>& scheduler,</div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> journal) = 0;</div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a9b76452a117753769c60071959d65f23"> 50</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a9b76452a117753769c60071959d65f23">erase</a>(<a class="code hl_class" href="classripple_1_1NodeStore_1_1Factory.html">Factory</a>& factory) = 0;</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classripple_1_1NodeStore_1_1Factory.html">Factory</a>*</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a7f9af54561affded83b93c90234c78fa"> 57</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a7f9af54561affded83b93c90234c78fa">find</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& name) = 0;</div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<Backend></a></div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a1372b00e4781a7b915f6c08c27b09cee"> 61</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a1372b00e4781a7b915f6c08c27b09cee">make_Backend</a>(</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <a class="code hl_class" href="classripple_1_1Section.html">Section</a> <span class="keyword">const</span>& parameters,</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code hl_enumvalue" href="namespaceripple.html#a1b38e742ac7fe4c3a80a397e06b83dcbaa62741f39e8a8d667ccccd0642c08746">burstSize</a>,</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <a class="code hl_class" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a>& scheduler,</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> journal) = 0;</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<Database></a></div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a4b9e9b29ac222a111aa6bf780670f956"> 96</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a4b9e9b29ac222a111aa6bf780670f956">make_Database</a>(</div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code hl_enumvalue" href="namespaceripple.html#a1b38e742ac7fe4c3a80a397e06b83dcbaa62741f39e8a8d667ccccd0642c08746">burstSize</a>,</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_class" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a>& scheduler,</div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keywordtype">int</span> readThreads,</div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <a class="code hl_class" href="classripple_1_1Section.html">Section</a> <span class="keyword">const</span>& backendParameters,</div>
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> journal) = 0;</div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span>};</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<Database></a></div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1Manager.html#a4b9e9b29ac222a111aa6bf780670f956"> 77</a></span> <a class="code hl_function" href="classripple_1_1NodeStore_1_1Manager.html#a4b9e9b29ac222a111aa6bf780670f956">make_Database</a>(</div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code hl_enumvalue" href="namespaceripple.html#a1b38e742ac7fe4c3a80a397e06b83dcbaa62741f39e8a8d667ccccd0642c08746">burstSize</a>,</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <a class="code hl_class" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a>& scheduler,</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordtype">int</span> readThreads,</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <a class="code hl_class" href="classripple_1_1Section.html">Section</a> <span class="keyword">const</span>& backendParameters,</div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> journal) = 0;</div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span>};</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span>} <span class="comment">// namespace NodeStore</span></div>
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span>} <span class="comment">// namespace NodeStore</span></div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
|
||||
<div class="ttc" id="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#l00059">Journal.h:60</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Factory_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Factory.html">ripple::NodeStore::Factory</a></div><div class="ttdoc">Base class for backend factories.</div><div class="ttdef"><b>Definition</b> <a href="Factory_8h_source.html#l00035">Factory.h:36</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html">ripple::NodeStore::Manager</a></div><div class="ttdoc">Singleton for managing NodeStore factories and back ends.</div><div class="ttdef"><b>Definition</b> <a href="Manager_8h_source.html#l00031">Manager.h:32</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition</b> <a href="Journal_8h_source.html#l00040">Journal.h:41</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Factory_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Factory.html">ripple::NodeStore::Factory</a></div><div class="ttdoc">Base class for backend factories.</div><div class="ttdef"><b>Definition</b> <a href="Factory_8h_source.html#l00016">Factory.h:17</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html">ripple::NodeStore::Manager</a></div><div class="ttdoc">Singleton for managing NodeStore factories and back ends.</div><div class="ttdef"><b>Definition</b> <a href="Manager_8h_source.html#l00012">Manager.h:13</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_a1372b00e4781a7b915f6c08c27b09cee"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#a1372b00e4781a7b915f6c08c27b09cee">ripple::NodeStore::Manager::make_Backend</a></div><div class="ttdeci">virtual std::unique_ptr< Backend > make_Backend(Section const &parameters, std::size_t burstSize, Scheduler &scheduler, beast::Journal journal)=0</div><div class="ttdoc">Create a backend.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_a30bb88958a02bd046b4c1642cee0eac7"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#a30bb88958a02bd046b4c1642cee0eac7">ripple::NodeStore::Manager::Manager</a></div><div class="ttdeci">Manager()=default</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_a4b9e9b29ac222a111aa6bf780670f956"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#a4b9e9b29ac222a111aa6bf780670f956">ripple::NodeStore::Manager::make_Database</a></div><div class="ttdeci">virtual std::unique_ptr< Database > make_Database(std::size_t burstSize, Scheduler &scheduler, int readThreads, Section const &backendParameters, beast::Journal journal)=0</div><div class="ttdoc">Construct a NodeStore database.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_a59f9bcb7e6049d1b4c557891992f6cab"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#a59f9bcb7e6049d1b4c557891992f6cab">ripple::NodeStore::Manager::instance</a></div><div class="ttdeci">static Manager & instance()</div><div class="ttdoc">Returns the instance of the manager singleton.</div><div class="ttdef"><b>Definition</b> <a href="ManagerImp_8cpp_source.html#l00137">ManagerImp.cpp:137</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_a59f9bcb7e6049d1b4c557891992f6cab"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#a59f9bcb7e6049d1b4c557891992f6cab">ripple::NodeStore::Manager::instance</a></div><div class="ttdeci">static Manager & instance()</div><div class="ttdoc">Returns the instance of the manager singleton.</div><div class="ttdef"><b>Definition</b> <a href="ManagerImp_8cpp_source.html#l00118">ManagerImp.cpp:118</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_a7e6c1de294b01b889035f9d7469246aa"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#a7e6c1de294b01b889035f9d7469246aa">ripple::NodeStore::Manager::Manager</a></div><div class="ttdeci">Manager(Manager const &)=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_a7f9af54561affded83b93c90234c78fa"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#a7f9af54561affded83b93c90234c78fa">ripple::NodeStore::Manager::find</a></div><div class="ttdeci">virtual Factory * find(std::string const &name)=0</div><div class="ttdoc">Return a pointer to the matching factory if it exists.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_a8149442311a55be70b5c10b3986ac28f"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#a8149442311a55be70b5c10b3986ac28f">ripple::NodeStore::Manager::~Manager</a></div><div class="ttdeci">virtual ~Manager()=default</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_a9b76452a117753769c60071959d65f23"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#a9b76452a117753769c60071959d65f23">ripple::NodeStore::Manager::erase</a></div><div class="ttdeci">virtual void erase(Factory &factory)=0</div><div class="ttdoc">Remove a factory.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_ab1f23554e59a7319ffe3e235cd7028c3"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#ab1f23554e59a7319ffe3e235cd7028c3">ripple::NodeStore::Manager::insert</a></div><div class="ttdeci">virtual void insert(Factory &factory)=0</div><div class="ttdoc">Add a factory.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1NodeStore_1_1Manager_html_ad9ed522306662a8054d285ae88a24558"><div class="ttname"><a href="classripple_1_1NodeStore_1_1Manager.html#ad9ed522306662a8054d285ae88a24558">ripple::NodeStore::Manager::operator=</a></div><div class="ttdeci">Manager & operator=(Manager const &)=delete</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="include_2xrpl_2nodestore_2Scheduler_8h_source.html#l00061">include/xrpl/nodestore/Scheduler.h:62</a></div></div>
|
||||
<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#l00044">BasicConfig.h:45</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="algorithm_8h_source.html#l00025">algorithm.h:25</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="include_2xrpl_2nodestore_2Scheduler_8h_source.html#l00042">include/xrpl/nodestore/Scheduler.h:43</a></div></div>
|
||||
<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#l00025">BasicConfig.h:26</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="algorithm_8h_source.html#l00006">algorithm.h:6</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a1b38e742ac7fe4c3a80a397e06b83dcbaa62741f39e8a8d667ccccd0642c08746"><div class="ttname"><a href="namespaceripple.html#a1b38e742ac7fe4c3a80a397e06b83dcbaa62741f39e8a8d667ccccd0642c08746">ripple::SizedItem::burstSize</a></div><div class="ttdeci">@ burstSize</div></div>
|
||||
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</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>
|
||||
|
||||
Reference in New Issue
Block a user