Debian Codegraph @

docs/api_reference/CXX/envget_backup_config.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>DbEnv::get_backup_config()</title>
7 <link rel="stylesheet" href="apiReference.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB C++ API Reference" />
10 <link rel="up" href="env.html" title="Chapter 5.  The DbEnv Handle" />
11 <link rel="prev" href="envget_backup_callbacks.html" title="DbEnv::get_backup_callbacks()" />
12 <link rel="next" href="envget_flags.html" title="DbEnv::get_flags()" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DbEnv::get_backup_config()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="envget_backup_callbacks.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 5. 
26 The DbEnv Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="envget_flags.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="envget_backup_config"></a>DbEnv::get_backup_config()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 DB_ENV-&gt;get_backup_config(db_backup_config_t option, u_int32_t *valuep);</pre>
44 <p>
45 The <code class="methodname">DbEnv::get_backup_config()</code> method
46 retrieves the value set for hot backup tuning parameters. See the
47 <a class="xref" href="envbackup.html" title="DbEnv::backup()">DbEnv::backup()</a>
48 and
49 <a class="xref" href="envdbbackup.html" title="DbEnv::dbbackup()">DbEnv::dbbackup()</a>
50 methods for a description of the hot backup APIs. These tuning
51 parameters can be set using the
52 <a class="xref" href="envset_backup_config.html" title="DbEnv::set_backup_config()">DbEnv::set_backup_config()</a>
53 method.
54 </p>
55 <p>
56 The <code class="methodname">DbEnv::get_backup_config()</code> method may
57 be called at any time during the life of the application.
58 </p>
59 <p>
60 The <code class="methodname">DbEnv::get_backup_config()</code> <span>
61
62 <span>
63 method either returns a non-zero error value or throws an
64 exception that encapsulates a non-zero error value on
65 failure, and returns 0 on success.
66 </span>
67 </span>
68 </p>
69 <div class="sect2" lang="en" xml:lang="en">
70 <div class="titlepage">
71 <div>
72 <div>
73 <h3 class="title"><a id="idp6839168"></a>Parameters</h3>
74 </div>
75 </div>
76 </div>
77 <div class="sect3" lang="en" xml:lang="en">
78 <div class="titlepage">
79 <div>
80 <div>
81 <h4 class="title"><a id="idp6838416"></a>option</h4>
82 </div>
83 </div>
84 </div>
85 <p>
86 The <span class="bold"><strong>option</strong></span> parameter
87 identifies the backup parameter to be retrieved. It
88 must be one of the following:
89 </p>
90 <div class="itemizedlist">
91 <ul type="disc">
92 <li>
93 <p>
94 <code class="literal">DB_BACKUP_WRITE_DIRECT</code>
95 </p>
96 <p>
97 Turning this on causes direct I/O to be used when
98 writing pages to the disk.
99 </p>
100 </li>
101 <li>
102 <p>
103 <code class="literal">DB_BACKUP_READ_COUNT</code>
104 </p>
105 <p>
106 Configures the number of pages to read before
107 pausing.
108 </p>
109 </li>
110 <li>
111 <p>
112 <code class="literal">DB_BACKUP_READ_SLEEP</code>
113 </p>
114 <p>
115 Configures the number of microseconds to sleep
116 between batches of reads.
117 </p>
118 </li>
119 <li>
120 <p>
121 <code class="literal">DB_BACKUP_SIZE</code>
122 </p>
123 <p>
124 Configures the size of the buffer, in megabytes, to
125 read from the database.
126 </p>
127 </li>
128 </ul>
129 </div>
130 </div>
131 <div class="sect3" lang="en" xml:lang="en">
132 <div class="titlepage">
133 <div>
134 <div>
135 <h4 class="title"><a id="idp6852008"></a>valuep</h4>
136 </div>
137 </div>
138 </div>
139 <p>
140 The <span class="bold"><strong>valuep</strong></span> parameter
141 references memory into which is copied the current value of the
142 backup tuning parameter identified by the
143 <span class="bold"><strong>option</strong></span> parameter.
144 </p>
145 </div>
146 </div>
147 <div class="sect2" lang="en" xml:lang="en">
148 <div class="titlepage">
149 <div>
150 <div>
151 <h3 class="title"><a id="idp6840944"></a>Class</h3>
152 </div>
153 </div>
154 </div>
155 <p>
156 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>,
157 </p>
158 </div>
159 <div class="sect2" lang="en" xml:lang="en">
160 <div class="titlepage">
161 <div>
162 <div>
163 <h3 class="title"><a id="idp6853736"></a>See Also</h3>
164 </div>
165 </div>
166 </div>
167 <p>
168 <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a>,
169 <a class="xref" href="envset_backup_config.html" title="DbEnv::set_backup_config()">DbEnv::set_backup_config()</a>,
170 <a class="xref" href="envbackup.html" title="DbEnv::backup()">DbEnv::backup()</a>,
171 <a class="xref" href="envdbbackup.html" title="DbEnv::dbbackup()">DbEnv::dbbackup()</a>
172 </p>
173 </div>
174 </div>
175 <div class="navfooter">
176 <hr />
177 <table width="100%" summary="Navigation footer">
178 <tr>
179 <td width="40%" align="left"><a accesskey="p" href="envget_backup_callbacks.html">Prev</a> </td>
180 <td width="20%" align="center">
181 <a accesskey="u" href="env.html">Up</a>
182 </td>
183 <td width="40%" align="right"> <a accesskey="n" href="envget_flags.html">Next</a></td>
184 </tr>
185 <tr>
186 <td width="40%" align="left" valign="top">DbEnv::get_backup_callbacks() </td>
187 <td width="20%" align="center">
188 <a accesskey="h" href="index.html">Home</a>
189 </td>
190 <td width="40%" align="right" valign="top"> DbEnv::get_flags()</td>
191 </tr>
192 </table>
193 </div>
194 </body>
195 </html>