CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/share/doc/db4-devel-4.7.25/api_cxx/
Upload File :
Current File : //proc/2/root/usr/share/doc/db4-devel-4.7.25/api_cxx/rep_request.html

<!--$Id: rep_request.so,v 1.5 2008/02/20 19:01:48 sue Exp $-->
<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB: DbEnv::rep_set_request</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<table width="100%"><tr valign=top>
<td>
<b>DbEnv::rep_set_request</b>
</td>
<td align=right>
<a href="../../db4-devel-4.7.25/api_cxx/api_core.html"><img src="../../db4-devel-4.7.25/images/api.gif" alt="API"></a>
<a href="../../db4-devel-4.7.25/ref/toc.html"><img src="../../db4-devel-4.7.25/images/ref.gif" alt="Ref"></a></td>
</tr></table>
<hr size=1 noshade>
<tt>
<b><pre>
#include &lt;db_cxx.h&gt;
<p>
int
DbEnv::rep_set_request(u_int32_t min, u_int32_t max);
<p>
int
DbEnv::rep_get_request(u_int32_t *minp, u_int32_t *maxp);
</pre></b>
<hr size=1 noshade>
<b>Description: DbEnv::rep_set_request</b>
<p>The DbEnv::rep_set_request method sets a threshold for the minimum and maximum
time that a client waits before requesting retransmission of a missing
message.  Specifically, if the client detects a gap in the sequence
of incoming log records or database pages, Berkeley DB will
wait for at least <b>min</b> microseconds before requesting
retransmission of the missing record.  Berkeley DB will double that
amount before requesting the same missing record again, and so on, up
to a maximum threshold of <b>max</b> microseconds.</p>
<p>These values are thresholds only.  Since Berkeley DB has no thread available in
the library as a timer, the threshold is only checked when a thread
enters the Berkeley DB library to process an incoming replication message.
Any amount of time may have passed since the last message arrived and
Berkeley DB only checks whether the amount of time since a request was made
is beyond the threshold value or not.</p>
<p>By default the minimum is 40000 and the maximum is 1280000 (1.28 seconds).
These defaults are fairly arbitrary and the application likely needs
to adjust these.  The values should be based on expected load and
performance characteristics of the master and client host platforms
and transport infrastructure as well as round-trip message time.</p>
<p>The database environment's replication subsystem may also be configured using the
environment's <a href="../../db4-devel-4.7.25/ref/env/db_config.html#DB_CONFIG">DB_CONFIG</a> file.  The syntax of the entry in that
file is a single line with the string "rep_set_request", one or more whitespace
characters, and the request times specified in two parts: the min and the max.
For example, "rep_set_request 40000 1280000".
Because the <a href="../../db4-devel-4.7.25/ref/env/db_config.html#DB_CONFIG">DB_CONFIG</a> file is read when the database environment
is opened, it will silently overrule configuration done before that
time.</p>
<p>The DbEnv::rep_set_request method configures a database environment, not only operations
performed using the specified <a href="../../db4-devel-4.7.25/api_cxx/env_class.html">DbEnv</a> handle.</p>
<p>The DbEnv::rep_set_request method may be called at any time during the life of the
application.</p>
<p>The DbEnv::rep_set_request method
either returns a non-zero error value
or throws an exception that encapsulates a non-zero error value on
failure, and returns 0 on success.
</p>
<b>Parameters</b> <br>
 <b>max</b><ul compact><li>The maximum number of microseconds a client waits before
requesting retransmission.</ul>
 <b>min</b><ul compact><li>The minimum number of microseconds a client waits before
requesting retransmission.</ul>
<br>
<br><b>Errors</b>
<p>The DbEnv::rep_set_request method
may fail and throw
<a href="../../db4-devel-4.7.25/api_cxx/except_class.html">DbException</a>,
encapsulating one of the following non-zero errors, or return one of
the following non-zero errors:</p>
<br>
<b>EINVAL</b><ul compact><li>An
invalid flag value or parameter was specified.</ul>
<br>
<hr size=1 noshade>
<b>Description: DbEnv::rep_get_request</b>
<p>The DbEnv::rep_get_request method returns the minimum and maximum number of
microseconds a client waits before requesting retransmission.</p>
<p>The DbEnv::rep_get_request method may be called at any time during the life of the
application.</p>
<p>The DbEnv::rep_get_request method
either returns a non-zero error value
or throws an exception that encapsulates a non-zero error value on
failure, and returns 0 on success.
</p>
<b>Parameters</b> <br>
 <b>maxp</b><ul compact><li>The <b>maxp</b> parameter references memory into which
 the maximum number of microseconds a client will wait before requesting
retransmission is copied.</ul> 
 <b>minp</b><ul compact><li>The <b>minp</b> parameter references memory into which
 the minimum number of microseconds a client will wait before requesting
retransmission is copied.</ul> 
<br>
<hr size=1 noshade>
<br><b>Class</b>
<a href="../../db4-devel-4.7.25/api_cxx/env_class.html">DbEnv</a>
<br><b>See Also</b>
<a href="../../db4-devel-4.7.25/api_cxx/rep_list.html">Replication and Related Methods</a>
</tt>
<table width="100%"><tr><td><br></td><td align=right>
<a href="../../db4-devel-4.7.25/api_cxx/api_core.html"><img src="../../db4-devel-4.7.25/images/api.gif" alt="API"></a><a href="../../db4-devel-4.7.25/ref/toc.html"><img src="../../db4-devel-4.7.25/images/ref.gif" alt="Ref"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
</body>
</html>

Copyright 2K16 - 2K18 Indonesian Hacker Rulez