~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/docs/api_java/memp_trickle.html

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--$Id: memp_trickle.so,v 10.22 2001/05/05 01:49:16 bostic Exp $-->
 
2
<!--Copyright 1997-2001 by Sleepycat Software, Inc.-->
 
3
<!--All rights reserved.-->
 
4
<html>
 
5
<head>
 
6
<title>Berkeley DB: DbEnv.memp_trickle</title>
 
7
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
 
8
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
 
9
</head>
 
10
<body bgcolor=white>
 
11
<a name="2"><!--meow--></a>
 
12
<table width="100%"><tr valign=top>
 
13
<td>
 
14
<h1>DbEnv.memp_trickle</h1>
 
15
</td>
 
16
<td align=right>
 
17
<a href="../api_java/java_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
 
18
</td></tr></table>
 
19
<hr size=1 noshade>
 
20
<tt>
 
21
<h3><pre>
 
22
import com.sleepycat.db.*;
 
23
<p>
 
24
public int memp_trickle(int pct)
 
25
        throws DbException;
 
26
</pre></h3>
 
27
<h1>Description</h1>
 
28
<p>The DbEnv.memp_trickle method ensures that at least <b>pct</b> percent of
 
29
the pages in the shared memory pool are clean by writing dirty pages to
 
30
their backing files.
 
31
The number of pages that were written to reach the correct percentage is
 
32
returned.
 
33
<p>The purpose of the DbEnv.memp_trickle function is to enable a memory
 
34
pool manager to ensure that a page is always available for reading in new
 
35
information without having to wait for a write.
 
36
<p>The DbEnv.memp_trickle method throws an exception that encapsulates a non-zero error value on
 
37
failure.
 
38
<h1>Errors</h1>
 
39
<p>The DbEnv.memp_trickle method may fail and throw an exception encapsulating a non-zero error for the following conditions:
 
40
<p><dl compact>
 
41
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
 
42
</dl>
 
43
<p>The DbEnv.memp_trickle method may fail and throw an exception for errors specified for other Berkeley DB and C library or system methods.
 
44
If a catastrophic error has occurred, the DbEnv.memp_trickle method may fail and throw
 
45
a <a href="../api_java/runrec_class.html">DbRunRecoveryException</a>, in which case all subsequent Berkeley DB calls
 
46
will fail in the same way.
 
47
<h1>Class</h1>
 
48
<a href="../api_java/dbenv_class.html">DbEnv</a>
 
49
<h1>See Also</h1>
 
50
<a href="../api_java/memp_stat.html">DbEnv.memp_fstat</a>,
 
51
<a href="../api_java/memp_stat.html">DbEnv.memp_stat</a>,
 
52
and
 
53
<a href="../api_java/memp_trickle.html">DbEnv.memp_trickle</a>.
 
54
</tt>
 
55
<table width="100%"><tr><td><br></td><td align=right>
 
56
<a href="../api_java/java_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
 
57
</td></tr></table>
 
58
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
 
59
</body>
 
60
</html>