| 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::lock_stat_print()</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="lock.html" title="Chapter 7. The DbLock Handle" /> |
| 11 | <link rel="prev" href="lockstat.html" title="DbEnv::lock_stat()" /> |
| 12 | <link rel="next" href="lockvec.html" title="DbEnv::lock_vec()" /> |
| 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::lock_stat_print()</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="lockstat.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 7. |
| 26 | The DbLock Handle |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="lockvec.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="lockstat_print"></a>DbEnv::lock_stat_print()</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db_cxx.h> |
| 42 | |
| 43 | int |
| 44 | DbEnv::lock_stat_print(u_int32_t flags);</pre> |
| 45 | <p> |
| 46 | The <code class="methodname">DbEnv::lock_stat_print()</code> method displays the locking subsystem |
| 47 | statistical information, as described for the <code class="methodname">DbEnv::lock_stat()</code> |
| 48 | method. The information is printed to a specified output channel (see |
| 49 | the <a class="xref" href="envset_msgfile.html" title="DbEnv::set_msgfile()">DbEnv::set_msgfile()</a> |
| 50 | method for more information), or passed to an application callback |
| 51 | function (see the |
| 52 | <a class="xref" href="envset_msgcall.html" title="DbEnv::set_msgcall()">DbEnv::set_msgcall()</a> |
| 53 | method for more information). |
| 54 | </p> |
| 55 | <p> |
| 56 | The <code class="methodname">DbEnv::lock_stat_print()</code> method may not be called before the |
| 57 | <a class="xref" href="envopen.html" title="DbEnv::open()">DbEnv::open()</a> method is |
| 58 | called. |
| 59 | </p> |
| 60 | <p> |
| 61 | The <code class="methodname">DbEnv::lock_stat_print()</code> <span> |
| 62 | |
| 63 | <span> |
| 64 | method either returns a non-zero error value or throws an |
| 65 | exception that encapsulates a non-zero error value on |
| 66 | failure, and returns 0 on success. |
| 67 | </span> |
| 68 | </span> |
| 69 | </p> |
| 70 | <div class="sect2" lang="en" xml:lang="en"> |
| 71 | <div class="titlepage"> |
| 72 | <div> |
| 73 | <div> |
| 74 | <h3 class="title"><a id="idp8118672"></a>Parameters</h3> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | <div class="sect3" lang="en" xml:lang="en"> |
| 79 | <div class="titlepage"> |
| 80 | <div> |
| 81 | <div> |
| 82 | <h4 class="title"><a id="idp8148784"></a>flags</h4> |
| 83 | </div> |
| 84 | </div> |
| 85 | </div> |
| 86 | <p> |
| 87 | The <span class="bold"><strong>flags</strong></span> parameter must be set to 0 |
| 88 | or by bitwise inclusively <span class="bold"><strong>OR</strong></span>'ing |
| 89 | together one or more of the following values: |
| 90 | </p> |
| 91 | <div class="itemizedlist"> |
| 92 | <ul type="disc"> |
| 93 | <li> |
| 94 | <p><a id="lockstat_print_DB_STAT_ALL"></a> |
| 95 | <code class="literal">DB_STAT_ALL</code> |
| 96 | </p> |
| 97 | <p> |
| 98 | Display all available information. For each object, |
| 99 | the amount of data displayed is limited to 100 |
| 100 | bytes, unless some other limit is set |
| 101 | |
| 102 | using the DB_CONFIG "set_data_len" parameter. |
| 103 | </p> |
| 104 | </li> |
| 105 | <li> |
| 106 | <p><a id="envsat_print_DB_STAT_CLEAR"></a> |
| 107 | <code class="literal">DB_STAT_CLEAR</code> |
| 108 | </p> |
| 109 | <p> |
| 110 | Reset statistics after displaying their values. |
| 111 | </p> |
| 112 | </li> |
| 113 | <li> |
| 114 | <p><a id="envsat_print_DB_STAT_LOCK_CONF"></a> |
| 115 | <code class="literal">DB_STAT_LOCK_CONF</code> |
| 116 | </p> |
| 117 | <p> |
| 118 | Display the lock conflict matrix. |
| 119 | </p> |
| 120 | </li> |
| 121 | <li> |
| 122 | <p><a id="envsat_print_DB_STAT_LOCK_LOCKERS"></a> |
| 123 | <code class="literal">DB_STAT_LOCK_LOCKERS</code> |
| 124 | </p> |
| 125 | <p> |
| 126 | Display the lockers within hash chains. |
| 127 | </p> |
| 128 | </li> |
| 129 | <li> |
| 130 | <p><a id="envsat_print_DB_STAT_LOCK_OBJECTS"></a> |
| 131 | <code class="literal">DB_STAT_LOCK_OBJECTS</code> |
| 132 | </p> |
| 133 | <p> |
| 134 | Display the lock objects within hash chains. For |
| 135 | each object, the amount of data displayed is |
| 136 | limited to 100 bytes, unless some other limit is |
| 137 | set |
| 138 | |
| 139 | using the DB_CONFIG "set_data_len" parameter. |
| 140 | </p> |
| 141 | </li> |
| 142 | <li> |
| 143 | <p><a id="envsat_print_DB_STAT_LOCK_PARAMS"></a> |
| 144 | <code class="literal">DB_STAT_LOCK_PARAMS</code> |
| 145 | </p> |
| 146 | <p> |
| 147 | Display the locking subsystem parameters. |
| 148 | </p> |
| 149 | </li> |
| 150 | </ul> |
| 151 | </div> |
| 152 | </div> |
| 153 | </div> |
| 154 | <div class="sect2" lang="en" xml:lang="en"> |
| 155 | <div class="titlepage"> |
| 156 | <div> |
| 157 | <div> |
| 158 | <h3 class="title"><a id="idp8176616"></a>Class</h3> |
| 159 | </div> |
| 160 | </div> |
| 161 | </div> |
| 162 | <p> |
| 163 | <a class="link" href="env.html" title="Chapter 5. The DbEnv Handle">DbEnv</a>, |
| 164 | <a class="link" href="lock.html" title="Chapter 7. The DbLock Handle">DbLock</a> |
| 165 | </p> |
| 166 | </div> |
| 167 | <div class="sect2" lang="en" xml:lang="en"> |
| 168 | <div class="titlepage"> |
| 169 | <div> |
| 170 | <div> |
| 171 | <h3 class="title"><a id="idp8167424"></a>See Also</h3> |
| 172 | </div> |
| 173 | </div> |
| 174 | </div> |
| 175 | <p> |
| 176 | <a class="xref" href="lock.html#locklist" title="Locking Subsystem and Related Methods">Locking Subsystem and Related Methods</a> |
| 177 | </p> |
| 178 | </div> |
| 179 | </div> |
| 180 | <div class="navfooter"> |
| 181 | <hr /> |
| 182 | <table width="100%" summary="Navigation footer"> |
| 183 | <tr> |
| 184 | <td width="40%" align="left"><a accesskey="p" href="lockstat.html">Prev</a> </td> |
| 185 | <td width="20%" align="center"> |
| 186 | <a accesskey="u" href="lock.html">Up</a> |
| 187 | </td> |
| 188 | <td width="40%" align="right"> <a accesskey="n" href="lockvec.html">Next</a></td> |
| 189 | </tr> |
| 190 | <tr> |
| 191 | <td width="40%" align="left" valign="top">DbEnv::lock_stat() </td> |
| 192 | <td width="20%" align="center"> |
| 193 | <a accesskey="h" href="index.html">Home</a> |
| 194 | </td> |
| 195 | <td width="40%" align="right" valign="top"> DbEnv::lock_vec()</td> |
| 196 | </tr> |
| 197 | </table> |
| 198 | </div> |
| 199 | </body> |
| 200 | </html> |