mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 12:05:53 +00:00
191 lines
29 KiB
HTML
191 lines
29 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: BatchWriter.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_ceb6d1bc218d15504336f945ff1322da.html">nodestore</a></li><li class="navelem"><a class="el" href="dir_1eae1e3c362aa357dbf8694343222a03.html">impl</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">BatchWriter.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a 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 name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
|
<div class="line"><a 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 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 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 name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
|
<div class="line"><a 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 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 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 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 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 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 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 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">#ifndef RIPPLE_NODESTORE_BATCHWRITER_H_INCLUDED</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define RIPPLE_NODESTORE_BATCHWRITER_H_INCLUDED</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/nodestore/Scheduler.h></span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/nodestore/Task.h></span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <ripple/nodestore/Types.h></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/condition_variable.html">condition_variable</a>></span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>></span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span>NodeStore {</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1BatchWriter.html"> 40</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html">BatchWriter</a> : <span class="keyword">private</span> <a class="code" href="structripple_1_1NodeStore_1_1Task.html">Task</a></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="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html"> 44</a></span>  <span class="keyword">struct </span><a class="code" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html">Callback</a></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  {</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">virtual</span> <a class="code" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html#ada606f557ec1e1e09e150b59aa7fe3ff">~Callback</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html#ad428f99741bfe01114cefb347671e416">Callback</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html#ad428f99741bfe01114cefb347671e416">Callback</a>(<a class="code" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html">Callback</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html">Callback</a>&</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html#ab5b302399e56251fc0ef583354d200c2">operator=</a>(<a class="code" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html">Callback</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html#a44ada568a17a0b6f3256005476e68638">writeBatch</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Batch</a> <span class="keyword">const</span>& batch) = 0;</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="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#ad2bd82080d5ae1a6f10eac76d6ef7874">BatchWriter</a>(<a class="code" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html">Callback</a>& callback, <a class="code" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a>& scheduler);</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#af79bad700133763e550a4750fcae40d7">~BatchWriter</a>();</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a42b3434b00f66603124653fbf691ad26">store</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<NodeObject></a> <span class="keyword">const</span>& <span class="keywordtype">object</span>);</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">int</span></div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a51dceb04c1517ed641e90a51c5a9ea1b">getWriteLoad</a>();</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#aafd94fab31d667c79c53ae2f5b770778">performScheduledTask</a>() <span class="keyword">override</span>;</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#ac9098b71490f289b477b5365d98cafee">writeBatch</a>();</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a3fe23bec6b7c7fd4a4ca7c954241930c">waitForWriting</a>();</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1BatchWriter.html#ab7e7a35ffac7d201823bf05170752d23"> 86</a></span>  <span class="keyword">using</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html">LockType</a> = <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html">std::recursive_mutex</a>;</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1BatchWriter.html#adbda8c921848433242d2e44470e835fc"> 87</a></span>  <span class="keyword">using</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable_any.html">CondvarType</a> = <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable_any.html">std::condition_variable_any</a>;</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1BatchWriter.html#a3e9fcc020d96a6a061bc6d00cb8c4eb4"> 89</a></span>  <a class="code" href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html">Callback</a>& <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a3e9fcc020d96a6a061bc6d00cb8c4eb4">m_callback</a>;</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1BatchWriter.html#a45c6abdc7dcdc3cdb4a8c1e3bfac8cd8"> 90</a></span>  <a class="code" href="classripple_1_1NodeStore_1_1Scheduler.html">Scheduler</a>& <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a45c6abdc7dcdc3cdb4a8c1e3bfac8cd8">m_scheduler</a>;</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1BatchWriter.html#a8446bde66ae915ce1e8a23c1d9e03932"> 91</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html">LockType</a> <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a8446bde66ae915ce1e8a23c1d9e03932">mWriteMutex</a>;</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1BatchWriter.html#ae99b6e34ec47a86bcdc8de5a5a49eff4"> 92</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable_any.html">CondvarType</a> <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#ae99b6e34ec47a86bcdc8de5a5a49eff4">mWriteCondition</a>;</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1BatchWriter.html#a90833868dbf5ca5fcb5840d8ead21f3a"> 93</a></span>  <span class="keywordtype">int</span> <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a90833868dbf5ca5fcb5840d8ead21f3a">mWriteLoad</a>;</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1BatchWriter.html#a0dac1815fb23e64b1d0a63d4595a816f"> 94</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a0dac1815fb23e64b1d0a63d4595a816f">mWritePending</a>;</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classripple_1_1NodeStore_1_1BatchWriter.html#a3764d56b2e80ee3345a2427f06192abb"> 95</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Batch</a> <a class="code" href="classripple_1_1NodeStore_1_1BatchWriter.html#a3764d56b2e80ee3345a2427f06192abb">mWriteSet</a>;</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> };</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> } <span class="comment">// namespace NodeStore</span></div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> } <span class="comment">// namespace ripple</span></div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="preprocessor">#endif</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html">ripple::NodeStore::BatchWriter</a></div><div class="ttdoc">Batch-writing assist logic.</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00040">BatchWriter.h:40</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_1NodeStore_1_1BatchWriter_html_ac9098b71490f289b477b5365d98cafee"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#ac9098b71490f289b477b5365d98cafee">ripple::NodeStore::BatchWriter::writeBatch</a></div><div class="ttdeci">void writeBatch()</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8cpp_source.html#l00074">BatchWriter.cpp:74</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_aafd94fab31d667c79c53ae2f5b770778"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#aafd94fab31d667c79c53ae2f5b770778">ripple::NodeStore::BatchWriter::performScheduledTask</a></div><div class="ttdeci">void performScheduledTask() override</div><div class="ttdoc">Performs the task.</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8cpp_source.html#l00068">BatchWriter.cpp:68</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_ae99b6e34ec47a86bcdc8de5a5a49eff4"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#ae99b6e34ec47a86bcdc8de5a5a49eff4">ripple::NodeStore::BatchWriter::mWriteCondition</a></div><div class="ttdeci">CondvarType mWriteCondition</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00092">BatchWriter.h:92</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a0dac1815fb23e64b1d0a63d4595a816f"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a0dac1815fb23e64b1d0a63d4595a816f">ripple::NodeStore::BatchWriter::mWritePending</a></div><div class="ttdeci">bool mWritePending</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00094">BatchWriter.h:94</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< std::shared_ptr< NodeObject > ></a></div></div>
|
|
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriter_1_1Callback_html_ad428f99741bfe01114cefb347671e416"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html#ad428f99741bfe01114cefb347671e416">ripple::NodeStore::BatchWriter::Callback::Callback</a></div><div class="ttdeci">Callback()=default</div></div>
|
|
<div class="ttc" id="arecursive_mutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html">std::recursive_mutex</a></div><div class="ttdoc">STL class.</div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a3fe23bec6b7c7fd4a4ca7c954241930c"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a3fe23bec6b7c7fd4a4ca7c954241930c">ripple::NodeStore::BatchWriter::waitForWriting</a></div><div class="ttdeci">void waitForWriting()</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8cpp_source.html#l00113">BatchWriter.cpp:113</a></div></div>
|
|
<div class="ttc" id="acondition_variable_any_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/condition_variable_any.html">std::condition_variable_any</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1NodeStore_1_1Task_html"><div class="ttname"><a href="structripple_1_1NodeStore_1_1Task.html">ripple::NodeStore::Task</a></div><div class="ttdoc">Derived classes perform scheduled tasks.</div><div class="ttdef"><b>Definition:</b> <a href="Task_8h_source.html#l00027">Task.h:27</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriter_1_1Callback_html_a44ada568a17a0b6f3256005476e68638"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html#a44ada568a17a0b6f3256005476e68638">ripple::NodeStore::BatchWriter::Callback::writeBatch</a></div><div class="ttdeci">virtual void writeBatch(Batch const &batch)=0</div></div>
|
|
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriter_1_1Callback_html"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html">ripple::NodeStore::BatchWriter::Callback</a></div><div class="ttdoc">This callback does the actual writing.</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00044">BatchWriter.h:44</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#l00060">ripple/nodestore/Scheduler.h:60</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_af79bad700133763e550a4750fcae40d7"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#af79bad700133763e550a4750fcae40d7">ripple::NodeStore::BatchWriter::~BatchWriter</a></div><div class="ttdeci">~BatchWriter()</div><div class="ttdoc">Destroy a batch writer.</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8cpp_source.html#l00034">BatchWriter.cpp:34</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a8446bde66ae915ce1e8a23c1d9e03932"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a8446bde66ae915ce1e8a23c1d9e03932">ripple::NodeStore::BatchWriter::mWriteMutex</a></div><div class="ttdeci">LockType mWriteMutex</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00091">BatchWriter.h:91</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriter_1_1Callback_html_ada606f557ec1e1e09e150b59aa7fe3ff"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html#ada606f557ec1e1e09e150b59aa7fe3ff">ripple::NodeStore::BatchWriter::Callback::~Callback</a></div><div class="ttdeci">virtual ~Callback()=default</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_1BatchWriter_html_a51dceb04c1517ed641e90a51c5a9ea1b"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a51dceb04c1517ed641e90a51c5a9ea1b">ripple::NodeStore::BatchWriter::getWriteLoad</a></div><div class="ttdeci">int getWriteLoad()</div><div class="ttdoc">Get an estimate of the amount of writing I/O pending.</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8cpp_source.html#l00060">BatchWriter.cpp:60</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a3764d56b2e80ee3345a2427f06192abb"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a3764d56b2e80ee3345a2427f06192abb">ripple::NodeStore::BatchWriter::mWriteSet</a></div><div class="ttdeci">Batch mWriteSet</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00095">BatchWriter.h:95</a></div></div>
|
|
<div class="ttc" id="acondition_variable_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/condition_variable.html">condition_variable</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_ad2bd82080d5ae1a6f10eac76d6ef7874"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#ad2bd82080d5ae1a6f10eac76d6ef7874">ripple::NodeStore::BatchWriter::BatchWriter</a></div><div class="ttdeci">BatchWriter(Callback &callback, Scheduler &scheduler)</div><div class="ttdoc">Create a batch writer.</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8cpp_source.html#l00025">BatchWriter.cpp:25</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a42b3434b00f66603124653fbf691ad26"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a42b3434b00f66603124653fbf691ad26">ripple::NodeStore::BatchWriter::store</a></div><div class="ttdeci">void store(std::shared_ptr< NodeObject > const &object)</div><div class="ttdoc">Store the object.</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8cpp_source.html#l00040">BatchWriter.cpp:40</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a90833868dbf5ca5fcb5840d8ead21f3a"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a90833868dbf5ca5fcb5840d8ead21f3a">ripple::NodeStore::BatchWriter::mWriteLoad</a></div><div class="ttdeci">int mWriteLoad</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00093">BatchWriter.h:93</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a3e9fcc020d96a6a061bc6d00cb8c4eb4"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a3e9fcc020d96a6a061bc6d00cb8c4eb4">ripple::NodeStore::BatchWriter::m_callback</a></div><div class="ttdeci">Callback & m_callback</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00089">BatchWriter.h:89</a></div></div>
|
|
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1NodeStore_1_1BatchWriter_1_1Callback_html_ab5b302399e56251fc0ef583354d200c2"><div class="ttname"><a href="structripple_1_1NodeStore_1_1BatchWriter_1_1Callback.html#ab5b302399e56251fc0ef583354d200c2">ripple::NodeStore::BatchWriter::Callback::operator=</a></div><div class="ttdeci">Callback & operator=(Callback const &)=delete</div></div>
|
|
<div class="ttc" id="aclassripple_1_1NodeStore_1_1BatchWriter_html_a45c6abdc7dcdc3cdb4a8c1e3bfac8cd8"><div class="ttname"><a href="classripple_1_1NodeStore_1_1BatchWriter.html#a45c6abdc7dcdc3cdb4a8c1e3bfac8cd8">ripple::NodeStore::BatchWriter::m_scheduler</a></div><div class="ttdeci">Scheduler & m_scheduler</div><div class="ttdef"><b>Definition:</b> <a href="BatchWriter_8h_source.html#l00090">BatchWriter.h:90</a></div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|