Debian Codegraph @

docs/java/com/sleepycat/db/EnvironmentConfig.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.6.0_51) on Mon Sep 09 11:47:04 EDT 2013 -->
6 <TITLE>
7 EnvironmentConfig (Oracle - Berkeley DB Java API)
8 </TITLE>
9
10 <META NAME="date" CONTENT="2013-09-09">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="EnvironmentConfig (Oracle - Berkeley DB Java API)";
19 }
20 }
21 </SCRIPT>
22 <NOSCRIPT>
23 </NOSCRIPT>
24
25 </HEAD>
26
27 <BODY BGCOLOR="white" onload="windowTitle();">
28 <HR>
29
30
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35 <TR>
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/EnvironmentConfig.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48 </TR>
49 </TABLE>
50 </TD>
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
53 </TD>
54 </TR>
55
56 <TR>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 &nbsp;<A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61 <A HREF="../../../index.html?com/sleepycat/db/EnvironmentConfig.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="EnvironmentConfig.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
63 &nbsp;<SCRIPT type="text/javascript">
64 <!--
65 if(window==top) {
66 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 }
68 //-->
69 </SCRIPT>
70 <NOSCRIPT>
71 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
72 </NOSCRIPT>
73
74
75 </FONT></TD>
76 </TR>
77 <TR>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82 </TR>
83 </TABLE>
84 <A NAME="skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
86
87 <HR>
88 <!-- ======== START OF CLASS DATA ======== -->
89 <H2>
90 <FONT SIZE="-1">
91 com.sleepycat.db</FONT>
92 <BR>
93 Class EnvironmentConfig</H2>
94 <PRE>
95 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.db.EnvironmentConfig</B>
97 </PRE>
98 <DL>
99 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</A></DD>
100 </DL>
101 <HR>
102 <DL>
103 <DT><PRE>public class <B>EnvironmentConfig</B><DT>extends <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</A></DL>
104 </PRE>
105
106 <P>
107 Specifies the attributes of an environment.
108 <p>
109 To change the default settings for a database environment, an application
110 creates a configuration object, customizes settings and uses it for
111 environment construction. The set methods of this class validate the
112 configuration values when the method is invoked. An
113 IllegalArgumentException is thrown if the value is not valid for that
114 attribute.
115 <p>
116 All commonly used environment attributes have convenience setter/getter
117 methods defined in this class. For example, to change the default
118 transaction timeout setting for an environment, the application should
119 do the following:
120 <p>
121 <blockquote><pre>
122 // customize an environment configuration
123 EnvironmentConfig envConfig = new EnvironmentConfig();
124 envConfig.setTxnTimeout(10000); // will throw if timeout value is invalid
125 // Open the environment.
126 Environment myEnvironment = new Environment(home, envConfig);
127 </pre></blockquote>
128 Environment configuration follows this order of precedence:
129 <ol>
130 <li>Configuration parameters specified in &lt;environment
131 home&gt;/je.properties take first precedence.
132 <li>Configuration parameters set in the EnvironmentConfig object used
133 at Environment construction are next.
134 <li>Any configuration parameters not set by the application are set to
135 system defaults.
136 </ol>
137 <p>
138 An EnvironmentConfig can be used to specify both mutable and immutable
139 environment properties. Immutable properties may be specified when the
140 first Environment handle (instance) is opened for a given physical
141 environment. When more handles are opened for the same environment, the
142 following rules apply:
143 <p>
144 <ol>
145 <li>Immutable properties must equal the original values specified when
146 constructing an Environment handle for an already open environment. When a
147 mismatch occurs, an exception is thrown.
148 <li>Mutable properties are ignored when constructing an Environment
149 handle for an already open environment.
150 </ol>
151 <p>
152 After an Environment has been constructed, its mutable properties may
153 be changed using
154 <A HREF="../../../com/sleepycat/db/Environment.html#setConfig(com.sleepycat.db.EnvironmentConfig)"><CODE>Environment.setConfig(com.sleepycat.db.EnvironmentConfig)</CODE></A>.
155 <p>
156 <P>
157
158 <P>
159 <HR>
160
161 <P>
162 <!-- =========== FIELD SUMMARY =========== -->
163
164 <A NAME="field_summary"><!-- --></A>
165 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
166 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
167 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
168 <B>Field Summary</B></FONT></TH>
169 </TR>
170 <TR BGCOLOR="white" CLASS="TableRowColor">
171 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172 <CODE>static&nbsp;<A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db">EnvironmentConfig</A></CODE></FONT></TD>
173 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#DEFAULT">DEFAULT</A></B></CODE>
174
175 <BR>
176 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
177 </TR>
178 </TABLE>
179 &nbsp;
180 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
181
182 <A NAME="constructor_summary"><!-- --></A>
183 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
184 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
185 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
186 <B>Constructor Summary</B></FONT></TH>
187 </TR>
188 <TR BGCOLOR="white" CLASS="TableRowColor">
189 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#EnvironmentConfig()">EnvironmentConfig</A></B>()</CODE>
190
191 <BR>
192 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an EnvironmentConfig initialized with the system default settings.</TD>
193 </TR>
194 </TABLE>
195 &nbsp;
196 <!-- ========== METHOD SUMMARY =========== -->
197
198 <A NAME="method_summary"><!-- --></A>
199 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
200 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
201 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
202 <B>Method Summary</B></FONT></TH>
203 </TR>
204 <TR BGCOLOR="white" CLASS="TableRowColor">
205 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206 <CODE>&nbsp;void</CODE></FONT></TD>
207 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#addDataDir(java.io.File)">addDataDir</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;dataDir)</CODE>
208
209 <BR>
210 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the path of a directory to be used as the location of the access
211 method database files.</TD>
212 </TR>
213 <TR BGCOLOR="white" CLASS="TableRowColor">
214 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215 <CODE>&nbsp;void</CODE></FONT></TD>
216 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#addDataDir(java.lang.String)">addDataDir</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;dataDir)</CODE>
217
218 <BR>
219 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#addDataDir(java.io.File)"><CODE>addDataDir(java.io.File)</CODE></A></I></TD>
220 </TR>
221 <TR BGCOLOR="white" CLASS="TableRowColor">
222 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
223 <CODE>&nbsp;void</CODE></FONT></TD>
224 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#addReplicationManagerSite(com.sleepycat.db.ReplicationManagerSiteConfig)">addReplicationManagerSite</A></B>(<A HREF="../../../com/sleepycat/db/ReplicationManagerSiteConfig.html" title="class in com.sleepycat.db">ReplicationManagerSiteConfig</A>&nbsp;repmgrSiteConfig)</CODE>
225
226 <BR>
227 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure a site in a replication group.</TD>
228 </TR>
229 <TR BGCOLOR="white" CLASS="TableRowColor">
230 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231 <CODE>&nbsp;boolean</CODE></FONT></TD>
232 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getAllowCreate()">getAllowCreate</A></B>()</CODE>
233
234 <BR>
235 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured to create any
236 underlying files, as necessary.</TD>
237 </TR>
238 <TR BGCOLOR="white" CLASS="TableRowColor">
239 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db">BackupHandler</A></CODE></FONT></TD>
241 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getBackupHandler()">getBackupHandler</A></B>()</CODE>
242
243 <BR>
244 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db"><CODE>BackupHandler</CODE></A>
245 used to override default hot backup behavior.</TD>
246 </TR>
247 <TR BGCOLOR="white" CLASS="TableRowColor">
248 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249 <CODE>&nbsp;int</CODE></FONT></TD>
250 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getBackupReadCount()">getBackupReadCount</A></B>()</CODE>
251
252 <BR>
253 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of pages to read before pausing during the hot backup.</TD>
254 </TR>
255 <TR BGCOLOR="white" CLASS="TableRowColor">
256 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257 <CODE>&nbsp;int</CODE></FONT></TD>
258 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getBackupReadSleep()">getBackupReadSleep</A></B>()</CODE>
259
260 <BR>
261 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of microseconds to sleep between batches of reads during
262 a hot backup.</TD>
263 </TR>
264 <TR BGCOLOR="white" CLASS="TableRowColor">
265 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
266 <CODE>&nbsp;int</CODE></FONT></TD>
267 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getBackupSize()">getBackupSize</A></B>()</CODE>
268
269 <BR>
270 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the size of the buffer, in megabytes, to read from the database
271 during a hot backup.</TD>
272 </TR>
273 <TR BGCOLOR="white" CLASS="TableRowColor">
274 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
275 <CODE>&nbsp;boolean</CODE></FONT></TD>
276 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getBackupWriteDirect()">getBackupWriteDirect</A></B>()</CODE>
277
278 <BR>
279 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return return true if direct I/O is used when writing pages to the disk
280 during a hot backup.</TD>
281 </TR>
282 <TR BGCOLOR="white" CLASS="TableRowColor">
283 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284 <CODE>&nbsp;int</CODE></FONT></TD>
285 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getCacheCount()">getCacheCount</A></B>()</CODE>
286
287 <BR>
288 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of shared memory buffer pools, that is, the number
289 of cache regions.</TD>
290 </TR>
291 <TR BGCOLOR="white" CLASS="TableRowColor">
292 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
293 <CODE>&nbsp;long</CODE></FONT></TD>
294 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getCacheMax()">getCacheMax</A></B>()</CODE>
295
296 <BR>
297 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the maximum size of the cache.</TD>
298 </TR>
299 <TR BGCOLOR="white" CLASS="TableRowColor">
300 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
301 <CODE>&nbsp;int</CODE></FONT></TD>
302 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getCachePageSize()">getCachePageSize</A></B>()</CODE>
303
304 <BR>
305 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the environment's current page size setting.</TD>
306 </TR>
307 <TR BGCOLOR="white" CLASS="TableRowColor">
308 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
309 <CODE>&nbsp;long</CODE></FONT></TD>
310 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getCacheSize()">getCacheSize</A></B>()</CODE>
311
312 <BR>
313 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the size of the shared memory buffer pool, that is, the cache.</TD>
314 </TR>
315 <TR BGCOLOR="white" CLASS="TableRowColor">
316 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
317 <CODE>&nbsp;int</CODE></FONT></TD>
318 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getCacheTableSize()">getCacheTableSize</A></B>()</CODE>
319
320 <BR>
321 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the environment's current table size setting.</TD>
322 </TR>
323 <TR BGCOLOR="white" CLASS="TableRowColor">
324 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
325 <CODE>&nbsp;boolean</CODE></FONT></TD>
326 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getCDBLockAllDatabases()">getCDBLockAllDatabases</A></B>()</CODE>
327
328 <BR>
329 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the Concurrent Data Store applications are configured to
330 perform locking on an environment-wide basis rather than on a
331 per-database basis.</TD>
332 </TR>
333 <TR BGCOLOR="white" CLASS="TableRowColor">
334 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
335 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
336 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getCreateDir()">getCreateDir</A></B>()</CODE>
337
338 <BR>
339 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the path of a directory to be used as the location to create the
340 access method database files.</TD>
341 </TR>
342 <TR BGCOLOR="white" CLASS="TableRowColor">
343 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
344 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>[]</CODE></FONT></TD>
345 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getDataDirs()">getDataDirs</A></B>()</CODE>
346
347 <BR>
348 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the array of data directories.</TD>
349 </TR>
350 <TR BGCOLOR="white" CLASS="TableRowColor">
351 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
352 <CODE>&nbsp;boolean</CODE></FONT></TD>
353 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getDirectDatabaseIO()">getDirectDatabaseIO</A></B>()</CODE>
354
355 <BR>
356 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment has been configured to not buffer
357 database files.</TD>
358 </TR>
359 <TR BGCOLOR="white" CLASS="TableRowColor">
360 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
361 <CODE>&nbsp;boolean</CODE></FONT></TD>
362 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getDirectLogIO()">getDirectLogIO</A></B>()</CODE>
363
364 <BR>
365 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment has been configured to not buffer
366 log files.</TD>
367 </TR>
368 <TR BGCOLOR="white" CLASS="TableRowColor">
369 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
370 <CODE>&nbsp;boolean</CODE></FONT></TD>
371 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getDsyncDatabases()">getDsyncDatabases</A></B>()</CODE>
372
373 <BR>
374 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment has been configured to flush database
375 writes to the backing disk before returning from the write system call.</TD>
376 </TR>
377 <TR BGCOLOR="white" CLASS="TableRowColor">
378 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
379 <CODE>&nbsp;boolean</CODE></FONT></TD>
380 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getDsyncLog()">getDsyncLog</A></B>()</CODE>
381
382 <BR>
383 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment has been configured to flush log
384 writes to the backing disk before returning from the write system
385 call.</TD>
386 </TR>
387 <TR BGCOLOR="white" CLASS="TableRowColor">
388 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
389 <CODE>&nbsp;boolean</CODE></FONT></TD>
390 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getEncrypted()">getEncrypted</A></B>()</CODE>
391
392 <BR>
393 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database environment has been configured to perform
394 encryption.</TD>
395 </TR>
396 <TR BGCOLOR="white" CLASS="TableRowColor">
397 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
398 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db">ErrorHandler</A></CODE></FONT></TD>
399 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getErrorHandler()">getErrorHandler</A></B>()</CODE>
400
401 <BR>
402 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the function to be called if an error occurs.</TD>
403 </TR>
404 <TR BGCOLOR="white" CLASS="TableRowColor">
405 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
406 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
407 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getErrorPrefix()">getErrorPrefix</A></B>()</CODE>
408
409 <BR>
410 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the prefix string that appears before error messages.</TD>
411 </TR>
412 <TR BGCOLOR="white" CLASS="TableRowColor">
413 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
414 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></CODE></FONT></TD>
415 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getErrorStream()">getErrorStream</A></B>()</CODE>
416
417 <BR>
418 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the OutputStream for displaying error messages.</TD>
419 </TR>
420 <TR BGCOLOR="white" CLASS="TableRowColor">
421 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
422 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/EventHandler.html" title="interface in com.sleepycat.db">EventHandler</A></CODE></FONT></TD>
423 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getEventHandler()">getEventHandler</A></B>()</CODE>
424
425 <BR>
426 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the object's methods to be called when a triggered event occurs.</TD>
427 </TR>
428 <TR BGCOLOR="white" CLASS="TableRowColor">
429 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
430 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/FeedbackHandler.html" title="interface in com.sleepycat.db">FeedbackHandler</A></CODE></FONT></TD>
431 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getFeedbackHandler()">getFeedbackHandler</A></B>()</CODE>
432
433 <BR>
434 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the object's methods to be called to provide feedback.</TD>
435 </TR>
436 <TR BGCOLOR="white" CLASS="TableRowColor">
437 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
438 <CODE>&nbsp;boolean</CODE></FONT></TD>
439 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getHotbackupInProgress()">getHotbackupInProgress</A></B>()</CODE>
440
441 <BR>
442 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if a "hot backup" is in progress.</TD>
443 </TR>
444 <TR BGCOLOR="white" CLASS="TableRowColor">
445 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
446 <CODE>&nbsp;boolean</CODE></FONT></TD>
447 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getInitializeCache()">getInitializeCache</A></B>()</CODE>
448
449 <BR>
450 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured with a shared
451 memory buffer pool.</TD>
452 </TR>
453 <TR BGCOLOR="white" CLASS="TableRowColor">
454 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
455 <CODE>&nbsp;boolean</CODE></FONT></TD>
456 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getInitializeCDB()">getInitializeCDB</A></B>()</CODE>
457
458 <BR>
459 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured for the Concurrent
460 Data Store product.</TD>
461 </TR>
462 <TR BGCOLOR="white" CLASS="TableRowColor">
463 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
464 <CODE>&nbsp;boolean</CODE></FONT></TD>
465 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getInitializeLocking()">getInitializeLocking</A></B>()</CODE>
466
467 <BR>
468 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured for locking.</TD>
469 </TR>
470 <TR BGCOLOR="white" CLASS="TableRowColor">
471 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
472 <CODE>&nbsp;boolean</CODE></FONT></TD>
473 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getInitializeLogging()">getInitializeLogging</A></B>()</CODE>
474
475 <BR>
476 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured for logging.</TD>
477 </TR>
478 <TR BGCOLOR="white" CLASS="TableRowColor">
479 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
480 <CODE>&nbsp;boolean</CODE></FONT></TD>
481 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getInitializeRegions()">getInitializeRegions</A></B>()</CODE>
482
483 <BR>
484 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment has been configured to page-fault
485 shared regions into memory when initially creating or joining a
486 database environment.</TD>
487 </TR>
488 <TR BGCOLOR="white" CLASS="TableRowColor">
489 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
490 <CODE>&nbsp;boolean</CODE></FONT></TD>
491 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getInitializeReplication()">getInitializeReplication</A></B>()</CODE>
492
493 <BR>
494 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured for replication.</TD>
495 </TR>
496 <TR BGCOLOR="white" CLASS="TableRowColor">
497 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
498 <CODE>&nbsp;int</CODE></FONT></TD>
499 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getInitialMutexes()">getInitialMutexes</A></B>()</CODE>
500
501 <BR>
502 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of mutexes allocated when an environment is created.</TD>
503 </TR>
504 <TR BGCOLOR="white" CLASS="TableRowColor">
505 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
506 <CODE>&nbsp;boolean</CODE></FONT></TD>
507 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getJoinEnvironment()">getJoinEnvironment</A></B>()</CODE>
508
509 <BR>
510 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the handle is configured to join an existing environment.</TD>
511 </TR>
512 <TR BGCOLOR="white" CLASS="TableRowColor">
513 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
514 <CODE>&nbsp;byte[][]</CODE></FONT></TD>
515 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLockConflicts()">getLockConflicts</A></B>()</CODE>
516
517 <BR>
518 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the locking conflicts matrix.</TD>
519 </TR>
520 <TR BGCOLOR="white" CLASS="TableRowColor">
521 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
522 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/LockDetectMode.html" title="class in com.sleepycat.db">LockDetectMode</A></CODE></FONT></TD>
523 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLockDetectMode()">getLockDetectMode</A></B>()</CODE>
524
525 <BR>
526 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the deadlock detector is configured to run whenever a lock
527 conflict occurs.</TD>
528 </TR>
529 <TR BGCOLOR="white" CLASS="TableRowColor">
530 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
531 <CODE>&nbsp;boolean</CODE></FONT></TD>
532 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLockDown()">getLockDown</A></B>()</CODE>
533
534 <BR>
535 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured to lock shared
536 environment files and memory-mapped databases into memory.</TD>
537 </TR>
538 <TR BGCOLOR="white" CLASS="TableRowColor">
539 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
540 <CODE>&nbsp;int</CODE></FONT></TD>
541 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLockPartitions()">getLockPartitions</A></B>()</CODE>
542
543 <BR>
544 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of lock table partitions in the Berkeley DB environment.</TD>
545 </TR>
546 <TR BGCOLOR="white" CLASS="TableRowColor">
547 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
548 <CODE>&nbsp;int</CODE></FONT></TD>
549 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLockTableSize()">getLockTableSize</A></B>()</CODE>
550
551 <BR>
552 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the lock hash table size.</TD>
553 </TR>
554 <TR BGCOLOR="white" CLASS="TableRowColor">
555 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
556 <CODE>&nbsp;long</CODE></FONT></TD>
557 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLockTimeout()">getLockTimeout</A></B>()</CODE>
558
559 <BR>
560 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database environment lock timeout value, in microseconds;
561 a timeout of 0 means no timeout is set.</TD>
562 </TR>
563 <TR BGCOLOR="white" CLASS="TableRowColor">
564 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
565 <CODE>&nbsp;boolean</CODE></FONT></TD>
566 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLogAutoRemove()">getLogAutoRemove</A></B>()</CODE>
567
568 <BR>
569 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the system has been configured to to automatically remove log
570 files that are no longer needed.</TD>
571 </TR>
572 <TR BGCOLOR="white" CLASS="TableRowColor">
573 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
574 <CODE>&nbsp;int</CODE></FONT></TD>
575 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLogBufferSize()">getLogBufferSize</A></B>()</CODE>
576
577 <BR>
578 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the size of the in-memory log buffer, in bytes.</TD>
579 </TR>
580 <TR BGCOLOR="white" CLASS="TableRowColor">
581 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
582 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
583 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLogDirectory()">getLogDirectory</A></B>()</CODE>
584
585 <BR>
586 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the path of a directory to be used as the location of logging files.</TD>
587 </TR>
588 <TR BGCOLOR="white" CLASS="TableRowColor">
589 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
590 <CODE>&nbsp;int</CODE></FONT></TD>
591 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLogFileMode()">getLogFileMode</A></B>()</CODE>
592
593 <BR>
594 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the absolute file mode for created log files.</TD>
595 </TR>
596 <TR BGCOLOR="white" CLASS="TableRowColor">
597 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
598 <CODE>&nbsp;boolean</CODE></FONT></TD>
599 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLogInMemory()">getLogInMemory</A></B>()</CODE>
600
601 <BR>
602 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured to maintain transaction logs
603 in memory rather than on disk.</TD>
604 </TR>
605 <TR BGCOLOR="white" CLASS="TableRowColor">
606 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
607 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/LogRecordHandler.html" title="interface in com.sleepycat.db">LogRecordHandler</A></CODE></FONT></TD>
608 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLogRecordHandler()">getLogRecordHandler</A></B>()</CODE>
609
610 <BR>
611 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the handler for application-specific log records.</TD>
612 </TR>
613 <TR BGCOLOR="white" CLASS="TableRowColor">
614 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
615 <CODE>&nbsp;int</CODE></FONT></TD>
616 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLogRegionSize()">getLogRegionSize</A></B>()</CODE>
617
618 <BR>
619 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the size of the underlying logging subsystem region.</TD>
620 </TR>
621 <TR BGCOLOR="white" CLASS="TableRowColor">
622 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
623 <CODE>&nbsp;boolean</CODE></FONT></TD>
624 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getLogZero()">getLogZero</A></B>()</CODE>
625
626 <BR>
627 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured to zero all pages of
628 new log files upon their creation.</TD>
629 </TR>
630 <TR BGCOLOR="white" CLASS="TableRowColor">
631 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
632 <CODE>&nbsp;int</CODE></FONT></TD>
633 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMaxLockers()">getMaxLockers</A></B>()</CODE>
634
635 <BR>
636 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the maximum number of lockers.</TD>
637 </TR>
638 <TR BGCOLOR="white" CLASS="TableRowColor">
639 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
640 <CODE>&nbsp;int</CODE></FONT></TD>
641 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMaxLockObjects()">getMaxLockObjects</A></B>()</CODE>
642
643 <BR>
644 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the maximum number of locked objects.</TD>
645 </TR>
646 <TR BGCOLOR="white" CLASS="TableRowColor">
647 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
648 <CODE>&nbsp;int</CODE></FONT></TD>
649 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMaxLocks()">getMaxLocks</A></B>()</CODE>
650
651 <BR>
652 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the maximum number of locks.</TD>
653 </TR>
654 <TR BGCOLOR="white" CLASS="TableRowColor">
655 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
656 <CODE>&nbsp;int</CODE></FONT></TD>
657 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMaxLogFileSize()">getMaxLogFileSize</A></B>()</CODE>
658
659 <BR>
660 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the maximum size of a single file in the log, in bytes.</TD>
661 </TR>
662 <TR BGCOLOR="white" CLASS="TableRowColor">
663 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
664 <CODE>&nbsp;int</CODE></FONT></TD>
665 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMaxMutexes()">getMaxMutexes</A></B>()</CODE>
666
667 <BR>
668 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the total number of mutexes allocated.</TD>
669 </TR>
670 <TR BGCOLOR="white" CLASS="TableRowColor">
671 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
672 <CODE>&nbsp;int</CODE></FONT></TD>
673 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMaxOpenFiles()">getMaxOpenFiles</A></B>()</CODE>
674
675 <BR>
676 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the maximum number of file descriptors that will be opened concurrently..</TD>
677 </TR>
678 <TR BGCOLOR="white" CLASS="TableRowColor">
679 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
680 <CODE>&nbsp;int</CODE></FONT></TD>
681 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMaxWrite()">getMaxWrite</A></B>()</CODE>
682
683 <BR>
684 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the maximum number of sequential write operations.</TD>
685 </TR>
686 <TR BGCOLOR="white" CLASS="TableRowColor">
687 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
688 <CODE>&nbsp;long</CODE></FONT></TD>
689 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMaxWriteSleep()">getMaxWriteSleep</A></B>()</CODE>
690
691 <BR>
692 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the microseconds to pause before scheduling further write operations.</TD>
693 </TR>
694 <TR BGCOLOR="white" CLASS="TableRowColor">
695 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
696 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/MessageHandler.html" title="interface in com.sleepycat.db">MessageHandler</A></CODE></FONT></TD>
697 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMessageHandler()">getMessageHandler</A></B>()</CODE>
698
699 <BR>
700 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the function to be called with an informational message.</TD>
701 </TR>
702 <TR BGCOLOR="white" CLASS="TableRowColor">
703 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
704 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></CODE></FONT></TD>
705 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMessageStream()">getMessageStream</A></B>()</CODE>
706
707 <BR>
708 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the OutputStream for displaying informational messages.</TD>
709 </TR>
710 <TR BGCOLOR="white" CLASS="TableRowColor">
711 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
712 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
713 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMetadataDir()">getMetadataDir</A></B>()</CODE>
714
715 <BR>
716 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the path of a directory to be used as the location to store the
717 persistent metadata.</TD>
718 </TR>
719 <TR BGCOLOR="white" CLASS="TableRowColor">
720 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
721 <CODE>&nbsp;long</CODE></FONT></TD>
722 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMMapSize()">getMMapSize</A></B>()</CODE>
723
724 <BR>
725 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the maximum file size, in bytes, for a file to be mapped into
726 the process address space.</TD>
727 </TR>
728 <TR BGCOLOR="white" CLASS="TableRowColor">
729 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
730 <CODE>&nbsp;long</CODE></FONT></TD>
731 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMode()">getMode</A></B>()</CODE>
732
733 <BR>
734 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the mode to use when creating underlying files and shared
735 memory segments.</TD>
736 </TR>
737 <TR BGCOLOR="white" CLASS="TableRowColor">
738 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
739 <CODE>&nbsp;boolean</CODE></FONT></TD>
740 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMultiversion()">getMultiversion</A></B>()</CODE>
741
742 <BR>
743 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the handle is configured to open all databases for multiversion
744 concurrency control.</TD>
745 </TR>
746 <TR BGCOLOR="white" CLASS="TableRowColor">
747 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
748 <CODE>&nbsp;int</CODE></FONT></TD>
749 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMutexAlignment()">getMutexAlignment</A></B>()</CODE>
750
751 <BR>
752 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the mutex alignment, in bytes.</TD>
753 </TR>
754 <TR BGCOLOR="white" CLASS="TableRowColor">
755 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
756 <CODE>&nbsp;int</CODE></FONT></TD>
757 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMutexIncrement()">getMutexIncrement</A></B>()</CODE>
758
759 <BR>
760 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of additional mutexes to allocate.</TD>
761 </TR>
762 <TR BGCOLOR="white" CLASS="TableRowColor">
763 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
764 <CODE>&nbsp;int</CODE></FONT></TD>
765 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMutexTestAndSetSpins()">getMutexTestAndSetSpins</A></B>()</CODE>
766
767 <BR>
768 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the test-and-set spin count.</TD>
769 </TR>
770 <TR BGCOLOR="white" CLASS="TableRowColor">
771 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
772 <CODE>&nbsp;boolean</CODE></FONT></TD>
773 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getNoLocking()">getNoLocking</A></B>()</CODE>
774
775 <BR>
776 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the system has been configured to grant all requested mutual
777 exclusion mutexes and database locks without regard for their actual
778 availability.</TD>
779 </TR>
780 <TR BGCOLOR="white" CLASS="TableRowColor">
781 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
782 <CODE>&nbsp;boolean</CODE></FONT></TD>
783 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getNoMMap()">getNoMMap</A></B>()</CODE>
784
785 <BR>
786 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the system has been configured to copy read-only database files
787 into the local cache instead of potentially mapping them into process
788 memory.</TD>
789 </TR>
790 <TR BGCOLOR="white" CLASS="TableRowColor">
791 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
792 <CODE>&nbsp;boolean</CODE></FONT></TD>
793 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getNoPanic()">getNoPanic</A></B>()</CODE>
794
795 <BR>
796 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the system has been configured to ignore any panic state in
797 the database environment.</TD>
798 </TR>
799 <TR BGCOLOR="white" CLASS="TableRowColor">
800 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
801 <CODE>&nbsp;boolean</CODE></FONT></TD>
802 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getOverwrite()">getOverwrite</A></B>()</CODE>
803
804 <BR>
805 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the system has been configured to overwrite files stored in
806 encrypted formats before deleting them.</TD>
807 </TR>
808 <TR BGCOLOR="white" CLASS="TableRowColor">
809 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
810 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/PanicHandler.html" title="interface in com.sleepycat.db">PanicHandler</A></CODE></FONT></TD>
811 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getPanicHandler()">getPanicHandler</A></B>()</CODE>
812
813 <BR>
814 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the function to be called if the database environment panics.</TD>
815 </TR>
816 <TR BGCOLOR="white" CLASS="TableRowColor">
817 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
818 <CODE>&nbsp;boolean</CODE></FONT></TD>
819 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getPrivate()">getPrivate</A></B>()</CODE>
820
821 <BR>
822 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured to only be accessed
823 by a single process.</TD>
824 </TR>
825 <TR BGCOLOR="white" CLASS="TableRowColor">
826 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
827 <CODE>&nbsp;int</CODE></FONT></TD>
828 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getRegionMemoryInitialSize(com.sleepycat.db.RegionResourceType)">getRegionMemoryInitialSize</A></B>(<A HREF="../../../com/sleepycat/db/RegionResourceType.html" title="class in com.sleepycat.db">RegionResourceType</A>&nbsp;resource)</CODE>
829
830 <BR>
831 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the inital memory configuration for a region resource.</TD>
832 </TR>
833 <TR BGCOLOR="white" CLASS="TableRowColor">
834 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
835 <CODE>&nbsp;long</CODE></FONT></TD>
836 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getRegionMemoryMax()">getRegionMemoryMax</A></B>()</CODE>
837
838 <BR>
839 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the maximum amount of memory that can be used by shared structures
840 in the main environment region.</TD>
841 </TR>
842 <TR BGCOLOR="white" CLASS="TableRowColor">
843 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
844 <CODE>&nbsp;boolean</CODE></FONT></TD>
845 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getRegister()">getRegister</A></B>()</CODE>
846
847 <BR>
848 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the check for process failure when the environment is opened.</TD>
849 </TR>
850 <TR BGCOLOR="white" CLASS="TableRowColor">
851 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
852 <CODE>&nbsp;int</CODE></FONT></TD>
853 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getReplicationClockskewFast()">getReplicationClockskewFast</A></B>()</CODE>
854
855 <BR>
856 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the current clock skew value for the fastest clock in the group of sites.</TD>
857 </TR>
858 <TR BGCOLOR="white" CLASS="TableRowColor">
859 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
860 <CODE>&nbsp;int</CODE></FONT></TD>
861 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getReplicationClockskewSlow()">getReplicationClockskewSlow</A></B>()</CODE>
862
863 <BR>
864 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the current clock skew value for the slowest clock in the group of sites.</TD>
865 </TR>
866 <TR BGCOLOR="white" CLASS="TableRowColor">
867 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
868 <CODE>&nbsp;boolean</CODE></FONT></TD>
869 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getReplicationInMemory()">getReplicationInMemory</A></B>()</CODE>
870
871 <BR>
872 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if internal replication information is stored in memory only.</TD>
873 </TR>
874 <TR BGCOLOR="white" CLASS="TableRowColor">
875 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
876 <CODE>&nbsp;long</CODE></FONT></TD>
877 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getReplicationLimit()">getReplicationLimit</A></B>()</CODE>
878
879 <BR>
880 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the transmit limit in bytes for a single call to
881 <A HREF="../../../com/sleepycat/db/Environment.html#processReplicationMessage(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, int)"><CODE>Environment.processReplicationMessage</CODE></A>.</TD>
882 </TR>
883 <TR BGCOLOR="white" CLASS="TableRowColor">
884 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
885 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A></CODE></FONT></TD>
886 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getReplicationManagerAckPolicy()">getReplicationManagerAckPolicy</A></B>()</CODE>
887
888 <BR>
889 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the network Ack policy used by the replication manager.</TD>
890 </TR>
891 <TR BGCOLOR="white" CLASS="TableRowColor">
892 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
893 <CODE>&nbsp;int</CODE></FONT></TD>
894 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getReplicationNumSites()">getReplicationNumSites</A></B>()</CODE>
895
896 <BR>
897 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the total number of sites configured in this EnvironmentConfig object.</TD>
898 </TR>
899 <TR BGCOLOR="white" CLASS="TableRowColor">
900 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
901 <CODE>&nbsp;int</CODE></FONT></TD>
902 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getReplicationPriority()">getReplicationPriority</A></B>()</CODE>
903
904 <BR>
905 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current environment's priority.</TD>
906 </TR>
907 <TR BGCOLOR="white" CLASS="TableRowColor">
908 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
909 <CODE>&nbsp;int</CODE></FONT></TD>
910 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getReplicationRequestMax()">getReplicationRequestMax</A></B>()</CODE>
911
912 <BR>
913 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the threshold for the maximum amount of time that a client waits before
914 requesting retransmission of a missed message.</TD>
915 </TR>
916 <TR BGCOLOR="white" CLASS="TableRowColor">
917 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
918 <CODE>&nbsp;int</CODE></FONT></TD>
919 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getReplicationRequestMin()">getReplicationRequestMin</A></B>()</CODE>
920
921 <BR>
922 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the threshold for the minimum amount of time that a client waits before
923 requesting retransmission of a missed message.</TD>
924 </TR>
925 <TR BGCOLOR="white" CLASS="TableRowColor">
926 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
927 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/ReplicationTransport.html" title="interface in com.sleepycat.db">ReplicationTransport</A></CODE></FONT></TD>
928 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getReplicationTransport()">getReplicationTransport</A></B>()</CODE>
929
930 <BR>
931 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the replication callback function used to transmit data using
932 the replication application's communication infrastructure.</TD>
933 </TR>
934 <TR BGCOLOR="white" CLASS="TableRowColor">
935 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
936 <CODE>&nbsp;boolean</CODE></FONT></TD>
937 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getRunFatalRecovery()">getRunFatalRecovery</A></B>()</CODE>
938
939 <BR>
940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the handle is configured to run catastrophic recovery on
941 the database environment before opening it for use.</TD>
942 </TR>
943 <TR BGCOLOR="white" CLASS="TableRowColor">
944 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
945 <CODE>&nbsp;boolean</CODE></FONT></TD>
946 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getRunRecovery()">getRunRecovery</A></B>()</CODE>
947
948 <BR>
949 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the handle is configured to run normal recovery on the
950 database environment before opening it for use.</TD>
951 </TR>
952 <TR BGCOLOR="white" CLASS="TableRowColor">
953 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
954 <CODE>&nbsp;long</CODE></FONT></TD>
955 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getSegmentId()">getSegmentId</A></B>()</CODE>
956
957 <BR>
958 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the base segment ID.</TD>
959 </TR>
960 <TR BGCOLOR="white" CLASS="TableRowColor">
961 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
962 <CODE>&nbsp;boolean</CODE></FONT></TD>
963 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getSystemMemory()">getSystemMemory</A></B>()</CODE>
964
965 <BR>
966 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured to allocate memory
967 from system shared memory instead of from memory backed by the
968 filesystem.</TD>
969 </TR>
970 <TR BGCOLOR="white" CLASS="TableRowColor">
971 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
972 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
973 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getTemporaryDirectory()">getTemporaryDirectory</A></B>()</CODE>
974
975 <BR>
976 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the path of a directory to be used as the location of
977 temporary files.</TD>
978 </TR>
979 <TR BGCOLOR="white" CLASS="TableRowColor">
980 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
981 <CODE>&nbsp;int</CODE></FONT></TD>
982 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getTestAndSetSpins()">getTestAndSetSpins</A></B>()</CODE>
983
984 <BR>
985 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMutexTestAndSetSpins()"><CODE>getMutexTestAndSetSpins()</CODE></A></I></TD>
986 </TR>
987 <TR BGCOLOR="white" CLASS="TableRowColor">
988 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
989 <CODE>&nbsp;boolean</CODE></FONT></TD>
990 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getThreaded()">getThreaded</A></B>()</CODE>
991
992 <BR>
993 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the handle is configured to be <em>free-threaded</em>.</TD>
994 </TR>
995 <TR BGCOLOR="white" CLASS="TableRowColor">
996 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
997 <CODE>&nbsp;boolean</CODE></FONT></TD>
998 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getTransactional()">getTransactional</A></B>()</CODE>
999
1000 <BR>
1001 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured for transactions.</TD>
1002 </TR>
1003 <TR BGCOLOR="white" CLASS="TableRowColor">
1004 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1005 <CODE>&nbsp;int</CODE></FONT></TD>
1006 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getTxnMaxActive()">getTxnMaxActive</A></B>()</CODE>
1007
1008 <BR>
1009 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the minimum number of simultaneously active transactions supported
1010 by the database environment.</TD>
1011 </TR>
1012 <TR BGCOLOR="white" CLASS="TableRowColor">
1013 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1014 <CODE>&nbsp;boolean</CODE></FONT></TD>
1015 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getTxnNoSync()">getTxnNoSync</A></B>()</CODE>
1016
1017 <BR>
1018 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the system has been configured to not write or synchronously
1019 flush the log on transaction commit.</TD>
1020 </TR>
1021 <TR BGCOLOR="white" CLASS="TableRowColor">
1022 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1023 <CODE>&nbsp;boolean</CODE></FONT></TD>
1024 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getTxnNotDurable()">getTxnNotDurable</A></B>()</CODE>
1025
1026 <BR>
1027 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the system has been configured to not write log records.</TD>
1028 </TR>
1029 <TR BGCOLOR="white" CLASS="TableRowColor">
1030 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1031 <CODE>&nbsp;boolean</CODE></FONT></TD>
1032 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getTxnNoWait()">getTxnNoWait</A></B>()</CODE>
1033
1034 <BR>
1035 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the transactions have been configured to not wait for locks by default.</TD>
1036 </TR>
1037 <TR BGCOLOR="white" CLASS="TableRowColor">
1038 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1039 <CODE>&nbsp;boolean</CODE></FONT></TD>
1040 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getTxnSnapshot()">getTxnSnapshot</A></B>()</CODE>
1041
1042 <BR>
1043 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the handle is configured to run all transactions at snapshot
1044 isolation.</TD>
1045 </TR>
1046 <TR BGCOLOR="white" CLASS="TableRowColor">
1047 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1048 <CODE>&nbsp;long</CODE></FONT></TD>
1049 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getTxnTimeout()">getTxnTimeout</A></B>()</CODE>
1050
1051 <BR>
1052 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database environment transaction timeout value, in
1053 microseconds; a timeout of 0 means no timeout is set.</TD>
1054 </TR>
1055 <TR BGCOLOR="white" CLASS="TableRowColor">
1056 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1057 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</A></CODE></FONT></TD>
1058 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getTxnTimestamp()">getTxnTimestamp</A></B>()</CODE>
1059
1060 <BR>
1061 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the time to which recovery will be done, or 0 if recovery will
1062 be done to the most current possible date.</TD>
1063 </TR>
1064 <TR BGCOLOR="white" CLASS="TableRowColor">
1065 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1066 <CODE>&nbsp;boolean</CODE></FONT></TD>
1067 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getTxnWriteNoSync()">getTxnWriteNoSync</A></B>()</CODE>
1068
1069 <BR>
1070 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the system has been configured to write, but not synchronously
1071 flush, the log on transaction commit.</TD>
1072 </TR>
1073 <TR BGCOLOR="white" CLASS="TableRowColor">
1074 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1075 <CODE>&nbsp;boolean</CODE></FONT></TD>
1076 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getUseEnvironment()">getUseEnvironment</A></B>()</CODE>
1077
1078 <BR>
1079 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured to accept information
1080 from the process environment when naming files.</TD>
1081 </TR>
1082 <TR BGCOLOR="white" CLASS="TableRowColor">
1083 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1084 <CODE>&nbsp;boolean</CODE></FONT></TD>
1085 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getUseEnvironmentRoot()">getUseEnvironmentRoot</A></B>()</CODE>
1086
1087 <BR>
1088 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured to accept information
1089 from the process environment when naming files if the process has
1090 appropriate permissions.</TD>
1091 </TR>
1092 <TR BGCOLOR="white" CLASS="TableRowColor">
1093 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1094 <CODE>&nbsp;boolean</CODE></FONT></TD>
1095 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerbose(com.sleepycat.db.VerboseConfig)">getVerbose</A></B>(<A HREF="../../../com/sleepycat/db/VerboseConfig.html" title="class in com.sleepycat.db">VerboseConfig</A>&nbsp;flag)</CODE>
1096
1097 <BR>
1098 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return if the database environment is configured to display
1099 a given type of verbose information.</TD>
1100 </TR>
1101 <TR BGCOLOR="white" CLASS="TableRowColor">
1102 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1103 <CODE>&nbsp;boolean</CODE></FONT></TD>
1104 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerboseDeadlock()">getVerboseDeadlock</A></B>()</CODE>
1105
1106 <BR>
1107 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerbose(com.sleepycat.db.VerboseConfig)"><CODE>getVerbose(com.sleepycat.db.VerboseConfig)</CODE></A></I></TD>
1108 </TR>
1109 <TR BGCOLOR="white" CLASS="TableRowColor">
1110 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1111 <CODE>&nbsp;boolean</CODE></FONT></TD>
1112 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerboseRecovery()">getVerboseRecovery</A></B>()</CODE>
1113
1114 <BR>
1115 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerbose(com.sleepycat.db.VerboseConfig)"><CODE>getVerbose(com.sleepycat.db.VerboseConfig)</CODE></A></I></TD>
1116 </TR>
1117 <TR BGCOLOR="white" CLASS="TableRowColor">
1118 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1119 <CODE>&nbsp;boolean</CODE></FONT></TD>
1120 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerboseRegister()">getVerboseRegister</A></B>()</CODE>
1121
1122 <BR>
1123 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerbose(com.sleepycat.db.VerboseConfig)"><CODE>getVerbose(com.sleepycat.db.VerboseConfig)</CODE></A></I></TD>
1124 </TR>
1125 <TR BGCOLOR="white" CLASS="TableRowColor">
1126 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1127 <CODE>&nbsp;boolean</CODE></FONT></TD>
1128 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerboseReplication()">getVerboseReplication</A></B>()</CODE>
1129
1130 <BR>
1131 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerbose(com.sleepycat.db.VerboseConfig)"><CODE>getVerbose(com.sleepycat.db.VerboseConfig)</CODE></A></I></TD>
1132 </TR>
1133 <TR BGCOLOR="white" CLASS="TableRowColor">
1134 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1135 <CODE>&nbsp;boolean</CODE></FONT></TD>
1136 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerboseWaitsFor()">getVerboseWaitsFor</A></B>()</CODE>
1137
1138 <BR>
1139 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerbose(com.sleepycat.db.VerboseConfig)"><CODE>getVerbose(com.sleepycat.db.VerboseConfig)</CODE></A></I></TD>
1140 </TR>
1141 <TR BGCOLOR="white" CLASS="TableRowColor">
1142 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1143 <CODE>&nbsp;boolean</CODE></FONT></TD>
1144 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getYieldCPU()">getYieldCPU</A></B>()</CODE>
1145
1146 <BR>
1147 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the system has been configured to yield the processor
1148 immediately after each page or mutex acquisition.</TD>
1149 </TR>
1150 <TR BGCOLOR="white" CLASS="TableRowColor">
1151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1152 <CODE>&nbsp;void</CODE></FONT></TD>
1153 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setAllowCreate(boolean)">setAllowCreate</A></B>(boolean&nbsp;allowCreate)</CODE>
1154
1155 <BR>
1156 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to create any underlying files,
1157 as necessary.</TD>
1158 </TR>
1159 <TR BGCOLOR="white" CLASS="TableRowColor">
1160 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1161 <CODE>&nbsp;void</CODE></FONT></TD>
1162 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupHandler(com.sleepycat.db.BackupHandler)">setBackupHandler</A></B>(<A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db">BackupHandler</A>&nbsp;backupHandler)</CODE>
1163
1164 <BR>
1165 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db"><CODE>BackupHandler</CODE></A>
1166 interface to be used when performing hot backups.</TD>
1167 </TR>
1168 <TR BGCOLOR="white" CLASS="TableRowColor">
1169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1170 <CODE>&nbsp;void</CODE></FONT></TD>
1171 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupReadCount(int)">setBackupReadCount</A></B>(int&nbsp;count)</CODE>
1172
1173 <BR>
1174 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configures the number of pages to read during a hot backup before pausing.</TD>
1175 </TR>
1176 <TR BGCOLOR="white" CLASS="TableRowColor">
1177 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1178 <CODE>&nbsp;void</CODE></FONT></TD>
1179 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupReadSleep(int)">setBackupReadSleep</A></B>(int&nbsp;sleep)</CODE>
1180
1181 <BR>
1182 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configures the number of microseconds to sleep between batches of reads during
1183 a hot backup.</TD>
1184 </TR>
1185 <TR BGCOLOR="white" CLASS="TableRowColor">
1186 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1187 <CODE>&nbsp;void</CODE></FONT></TD>
1188 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupSize(int)">setBackupSize</A></B>(int&nbsp;size)</CODE>
1189
1190 <BR>
1191 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configures the size of the buffer, in bytes, to read from the database
1192 during a hot backup.</TD>
1193 </TR>
1194 <TR BGCOLOR="white" CLASS="TableRowColor">
1195 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1196 <CODE>&nbsp;void</CODE></FONT></TD>
1197 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupWriteDirect(boolean)">setBackupWriteDirect</A></B>(boolean&nbsp;writeDirect)</CODE>
1198
1199 <BR>
1200 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configures whether direct I/O is used when writing pages to the disk during a
1201 hot backup.</TD>
1202 </TR>
1203 <TR BGCOLOR="white" CLASS="TableRowColor">
1204 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1205 <CODE>&nbsp;void</CODE></FONT></TD>
1206 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setCacheCount(int)">setCacheCount</A></B>(int&nbsp;cacheCount)</CODE>
1207
1208 <BR>
1209 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the number of shared memory buffer pools, that is, the number of
1210 caches.</TD>
1211 </TR>
1212 <TR BGCOLOR="white" CLASS="TableRowColor">
1213 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1214 <CODE>&nbsp;void</CODE></FONT></TD>
1215 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setCacheMax(long)">setCacheMax</A></B>(long&nbsp;cacheMax)</CODE>
1216
1217 <BR>
1218 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the maximum cache size in bytes.</TD>
1219 </TR>
1220 <TR BGCOLOR="white" CLASS="TableRowColor">
1221 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1222 <CODE>&nbsp;void</CODE></FONT></TD>
1223 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setCachePageSize(int)">setCachePageSize</A></B>(int&nbsp;mpPageSize)</CODE>
1224
1225 <BR>
1226 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the page size used to allocate the hash table and the number of mutexes
1227 expected to be needed by the buffer pool.</TD>
1228 </TR>
1229 <TR BGCOLOR="white" CLASS="TableRowColor">
1230 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1231 <CODE>&nbsp;void</CODE></FONT></TD>
1232 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setCacheSize(long)">setCacheSize</A></B>(long&nbsp;cacheSize)</CODE>
1233
1234 <BR>
1235 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the size of the shared memory buffer pool, that is, the size of the
1236 cache.</TD>
1237 </TR>
1238 <TR BGCOLOR="white" CLASS="TableRowColor">
1239 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1240 <CODE>&nbsp;void</CODE></FONT></TD>
1241 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setCacheTableSize(int)">setCacheTableSize</A></B>(int&nbsp;mpTableSize)</CODE>
1242
1243 <BR>
1244 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overrides the calculated hash table size.</TD>
1245 </TR>
1246 <TR BGCOLOR="white" CLASS="TableRowColor">
1247 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1248 <CODE>&nbsp;void</CODE></FONT></TD>
1249 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setCDBLockAllDatabases(boolean)">setCDBLockAllDatabases</A></B>(boolean&nbsp;cdbLockAllDatabases)</CODE>
1250
1251 <BR>
1252 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure Concurrent Data Store applications to perform locking on
1253 an environment-wide basis rather than on a per-database basis.</TD>
1254 </TR>
1255 <TR BGCOLOR="white" CLASS="TableRowColor">
1256 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1257 <CODE>&nbsp;void</CODE></FONT></TD>
1258 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setCreateDir(java.io.File)">setCreateDir</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;dir)</CODE>
1259
1260 <BR>
1261 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the path of a directory to be used as the location to create the
1262 access method database files.</TD>
1263 </TR>
1264 <TR BGCOLOR="white" CLASS="TableRowColor">
1265 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1266 <CODE>&nbsp;void</CODE></FONT></TD>
1267 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setDirectDatabaseIO(boolean)">setDirectDatabaseIO</A></B>(boolean&nbsp;directDatabaseIO)</CODE>
1268
1269 <BR>
1270 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to not buffer database files.</TD>
1271 </TR>
1272 <TR BGCOLOR="white" CLASS="TableRowColor">
1273 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1274 <CODE>&nbsp;void</CODE></FONT></TD>
1275 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setDirectLogIO(boolean)">setDirectLogIO</A></B>(boolean&nbsp;directLogIO)</CODE>
1276
1277 <BR>
1278 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to not buffer log files.</TD>
1279 </TR>
1280 <TR BGCOLOR="white" CLASS="TableRowColor">
1281 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1282 <CODE>&nbsp;void</CODE></FONT></TD>
1283 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setDsyncDatabases(boolean)">setDsyncDatabases</A></B>(boolean&nbsp;dsyncDatabases)</CODE>
1284
1285 <BR>
1286 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to flush database writes to the backing
1287 disk before returning from the write system call, rather than flushing
1288 database writes explicitly in a separate system call, as necessary.</TD>
1289 </TR>
1290 <TR BGCOLOR="white" CLASS="TableRowColor">
1291 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1292 <CODE>&nbsp;void</CODE></FONT></TD>
1293 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setDsyncLog(boolean)">setDsyncLog</A></B>(boolean&nbsp;dsyncLog)</CODE>
1294
1295 <BR>
1296 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to flush log writes to the
1297 backing disk before returning from the write system call, rather
1298 than flushing log writes explicitly in a separate system call.</TD>
1299 </TR>
1300 <TR BGCOLOR="white" CLASS="TableRowColor">
1301 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1302 <CODE>&nbsp;void</CODE></FONT></TD>
1303 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setEncrypted(java.lang.String)">setEncrypted</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;password)</CODE>
1304
1305 <BR>
1306 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the password used to perform encryption and decryption.</TD>
1307 </TR>
1308 <TR BGCOLOR="white" CLASS="TableRowColor">
1309 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1310 <CODE>&nbsp;void</CODE></FONT></TD>
1311 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorHandler(com.sleepycat.db.ErrorHandler)">setErrorHandler</A></B>(<A HREF="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db">ErrorHandler</A>&nbsp;errorHandler)</CODE>
1312
1313 <BR>
1314 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the function to be called if an error occurs.</TD>
1315 </TR>
1316 <TR BGCOLOR="white" CLASS="TableRowColor">
1317 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1318 <CODE>&nbsp;void</CODE></FONT></TD>
1319 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorPrefix(java.lang.String)">setErrorPrefix</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;errorPrefix)</CODE>
1320
1321 <BR>
1322 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the prefix string that appears before error messages.</TD>
1323 </TR>
1324 <TR BGCOLOR="white" CLASS="TableRowColor">
1325 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1326 <CODE>&nbsp;void</CODE></FONT></TD>
1327 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorStream(java.io.OutputStream)">setErrorStream</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;errorStream)</CODE>
1328
1329 <BR>
1330 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set an OutputStream for displaying error messages.</TD>
1331 </TR>
1332 <TR BGCOLOR="white" CLASS="TableRowColor">
1333 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1334 <CODE>&nbsp;void</CODE></FONT></TD>
1335 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setEventHandler(com.sleepycat.db.EventHandler)">setEventHandler</A></B>(<A HREF="../../../com/sleepycat/db/EventHandler.html" title="interface in com.sleepycat.db">EventHandler</A>&nbsp;eventHandler)</CODE>
1336
1337 <BR>
1338 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set an object whose methods are to be called when a triggered event occurs.</TD>
1339 </TR>
1340 <TR BGCOLOR="white" CLASS="TableRowColor">
1341 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1342 <CODE>&nbsp;void</CODE></FONT></TD>
1343 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setFeedbackHandler(com.sleepycat.db.FeedbackHandler)">setFeedbackHandler</A></B>(<A HREF="../../../com/sleepycat/db/FeedbackHandler.html" title="interface in com.sleepycat.db">FeedbackHandler</A>&nbsp;feedbackHandler)</CODE>
1344
1345 <BR>
1346 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set an object whose methods are called to provide feedback.</TD>
1347 </TR>
1348 <TR BGCOLOR="white" CLASS="TableRowColor">
1349 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1350 <CODE>&nbsp;void</CODE></FONT></TD>
1351 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setHotbackupInProgress(boolean)">setHotbackupInProgress</A></B>(boolean&nbsp;hotbackup)</CODE>
1352
1353 <BR>
1354 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When a "hot backup" copy of a database environment is taken, this
1355 attribute should be configured in the environment prior to copying.</TD>
1356 </TR>
1357 <TR BGCOLOR="white" CLASS="TableRowColor">
1358 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1359 <CODE>&nbsp;void</CODE></FONT></TD>
1360 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setInitializeCache(boolean)">setInitializeCache</A></B>(boolean&nbsp;initializeCache)</CODE>
1361
1362 <BR>
1363 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure a shared memory buffer pool in the database environment.</TD>
1364 </TR>
1365 <TR BGCOLOR="white" CLASS="TableRowColor">
1366 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1367 <CODE>&nbsp;void</CODE></FONT></TD>
1368 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setInitializeCDB(boolean)">setInitializeCDB</A></B>(boolean&nbsp;initializeCDB)</CODE>
1369
1370 <BR>
1371 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment for the Concurrent Data Store
1372 product.</TD>
1373 </TR>
1374 <TR BGCOLOR="white" CLASS="TableRowColor">
1375 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1376 <CODE>&nbsp;void</CODE></FONT></TD>
1377 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setInitializeLocking(boolean)">setInitializeLocking</A></B>(boolean&nbsp;initializeLocking)</CODE>
1378
1379 <BR>
1380 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment for locking.</TD>
1381 </TR>
1382 <TR BGCOLOR="white" CLASS="TableRowColor">
1383 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1384 <CODE>&nbsp;void</CODE></FONT></TD>
1385 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setInitializeLogging(boolean)">setInitializeLogging</A></B>(boolean&nbsp;initializeLogging)</CODE>
1386
1387 <BR>
1388 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment for logging.</TD>
1389 </TR>
1390 <TR BGCOLOR="white" CLASS="TableRowColor">
1391 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1392 <CODE>&nbsp;void</CODE></FONT></TD>
1393 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setInitializeRegions(boolean)">setInitializeRegions</A></B>(boolean&nbsp;initializeRegions)</CODE>
1394
1395 <BR>
1396 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to page-fault shared regions into
1397 memory when initially creating or joining a database environment.</TD>
1398 </TR>
1399 <TR BGCOLOR="white" CLASS="TableRowColor">
1400 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1401 <CODE>&nbsp;void</CODE></FONT></TD>
1402 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setInitializeReplication(boolean)">setInitializeReplication</A></B>(boolean&nbsp;initializeReplication)</CODE>
1403
1404 <BR>
1405 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment for replication.</TD>
1406 </TR>
1407 <TR BGCOLOR="white" CLASS="TableRowColor">
1408 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1409 <CODE>&nbsp;void</CODE></FONT></TD>
1410 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setInitialMutexes(int)">setInitialMutexes</A></B>(int&nbsp;initMutexes)</CODE>
1411
1412 <BR>
1413 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the number of mutexes to allocate when an environment is created.</TD>
1414 </TR>
1415 <TR BGCOLOR="white" CLASS="TableRowColor">
1416 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1417 <CODE>&nbsp;void</CODE></FONT></TD>
1418 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setJoinEnvironment(boolean)">setJoinEnvironment</A></B>(boolean&nbsp;joinEnvironment)</CODE>
1419
1420 <BR>
1421 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the handle to join an existing environment.</TD>
1422 </TR>
1423 <TR BGCOLOR="white" CLASS="TableRowColor">
1424 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1425 <CODE>&nbsp;void</CODE></FONT></TD>
1426 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLockConflicts(byte[][])">setLockConflicts</A></B>(byte[][]&nbsp;lockConflicts)</CODE>
1427
1428 <BR>
1429 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the locking conflicts matrix.</TD>
1430 </TR>
1431 <TR BGCOLOR="white" CLASS="TableRowColor">
1432 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1433 <CODE>&nbsp;void</CODE></FONT></TD>
1434 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLockDetectMode(com.sleepycat.db.LockDetectMode)">setLockDetectMode</A></B>(<A HREF="../../../com/sleepycat/db/LockDetectMode.html" title="class in com.sleepycat.db">LockDetectMode</A>&nbsp;lockDetectMode)</CODE>
1435
1436 <BR>
1437 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure if the deadlock detector is to be run whenever a lock
1438 conflict occurs.</TD>
1439 </TR>
1440 <TR BGCOLOR="white" CLASS="TableRowColor">
1441 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1442 <CODE>&nbsp;void</CODE></FONT></TD>
1443 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLockDown(boolean)">setLockDown</A></B>(boolean&nbsp;lockDown)</CODE>
1444
1445 <BR>
1446 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to lock shared environment files
1447 and memory-mapped databases into memory.</TD>
1448 </TR>
1449 <TR BGCOLOR="white" CLASS="TableRowColor">
1450 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1451 <CODE>&nbsp;void</CODE></FONT></TD>
1452 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLockPartitions(int)">setLockPartitions</A></B>(int&nbsp;partitions)</CODE>
1453
1454 <BR>
1455 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the number of lock table partitions in the Berkeley DB environment.</TD>
1456 </TR>
1457 <TR BGCOLOR="white" CLASS="TableRowColor">
1458 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1459 <CODE>&nbsp;void</CODE></FONT></TD>
1460 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLockTableSize(int)">setLockTableSize</A></B>(int&nbsp;lockTableSize)</CODE>
1461
1462 <BR>
1463 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the size for the hash table that contains references to locks.</TD>
1464 </TR>
1465 <TR BGCOLOR="white" CLASS="TableRowColor">
1466 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1467 <CODE>&nbsp;void</CODE></FONT></TD>
1468 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLockTimeout(long)">setLockTimeout</A></B>(long&nbsp;lockTimeout)</CODE>
1469
1470 <BR>
1471 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the timeout value for the database environment
1472 locks.</TD>
1473 </TR>
1474 <TR BGCOLOR="white" CLASS="TableRowColor">
1475 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1476 <CODE>&nbsp;void</CODE></FONT></TD>
1477 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLogAutoRemove(boolean)">setLogAutoRemove</A></B>(boolean&nbsp;logAutoRemove)</CODE>
1478
1479 <BR>
1480 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the system to automatically remove log files that are no
1481 longer needed.</TD>
1482 </TR>
1483 <TR BGCOLOR="white" CLASS="TableRowColor">
1484 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1485 <CODE>&nbsp;void</CODE></FONT></TD>
1486 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLogBufferSize(int)">setLogBufferSize</A></B>(int&nbsp;logBufferSize)</CODE>
1487
1488 <BR>
1489 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the size of the in-memory log buffer, in bytes.</TD>
1490 </TR>
1491 <TR BGCOLOR="white" CLASS="TableRowColor">
1492 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1493 <CODE>&nbsp;void</CODE></FONT></TD>
1494 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLogDirectory(java.io.File)">setLogDirectory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;logDirectory)</CODE>
1495
1496 <BR>
1497 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the path of a directory to be used as the location of logging files.</TD>
1498 </TR>
1499 <TR BGCOLOR="white" CLASS="TableRowColor">
1500 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1501 <CODE>&nbsp;void</CODE></FONT></TD>
1502 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLogFileMode(int)">setLogFileMode</A></B>(int&nbsp;logFileMode)</CODE>
1503
1504 <BR>
1505 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the absolute file mode for created log files.</TD>
1506 </TR>
1507 <TR BGCOLOR="white" CLASS="TableRowColor">
1508 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1509 <CODE>&nbsp;void</CODE></FONT></TD>
1510 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLogInMemory(boolean)">setLogInMemory</A></B>(boolean&nbsp;logInMemory)</CODE>
1511
1512 <BR>
1513 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If set, maintain transaction logs in memory rather than on disk.</TD>
1514 </TR>
1515 <TR BGCOLOR="white" CLASS="TableRowColor">
1516 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1517 <CODE>&nbsp;void</CODE></FONT></TD>
1518 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLogRecordHandler(com.sleepycat.db.LogRecordHandler)">setLogRecordHandler</A></B>(<A HREF="../../../com/sleepycat/db/LogRecordHandler.html" title="interface in com.sleepycat.db">LogRecordHandler</A>&nbsp;logRecordHandler)</CODE>
1519
1520 <BR>
1521 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a function to process application-specific log records.</TD>
1522 </TR>
1523 <TR BGCOLOR="white" CLASS="TableRowColor">
1524 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1525 <CODE>&nbsp;void</CODE></FONT></TD>
1526 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLogRegionSize(int)">setLogRegionSize</A></B>(int&nbsp;logRegionSize)</CODE>
1527
1528 <BR>
1529 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the size of the underlying logging area of the database
1530 environment, in bytes.</TD>
1531 </TR>
1532 <TR BGCOLOR="white" CLASS="TableRowColor">
1533 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1534 <CODE>&nbsp;void</CODE></FONT></TD>
1535 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setLogZero(boolean)">setLogZero</A></B>(boolean&nbsp;logZero)</CODE>
1536
1537 <BR>
1538 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If set, zero all pages of a log file when that log file is created.</TD>
1539 </TR>
1540 <TR BGCOLOR="white" CLASS="TableRowColor">
1541 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1542 <CODE>&nbsp;void</CODE></FONT></TD>
1543 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMaxLockers(int)">setMaxLockers</A></B>(int&nbsp;maxLockers)</CODE>
1544
1545 <BR>
1546 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the maximum number of locking entities supported by the database
1547 environment.</TD>
1548 </TR>
1549 <TR BGCOLOR="white" CLASS="TableRowColor">
1550 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1551 <CODE>&nbsp;void</CODE></FONT></TD>
1552 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMaxLockObjects(int)">setMaxLockObjects</A></B>(int&nbsp;maxLockObjects)</CODE>
1553
1554 <BR>
1555 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the maximum number of locked objects supported by the database
1556 environment.</TD>
1557 </TR>
1558 <TR BGCOLOR="white" CLASS="TableRowColor">
1559 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1560 <CODE>&nbsp;void</CODE></FONT></TD>
1561 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMaxLocks(int)">setMaxLocks</A></B>(int&nbsp;maxLocks)</CODE>
1562
1563 <BR>
1564 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the maximum number of locks supported by the database
1565 environment.</TD>
1566 </TR>
1567 <TR BGCOLOR="white" CLASS="TableRowColor">
1568 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1569 <CODE>&nbsp;void</CODE></FONT></TD>
1570 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMaxLogFileSize(int)">setMaxLogFileSize</A></B>(int&nbsp;maxLogFileSize)</CODE>
1571
1572 <BR>
1573 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the maximum size of a single file in the log, in bytes.</TD>
1574 </TR>
1575 <TR BGCOLOR="white" CLASS="TableRowColor">
1576 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1577 <CODE>&nbsp;void</CODE></FONT></TD>
1578 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMaxMutexes(int)">setMaxMutexes</A></B>(int&nbsp;maxMutexes)</CODE>
1579
1580 <BR>
1581 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the total number of mutexes to allocate.</TD>
1582 </TR>
1583 <TR BGCOLOR="white" CLASS="TableRowColor">
1584 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1585 <CODE>&nbsp;void</CODE></FONT></TD>
1586 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMaxOpenFiles(int)">setMaxOpenFiles</A></B>(int&nbsp;maxOpenFiles)</CODE>
1587
1588 <BR>
1589 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Limit the number of file descriptors the library will open concurrently
1590 when flushing dirty pages from the cache.</TD>
1591 </TR>
1592 <TR BGCOLOR="white" CLASS="TableRowColor">
1593 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1594 <CODE>&nbsp;void</CODE></FONT></TD>
1595 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMaxWrite(int, long)">setMaxWrite</A></B>(int&nbsp;maxWrite,
1596 long&nbsp;maxWriteSleep)</CODE>
1597
1598 <BR>
1599 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Limit the number of sequential write operations scheduled by the
1600 library when flushing dirty pages from the cache.</TD>
1601 </TR>
1602 <TR BGCOLOR="white" CLASS="TableRowColor">
1603 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1604 <CODE>&nbsp;void</CODE></FONT></TD>
1605 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageHandler(com.sleepycat.db.MessageHandler)">setMessageHandler</A></B>(<A HREF="../../../com/sleepycat/db/MessageHandler.html" title="interface in com.sleepycat.db">MessageHandler</A>&nbsp;messageHandler)</CODE>
1606
1607 <BR>
1608 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a function to be called with an informational message.</TD>
1609 </TR>
1610 <TR BGCOLOR="white" CLASS="TableRowColor">
1611 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1612 <CODE>&nbsp;void</CODE></FONT></TD>
1613 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageStream(java.io.OutputStream)">setMessageStream</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;messageStream)</CODE>
1614
1615 <BR>
1616 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set an OutputStream for displaying informational messages.</TD>
1617 </TR>
1618 <TR BGCOLOR="white" CLASS="TableRowColor">
1619 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1620 <CODE>&nbsp;void</CODE></FONT></TD>
1621 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMetadataDir(java.io.File)">setMetadataDir</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;dir)</CODE>
1622
1623 <BR>
1624 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the path of a directory to be used as the location to store the
1625 persistent metadata files.</TD>
1626 </TR>
1627 <TR BGCOLOR="white" CLASS="TableRowColor">
1628 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1629 <CODE>&nbsp;void</CODE></FONT></TD>
1630 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMMapSize(long)">setMMapSize</A></B>(long&nbsp;mmapSize)</CODE>
1631
1632 <BR>
1633 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the maximum file size, in bytes, for a file to be mapped into
1634 the process address space.</TD>
1635 </TR>
1636 <TR BGCOLOR="white" CLASS="TableRowColor">
1637 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1638 <CODE>&nbsp;void</CODE></FONT></TD>
1639 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMode(int)">setMode</A></B>(int&nbsp;mode)</CODE>
1640
1641 <BR>
1642 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to use a specific mode when
1643 creating underlying files and shared memory segments.</TD>
1644 </TR>
1645 <TR BGCOLOR="white" CLASS="TableRowColor">
1646 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1647 <CODE>&nbsp;void</CODE></FONT></TD>
1648 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMultiversion(boolean)">setMultiversion</A></B>(boolean&nbsp;multiversion)</CODE>
1649
1650 <BR>
1651 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to open all databases that are not
1652 using the queue access method for multiversion concurrency control.</TD>
1653 </TR>
1654 <TR BGCOLOR="white" CLASS="TableRowColor">
1655 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1656 <CODE>&nbsp;void</CODE></FONT></TD>
1657 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMutexAlignment(int)">setMutexAlignment</A></B>(int&nbsp;mutexAlignment)</CODE>
1658
1659 <BR>
1660 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the mutex alignment, in bytes.</TD>
1661 </TR>
1662 <TR BGCOLOR="white" CLASS="TableRowColor">
1663 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1664 <CODE>&nbsp;void</CODE></FONT></TD>
1665 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMutexIncrement(int)">setMutexIncrement</A></B>(int&nbsp;mutexIncrement)</CODE>
1666
1667 <BR>
1668 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Increase the number of mutexes to allocate.</TD>
1669 </TR>
1670 <TR BGCOLOR="white" CLASS="TableRowColor">
1671 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1672 <CODE>&nbsp;void</CODE></FONT></TD>
1673 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMutexTestAndSetSpins(int)">setMutexTestAndSetSpins</A></B>(int&nbsp;mutexTestAndSetSpins)</CODE>
1674
1675 <BR>
1676 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify the number of times that test-and-set mutexes should spin
1677 without blocking.</TD>
1678 </TR>
1679 <TR BGCOLOR="white" CLASS="TableRowColor">
1680 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1681 <CODE>&nbsp;void</CODE></FONT></TD>
1682 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setNoLocking(boolean)">setNoLocking</A></B>(boolean&nbsp;noLocking)</CODE>
1683
1684 <BR>
1685 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the system to grant all requested mutual exclusion mutexes
1686 and database locks without regard for their actual availability.</TD>
1687 </TR>
1688 <TR BGCOLOR="white" CLASS="TableRowColor">
1689 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1690 <CODE>&nbsp;void</CODE></FONT></TD>
1691 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setNoMMap(boolean)">setNoMMap</A></B>(boolean&nbsp;noMMap)</CODE>
1692
1693 <BR>
1694 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the system to copy read-only database files into the local
1695 cache instead of potentially mapping them into process memory.</TD>
1696 </TR>
1697 <TR BGCOLOR="white" CLASS="TableRowColor">
1698 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1699 <CODE>&nbsp;void</CODE></FONT></TD>
1700 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setNoPanic(boolean)">setNoPanic</A></B>(boolean&nbsp;noPanic)</CODE>
1701
1702 <BR>
1703 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the system to ignore any panic state in the database
1704 environment.</TD>
1705 </TR>
1706 <TR BGCOLOR="white" CLASS="TableRowColor">
1707 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1708 <CODE>&nbsp;void</CODE></FONT></TD>
1709 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setOverwrite(boolean)">setOverwrite</A></B>(boolean&nbsp;overwrite)</CODE>
1710
1711 <BR>
1712 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the system to overwrite files stored in encrypted formats
1713 before deleting them.</TD>
1714 </TR>
1715 <TR BGCOLOR="white" CLASS="TableRowColor">
1716 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1717 <CODE>&nbsp;void</CODE></FONT></TD>
1718 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setPanicHandler(com.sleepycat.db.PanicHandler)">setPanicHandler</A></B>(<A HREF="../../../com/sleepycat/db/PanicHandler.html" title="interface in com.sleepycat.db">PanicHandler</A>&nbsp;panicHandler)</CODE>
1719
1720 <BR>
1721 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the function to be called if the database environment panics.</TD>
1722 </TR>
1723 <TR BGCOLOR="white" CLASS="TableRowColor">
1724 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1725 <CODE>&nbsp;void</CODE></FONT></TD>
1726 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setPrivate(boolean)">setPrivate</A></B>(boolean&nbsp;isPrivate)</CODE>
1727
1728 <BR>
1729 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to only be accessed by a single
1730 process (although that process may be multithreaded).</TD>
1731 </TR>
1732 <TR BGCOLOR="white" CLASS="TableRowColor">
1733 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1734 <CODE>&nbsp;void</CODE></FONT></TD>
1735 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRegionMemoryInitialSize(com.sleepycat.db.RegionResourceType, int)">setRegionMemoryInitialSize</A></B>(<A HREF="../../../com/sleepycat/db/RegionResourceType.html" title="class in com.sleepycat.db">RegionResourceType</A>&nbsp;resource,
1736 int&nbsp;count)</CODE>
1737
1738 <BR>
1739 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assign an initial count for a particular resource within the shared region
1740 of Berkeley DB.</TD>
1741 </TR>
1742 <TR BGCOLOR="white" CLASS="TableRowColor">
1743 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1744 <CODE>&nbsp;void</CODE></FONT></TD>
1745 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRegionMemoryMax(long)">setRegionMemoryMax</A></B>(long&nbsp;regionMemoryMax)</CODE>
1746
1747 <BR>
1748 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method sets the maximum amount of memory to be used by shared
1749 structures in the main environment region.</TD>
1750 </TR>
1751 <TR BGCOLOR="white" CLASS="TableRowColor">
1752 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1753 <CODE>&nbsp;void</CODE></FONT></TD>
1754 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRegister(boolean)">setRegister</A></B>(boolean&nbsp;register)</CODE>
1755
1756 <BR>
1757 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check if a process has failed while using the database environment, that
1758 is, if a process has exited with an open <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.</TD>
1759 </TR>
1760 <TR BGCOLOR="white" CLASS="TableRowColor">
1761 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1762 <CODE>&nbsp;void</CODE></FONT></TD>
1763 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationClockskew(int, int)">setReplicationClockskew</A></B>(int&nbsp;replicationClockskewFast,
1764 int&nbsp;replicationClockskewSlow)</CODE>
1765
1766 <BR>
1767 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the clock skew ratio among replication group members based on the
1768 fastest and slowest measurements among the group for use with master leases.</TD>
1769 </TR>
1770 <TR BGCOLOR="white" CLASS="TableRowColor">
1771 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1772 <CODE>&nbsp;void</CODE></FONT></TD>
1773 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationInMemory(boolean)">setReplicationInMemory</A></B>(boolean&nbsp;replicationInMemory)</CODE>
1774
1775 <BR>
1776 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If set, store internal replication information in memory only.</TD>
1777 </TR>
1778 <TR BGCOLOR="white" CLASS="TableRowColor">
1779 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1780 <CODE>&nbsp;void</CODE></FONT></TD>
1781 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationLimit(long)">setReplicationLimit</A></B>(long&nbsp;replicationLimit)</CODE>
1782
1783 <BR>
1784 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Impose a byte-count limit on the amount of data that will be
1785 transmitted from a site in a single call to <A HREF="../../../com/sleepycat/db/Environment.html#processReplicationMessage(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, int)"><CODE>Environment.processReplicationMessage</CODE></A>.</TD>
1786 </TR>
1787 <TR BGCOLOR="white" CLASS="TableRowColor">
1788 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1789 <CODE>&nbsp;void</CODE></FONT></TD>
1790 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationManagerAckPolicy(com.sleepycat.db.ReplicationManagerAckPolicy)">setReplicationManagerAckPolicy</A></B>(<A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A>&nbsp;repmgrAckPolicy)</CODE>
1791
1792 <BR>
1793 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the network Ack policy used by the replication manager.</TD>
1794 </TR>
1795 <TR BGCOLOR="white" CLASS="TableRowColor">
1796 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1797 <CODE>&nbsp;void</CODE></FONT></TD>
1798 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationNumSites(int)">setReplicationNumSites</A></B>(int&nbsp;replicationNumSites)</CODE>
1799
1800 <BR>
1801 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the total number of sites the replication group is configured for.</TD>
1802 </TR>
1803 <TR BGCOLOR="white" CLASS="TableRowColor">
1804 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1805 <CODE>&nbsp;void</CODE></FONT></TD>
1806 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationPriority(int)">setReplicationPriority</A></B>(int&nbsp;replicationPriority)</CODE>
1807
1808 <BR>
1809 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the current environment's priority.</TD>
1810 </TR>
1811 <TR BGCOLOR="white" CLASS="TableRowColor">
1812 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1813 <CODE>&nbsp;void</CODE></FONT></TD>
1814 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationRequestMax(int)">setReplicationRequestMax</A></B>(int&nbsp;replicationRequestMax)</CODE>
1815
1816 <BR>
1817 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a threshold for the maximum time that a client waits before requesting
1818 retransmission of a missing message.</TD>
1819 </TR>
1820 <TR BGCOLOR="white" CLASS="TableRowColor">
1821 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1822 <CODE>&nbsp;void</CODE></FONT></TD>
1823 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationRequestMin(int)">setReplicationRequestMin</A></B>(int&nbsp;replicationRequestMin)</CODE>
1824
1825 <BR>
1826 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a threshold for the minimum time that a client waits before requesting
1827 retransmission of a missing message.</TD>
1828 </TR>
1829 <TR BGCOLOR="white" CLASS="TableRowColor">
1830 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1831 <CODE>&nbsp;void</CODE></FONT></TD>
1832 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationTransport(int, com.sleepycat.db.ReplicationTransport)">setReplicationTransport</A></B>(int&nbsp;envid,
1833 <A HREF="../../../com/sleepycat/db/ReplicationTransport.html" title="interface in com.sleepycat.db">ReplicationTransport</A>&nbsp;replicationTransport)</CODE>
1834
1835 <BR>
1836 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the communication infrastructure for a database environment
1837 participating in a replicated application.</TD>
1838 </TR>
1839 <TR BGCOLOR="white" CLASS="TableRowColor">
1840 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1841 <CODE>&nbsp;void</CODE></FONT></TD>
1842 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRunFatalRecovery(boolean)">setRunFatalRecovery</A></B>(boolean&nbsp;runFatalRecovery)</CODE>
1843
1844 <BR>
1845 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure to run catastrophic recovery on this environment before opening it for
1846 normal use.</TD>
1847 </TR>
1848 <TR BGCOLOR="white" CLASS="TableRowColor">
1849 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1850 <CODE>&nbsp;void</CODE></FONT></TD>
1851 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRunRecovery(boolean)">setRunRecovery</A></B>(boolean&nbsp;runRecovery)</CODE>
1852
1853 <BR>
1854 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure to run normal recovery on this environment before opening it for
1855 normal use.</TD>
1856 </TR>
1857 <TR BGCOLOR="white" CLASS="TableRowColor">
1858 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1859 <CODE>&nbsp;void</CODE></FONT></TD>
1860 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setSegmentId(long)">setSegmentId</A></B>(long&nbsp;segmentId)</CODE>
1861
1862 <BR>
1863 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify a base segment ID for database environment shared memory
1864 regions created in system memory on VxWorks or systems supporting
1865 X/Open-style shared memory interfaces; for example, UNIX systems
1866 supporting <code>shmget</code> and related System V IPC interfaces.</TD>
1867 </TR>
1868 <TR BGCOLOR="white" CLASS="TableRowColor">
1869 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1870 <CODE>&nbsp;void</CODE></FONT></TD>
1871 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setSystemMemory(boolean)">setSystemMemory</A></B>(boolean&nbsp;systemMemory)</CODE>
1872
1873 <BR>
1874 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to allocate memory from system
1875 shared memory instead of from memory backed by the filesystem.</TD>
1876 </TR>
1877 <TR BGCOLOR="white" CLASS="TableRowColor">
1878 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1879 <CODE>&nbsp;void</CODE></FONT></TD>
1880 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTemporaryDirectory(java.io.File)">setTemporaryDirectory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;temporaryDirectory)</CODE>
1881
1882 <BR>
1883 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the path of a directory to be used as the location of temporary
1884 files.</TD>
1885 </TR>
1886 <TR BGCOLOR="white" CLASS="TableRowColor">
1887 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1888 <CODE>&nbsp;void</CODE></FONT></TD>
1889 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTemporaryDirectory(java.lang.String)">setTemporaryDirectory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;temporaryDirectory)</CODE>
1890
1891 <BR>
1892 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTemporaryDirectory(java.io.File)"><CODE>setTemporaryDirectory(java.io.File)</CODE></A></I></TD>
1893 </TR>
1894 <TR BGCOLOR="white" CLASS="TableRowColor">
1895 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1896 <CODE>&nbsp;void</CODE></FONT></TD>
1897 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTestAndSetSpins(int)">setTestAndSetSpins</A></B>(int&nbsp;mutexTestAndSetSpins)</CODE>
1898
1899 <BR>
1900 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMutexTestAndSetSpins(int)"><CODE>setMutexTestAndSetSpins(int)</CODE></A></I></TD>
1901 </TR>
1902 <TR BGCOLOR="white" CLASS="TableRowColor">
1903 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1904 <CODE>&nbsp;void</CODE></FONT></TD>
1905 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setThreaded(boolean)">setThreaded</A></B>(boolean&nbsp;threaded)</CODE>
1906
1907 <BR>
1908 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the handle to be <em>free-threaded</em>; that is, usable
1909 by multiple threads within a single address space.</TD>
1910 </TR>
1911 <TR BGCOLOR="white" CLASS="TableRowColor">
1912 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1913 <CODE>&nbsp;void</CODE></FONT></TD>
1914 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTransactional(boolean)">setTransactional</A></B>(boolean&nbsp;transactional)</CODE>
1915
1916 <BR>
1917 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment for transactions.</TD>
1918 </TR>
1919 <TR BGCOLOR="white" CLASS="TableRowColor">
1920 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1921 <CODE>&nbsp;void</CODE></FONT></TD>
1922 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTxnMaxActive(int)">setTxnMaxActive</A></B>(int&nbsp;txnMaxActive)</CODE>
1923
1924 <BR>
1925 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to support at least txnMaxActive
1926 active transactions.</TD>
1927 </TR>
1928 <TR BGCOLOR="white" CLASS="TableRowColor">
1929 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1930 <CODE>&nbsp;void</CODE></FONT></TD>
1931 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTxnNoSync(boolean)">setTxnNoSync</A></B>(boolean&nbsp;txnNoSync)</CODE>
1932
1933 <BR>
1934 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the system to not write or synchronously flush the log
1935 on transaction commit.</TD>
1936 </TR>
1937 <TR BGCOLOR="white" CLASS="TableRowColor">
1938 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1939 <CODE>&nbsp;void</CODE></FONT></TD>
1940 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTxnNotDurable(boolean)">setTxnNotDurable</A></B>(boolean&nbsp;txnNotDurable)</CODE>
1941
1942 <BR>
1943 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the system to not write log records.</TD>
1944 </TR>
1945 <TR BGCOLOR="white" CLASS="TableRowColor">
1946 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1947 <CODE>&nbsp;void</CODE></FONT></TD>
1948 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTxnNoWait(boolean)">setTxnNoWait</A></B>(boolean&nbsp;txnNoWait)</CODE>
1949
1950 <BR>
1951 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If a lock is unavailable for any Berkeley DB operation performed in the
1952 context of a transaction, cause the operation to throw <A HREF="../../../com/sleepycat/db/LockNotGrantedException.html" title="class in com.sleepycat.db"><CODE>LockNotGrantedException</CODE></A> without waiting for the lock.</TD>
1953 </TR>
1954 <TR BGCOLOR="white" CLASS="TableRowColor">
1955 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1956 <CODE>&nbsp;void</CODE></FONT></TD>
1957 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTxnSnapshot(boolean)">setTxnSnapshot</A></B>(boolean&nbsp;txnSnapshot)</CODE>
1958
1959 <BR>
1960 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to run transactions at snapshot
1961 isolation by default.</TD>
1962 </TR>
1963 <TR BGCOLOR="white" CLASS="TableRowColor">
1964 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1965 <CODE>&nbsp;void</CODE></FONT></TD>
1966 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTxnTimeout(long)">setTxnTimeout</A></B>(long&nbsp;txnTimeout)</CODE>
1967
1968 <BR>
1969 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the timeout value for the database environment
1970 transactions.</TD>
1971 </TR>
1972 <TR BGCOLOR="white" CLASS="TableRowColor">
1973 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1974 <CODE>&nbsp;void</CODE></FONT></TD>
1975 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTxnTimestamp(java.util.Date)">setTxnTimestamp</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</A>&nbsp;txnTimestamp)</CODE>
1976
1977 <BR>
1978 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Recover to the specified time rather than to the most current
1979 possible date.</TD>
1980 </TR>
1981 <TR BGCOLOR="white" CLASS="TableRowColor">
1982 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1983 <CODE>&nbsp;void</CODE></FONT></TD>
1984 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTxnWriteNoSync(boolean)">setTxnWriteNoSync</A></B>(boolean&nbsp;txnWriteNoSync)</CODE>
1985
1986 <BR>
1987 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the system to write, but not synchronously flush, the log on
1988 transaction commit.</TD>
1989 </TR>
1990 <TR BGCOLOR="white" CLASS="TableRowColor">
1991 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1992 <CODE>&nbsp;void</CODE></FONT></TD>
1993 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setUseEnvironment(boolean)">setUseEnvironment</A></B>(boolean&nbsp;useEnvironment)</CODE>
1994
1995 <BR>
1996 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to accept information from the
1997 process environment when naming files, regardless of the status of
1998 the process.</TD>
1999 </TR>
2000 <TR BGCOLOR="white" CLASS="TableRowColor">
2001 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
2002 <CODE>&nbsp;void</CODE></FONT></TD>
2003 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setUseEnvironmentRoot(boolean)">setUseEnvironmentRoot</A></B>(boolean&nbsp;useEnvironmentRoot)</CODE>
2004
2005 <BR>
2006 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to accept information from the
2007 process environment when naming files, if the process has
2008 appropriate permissions (for example, users with a user-ID of 0 on
2009 UNIX systems).</TD>
2010 </TR>
2011 <TR BGCOLOR="white" CLASS="TableRowColor">
2012 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
2013 <CODE>&nbsp;void</CODE></FONT></TD>
2014 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerbose(com.sleepycat.db.VerboseConfig, boolean)">setVerbose</A></B>(<A HREF="../../../com/sleepycat/db/VerboseConfig.html" title="class in com.sleepycat.db">VerboseConfig</A>&nbsp;flag,
2015 boolean&nbsp;enable)</CODE>
2016
2017 <BR>
2018 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Display verbose information.</TD>
2019 </TR>
2020 <TR BGCOLOR="white" CLASS="TableRowColor">
2021 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
2022 <CODE>&nbsp;void</CODE></FONT></TD>
2023 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerboseDeadlock(boolean)">setVerboseDeadlock</A></B>(boolean&nbsp;verboseDeadlock)</CODE>
2024
2025 <BR>
2026 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerbose(com.sleepycat.db.VerboseConfig, boolean)"><CODE>setVerbose(com.sleepycat.db.VerboseConfig, boolean)</CODE></A></I></TD>
2027 </TR>
2028 <TR BGCOLOR="white" CLASS="TableRowColor">
2029 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
2030 <CODE>&nbsp;void</CODE></FONT></TD>
2031 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerboseRecovery(boolean)">setVerboseRecovery</A></B>(boolean&nbsp;verboseRecovery)</CODE>
2032
2033 <BR>
2034 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerbose(com.sleepycat.db.VerboseConfig, boolean)"><CODE>setVerbose(com.sleepycat.db.VerboseConfig, boolean)</CODE></A></I></TD>
2035 </TR>
2036 <TR BGCOLOR="white" CLASS="TableRowColor">
2037 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
2038 <CODE>&nbsp;void</CODE></FONT></TD>
2039 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerboseRegister(boolean)">setVerboseRegister</A></B>(boolean&nbsp;verboseRegister)</CODE>
2040
2041 <BR>
2042 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerbose(com.sleepycat.db.VerboseConfig, boolean)"><CODE>setVerbose(com.sleepycat.db.VerboseConfig, boolean)</CODE></A></I></TD>
2043 </TR>
2044 <TR BGCOLOR="white" CLASS="TableRowColor">
2045 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
2046 <CODE>&nbsp;void</CODE></FONT></TD>
2047 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerboseReplication(boolean)">setVerboseReplication</A></B>(boolean&nbsp;verboseReplication)</CODE>
2048
2049 <BR>
2050 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerbose(com.sleepycat.db.VerboseConfig, boolean)"><CODE>setVerbose(com.sleepycat.db.VerboseConfig, boolean)</CODE></A></I></TD>
2051 </TR>
2052 <TR BGCOLOR="white" CLASS="TableRowColor">
2053 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
2054 <CODE>&nbsp;void</CODE></FONT></TD>
2055 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerboseWaitsFor(boolean)">setVerboseWaitsFor</A></B>(boolean&nbsp;verboseWaitsFor)</CODE>
2056
2057 <BR>
2058 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerbose(com.sleepycat.db.VerboseConfig, boolean)"><CODE>setVerbose(com.sleepycat.db.VerboseConfig, boolean)</CODE></A></I></TD>
2059 </TR>
2060 <TR BGCOLOR="white" CLASS="TableRowColor">
2061 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
2062 <CODE>&nbsp;void</CODE></FONT></TD>
2063 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setYieldCPU(boolean)">setYieldCPU</A></B>(boolean&nbsp;yieldCPU)</CODE>
2064
2065 <BR>
2066 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the system to yield the processor immediately after each
2067 page or mutex acquisition.</TD>
2068 </TR>
2069 </TABLE>
2070 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
2071 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
2072 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
2073 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
2074 </TR>
2075 <TR BGCOLOR="white" CLASS="TableRowColor">
2076 <TD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
2077 </TR>
2078 </TABLE>
2079 &nbsp;
2080 <P>
2081
2082 <!-- ============ FIELD DETAIL =========== -->
2083
2084 <A NAME="field_detail"><!-- --></A>
2085 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
2086 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
2087 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
2088 <B>Field Detail</B></FONT></TH>
2089 </TR>
2090 </TABLE>
2091
2092 <A NAME="DEFAULT"><!-- --></A><H3>
2093 DEFAULT</H3>
2094 <PRE>
2095 public static final <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db">EnvironmentConfig</A> <B>DEFAULT</B></PRE>
2096 <DL>
2097 <DL>
2098 </DL>
2099 </DL>
2100
2101 <!-- ========= CONSTRUCTOR DETAIL ======== -->
2102
2103 <A NAME="constructor_detail"><!-- --></A>
2104 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
2105 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
2106 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
2107 <B>Constructor Detail</B></FONT></TH>
2108 </TR>
2109 </TABLE>
2110
2111 <A NAME="EnvironmentConfig()"><!-- --></A><H3>
2112 EnvironmentConfig</H3>
2113 <PRE>
2114 public <B>EnvironmentConfig</B>()</PRE>
2115 <DL>
2116 <DD>Create an EnvironmentConfig initialized with the system default settings.
2117 <P>
2118 </DL>
2119
2120 <!-- ============ METHOD DETAIL ========== -->
2121
2122 <A NAME="method_detail"><!-- --></A>
2123 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
2124 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
2125 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
2126 <B>Method Detail</B></FONT></TH>
2127 </TR>
2128 </TABLE>
2129
2130 <A NAME="setAllowCreate(boolean)"><!-- --></A><H3>
2131 setAllowCreate</H3>
2132 <PRE>
2133 public void <B>setAllowCreate</B>(boolean&nbsp;allowCreate)</PRE>
2134 <DL>
2135 <DD>Configure the database environment to create any underlying files,
2136 as necessary.
2137 <p>
2138 <P>
2139 <DD><DL>
2140 </DL>
2141 </DD>
2142 <DD><DL>
2143 <DT><B>Parameters:</B><DD><CODE>allowCreate</CODE> - If true, configure the database environment to create any underlying
2144 files, as necessary.</DL>
2145 </DD>
2146 </DL>
2147 <HR>
2148
2149 <A NAME="getAllowCreate()"><!-- --></A><H3>
2150 getAllowCreate</H3>
2151 <PRE>
2152 public boolean <B>getAllowCreate</B>()</PRE>
2153 <DL>
2154 <DD>Return true if the database environment is configured to create any
2155 underlying files, as necessary.
2156 <p>
2157 This method may be called at any time during the life of the application.
2158 <p>
2159 <P>
2160 <DD><DL>
2161 </DL>
2162 </DD>
2163 <DD><DL>
2164
2165 <DT><B>Returns:</B><DD>True if the database environment is configured to create any
2166 underlying files, as necessary.</DL>
2167 </DD>
2168 </DL>
2169 <HR>
2170
2171 <A NAME="setCacheSize(long)"><!-- --></A><H3>
2172 setCacheSize</H3>
2173 <PRE>
2174 public void <B>setCacheSize</B>(long&nbsp;cacheSize)</PRE>
2175 <DL>
2176 <DD>Set the size of the shared memory buffer pool, that is, the size of the
2177 cache.
2178 <p>
2179 The cache should be the size of the normal working data set of the
2180 application, with some small amount of additional memory for unusual
2181 situations. (Note: the working set is not the same as the number of
2182 pages accessed simultaneously, and is usually much larger.)
2183 <p>
2184 The default cache size is 256KB, and may not be specified as less than
2185 20KB. Any cache size less than 500MB is automatically increased by 25%
2186 to account for buffer pool overhead; cache sizes larger than 500MB are
2187 used as specified. The current maximum size of a single cache is 4GB.
2188 (All sizes are in powers-of-two, that is, 256KB is 2^18 not 256,000.)
2189 <p>
2190 The database environment's cache size may also be set using the environment's
2191 DB_CONFIG file. The syntax of the entry in that file is a single line
2192 with the string "set_cachesize", one or more whitespace characters, and the cache size specified in three parts: the gigabytes of cache, the
2193 additional bytes of cache, and the number of caches, also separated by
2194 whitespace characters. For example, "set_cachesize 2 524288000 3" would
2195 create a 2.5GB logical cache, split between three physical caches.
2196 Because the DB_CONFIG file is read when the database environment is
2197 opened, it will silently overrule configuration done before that time.
2198 <p>
2199 This method configures a database environment, including all threads
2200 of control accessing the database environment, not only the operations
2201 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
2202 <p>
2203 This method may not be called after the
2204 environment has been opened.
2205 If joining an existing database environment, any
2206 information specified to this method will be ignored.
2207 <p>
2208 This method may be called at any time during the life of the application.
2209 <p>
2210 <P>
2211 <DD><DL>
2212 </DL>
2213 </DD>
2214 <DD><DL>
2215 <DT><B>Parameters:</B><DD><CODE>cacheSize</CODE> - The size of the shared memory buffer pool, that is, the size of the
2216 cache.
2217 <p>
2218 <p>
2219 <DT><B>Throws:</B>
2220 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2221 </DD>
2222 </DL>
2223 <HR>
2224
2225 <A NAME="getCacheSize()"><!-- --></A><H3>
2226 getCacheSize</H3>
2227 <PRE>
2228 public long <B>getCacheSize</B>()</PRE>
2229 <DL>
2230 <DD>Return the size of the shared memory buffer pool, that is, the cache.
2231 <p>
2232 This method may be called at any time during the life of the application.
2233 <p>
2234 <P>
2235 <DD><DL>
2236 </DL>
2237 </DD>
2238 <DD><DL>
2239
2240 <DT><B>Returns:</B><DD>The size of the shared memory buffer pool, that is, the cache.</DL>
2241 </DD>
2242 </DL>
2243 <HR>
2244
2245 <A NAME="setCacheMax(long)"><!-- --></A><H3>
2246 setCacheMax</H3>
2247 <PRE>
2248 public void <B>setCacheMax</B>(long&nbsp;cacheMax)</PRE>
2249 <DL>
2250 <DD>Set the maximum cache size in bytes. The specified size is rounded to the
2251 nearest multiple of the cache region size, which is the initial cache size
2252 divded by the number of regions specified to <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setCacheCount(int)"><CODE>setCacheCount(int)</CODE></A>. If no
2253 value is specified, it defaults to the initial cache size.
2254 <P>
2255 <DD><DL>
2256 </DL>
2257 </DD>
2258 <DD><DL>
2259 </DL>
2260 </DD>
2261 </DL>
2262 <HR>
2263
2264 <A NAME="getCacheMax()"><!-- --></A><H3>
2265 getCacheMax</H3>
2266 <PRE>
2267 public long <B>getCacheMax</B>()</PRE>
2268 <DL>
2269 <DD>Return the maximum size of the cache.
2270 <p>
2271 This method may be called at any time during the life of the application.
2272 <p>
2273 <P>
2274 <DD><DL>
2275 </DL>
2276 </DD>
2277 <DD><DL>
2278
2279 <DT><B>Returns:</B><DD>The maximum size of the cache.</DL>
2280 </DD>
2281 </DL>
2282 <HR>
2283
2284 <A NAME="setCacheCount(int)"><!-- --></A><H3>
2285 setCacheCount</H3>
2286 <PRE>
2287 public void <B>setCacheCount</B>(int&nbsp;cacheCount)</PRE>
2288 <DL>
2289 <DD>Set the number of shared memory buffer pools, that is, the number of
2290 caches.
2291 <p>
2292 It is possible to specify caches larger than 4GB and/or large enough
2293 they cannot be allocated contiguously on some architectures. For
2294 example, some releases of Solaris limit the amount of memory that may
2295 be allocated contiguously by a process. This method allows applications
2296 to break the cache broken up into a number of equally sized, separate
2297 pieces of memory.
2298 <p>
2299 <p>
2300 The database environment's cache size may also be set using the environment's
2301 DB_CONFIG file. The syntax of the entry in that file is a single line
2302 with the string "set_cachesize", one or more whitespace characters, and the cache size specified in three parts: the gigabytes of cache, the
2303 additional bytes of cache, and the number of caches, also separated by
2304 whitespace characters. For example, "set_cachesize 2 524288000 3" would
2305 create a 2.5GB logical cache, split between three physical caches.
2306 Because the DB_CONFIG file is read when the database environment is
2307 opened, it will silently overrule configuration done before that time.
2308 <p>
2309 This method configures a database environment, including all threads
2310 of control accessing the database environment, not only the operations
2311 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
2312 <p>
2313 This method may not be called after the
2314 environment has been opened.
2315 If joining an existing database environment, any
2316 information specified to this method will be ignored.
2317 <p>
2318 This method may be called at any time during the life of the application.
2319 <p>
2320 <P>
2321 <DD><DL>
2322 </DL>
2323 </DD>
2324 <DD><DL>
2325 <DT><B>Parameters:</B><DD><CODE>cacheCount</CODE> - The number of shared memory buffer pools, that is, the number of caches.
2326 <p>
2327 <p>
2328 <DT><B>Throws:</B>
2329 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2330 </DD>
2331 </DL>
2332 <HR>
2333
2334 <A NAME="getCacheCount()"><!-- --></A><H3>
2335 getCacheCount</H3>
2336 <PRE>
2337 public int <B>getCacheCount</B>()</PRE>
2338 <DL>
2339 <DD>Return the number of shared memory buffer pools, that is, the number
2340 of cache regions.
2341 <p>
2342 This method may be called at any time during the life of the application.
2343 <p>
2344 <P>
2345 <DD><DL>
2346 </DL>
2347 </DD>
2348 <DD><DL>
2349
2350 <DT><B>Returns:</B><DD>The number of shared memory buffer pools, that is, the number
2351 of cache regions.</DL>
2352 </DD>
2353 </DL>
2354 <HR>
2355
2356 <A NAME="setCDBLockAllDatabases(boolean)"><!-- --></A><H3>
2357 setCDBLockAllDatabases</H3>
2358 <PRE>
2359 public void <B>setCDBLockAllDatabases</B>(boolean&nbsp;cdbLockAllDatabases)</PRE>
2360 <DL>
2361 <DD>Configure Concurrent Data Store applications to perform locking on
2362 an environment-wide basis rather than on a per-database basis.
2363 <p>
2364 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
2365 any other library handles opened within the scope of that handle).
2366 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
2367 handles opened in the database environment must either call this method
2368 or the configuration should be specified in the database environment's
2369 DB_CONFIG configuration file.
2370 <p>
2371 This method may not be called after the
2372 environment has been opened.
2373 <p>
2374 <P>
2375 <DD><DL>
2376 </DL>
2377 </DD>
2378 <DD><DL>
2379 <DT><B>Parameters:</B><DD><CODE>cdbLockAllDatabases</CODE> - If true, configure Concurrent Data Store applications to perform
2380 locking on an environment-wide basis rather than on a per-database
2381 basis.</DL>
2382 </DD>
2383 </DL>
2384 <HR>
2385
2386 <A NAME="getCDBLockAllDatabases()"><!-- --></A><H3>
2387 getCDBLockAllDatabases</H3>
2388 <PRE>
2389 public boolean <B>getCDBLockAllDatabases</B>()</PRE>
2390 <DL>
2391 <DD>Return true if the Concurrent Data Store applications are configured to
2392 perform locking on an environment-wide basis rather than on a
2393 per-database basis.
2394 <p>
2395 This method may be called at any time during the life of the application.
2396 <p>
2397 <P>
2398 <DD><DL>
2399 </DL>
2400 </DD>
2401 <DD><DL>
2402
2403 <DT><B>Returns:</B><DD>True if the Concurrent Data Store applications are configured to
2404 perform locking on an environment-wide basis rather than on a
2405 per-database basis.</DL>
2406 </DD>
2407 </DL>
2408 <HR>
2409
2410 <A NAME="setCreateDir(java.io.File)"><!-- --></A><H3>
2411 setCreateDir</H3>
2412 <PRE>
2413 public void <B>setCreateDir</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;dir)</PRE>
2414 <DL>
2415 <DD>Sets the path of a directory to be used as the location to create the
2416 access method database files. When the open function is used to create a file
2417 it will be created relative to this path.
2418 <P>
2419 <DD><DL>
2420 </DL>
2421 </DD>
2422 <DD><DL>
2423 </DL>
2424 </DD>
2425 </DL>
2426 <HR>
2427
2428 <A NAME="getCreateDir()"><!-- --></A><H3>
2429 getCreateDir</H3>
2430 <PRE>
2431 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getCreateDir</B>()</PRE>
2432 <DL>
2433 <DD>Returns the path of a directory to be used as the location to create the
2434 access method database files.
2435 <P>
2436 <DD><DL>
2437 </DL>
2438 </DD>
2439 <DD><DL>
2440
2441 <DT><B>Returns:</B><DD>The path of a directory to be used as the location to create the access method
2442 database files.</DL>
2443 </DD>
2444 </DL>
2445 <HR>
2446
2447 <A NAME="addDataDir(java.io.File)"><!-- --></A><H3>
2448 addDataDir</H3>
2449 <PRE>
2450 public void <B>addDataDir</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;dataDir)</PRE>
2451 <DL>
2452 <DD>Set the path of a directory to be used as the location of the access
2453 method database files.
2454 <p>
2455 Paths specified to <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> and
2456 <A HREF="../../../com/sleepycat/db/Environment.html#openSecondaryDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.Database, com.sleepycat.db.SecondaryConfig)"><CODE>Environment.openSecondaryDatabase</CODE></A> will be searched
2457 relative to this path. Paths set using this method are additive, and
2458 specifying more than one will result in each specified directory
2459 being searched for database files. If any directories are
2460 specified, created database files will always be created in the
2461 first path specified.
2462 <p>
2463 If no database directories are specified, database files must be named
2464 either by absolute paths or relative to the environment home directory.
2465 <p>
2466 The database environment's data directories may also be set using the environment's
2467 DB_CONFIG file. The syntax of the entry in that file is a single line
2468 with the string "set_data_dir", one or more whitespace characters, and the directory name.
2469 <p>
2470 This method configures only operations performed using a single a
2471 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle, not an entire database environment.
2472 <p>
2473 This method may not be called after the
2474 environment has been opened.
2475 If joining an existing database environment, the
2476 information specified to this method must be consistent with the
2477 existing environment or corruption can occur.
2478 <p>
2479 <P>
2480 <DD><DL>
2481 </DL>
2482 </DD>
2483 <DD><DL>
2484 <DT><B>Parameters:</B><DD><CODE>dataDir</CODE> - A directory to be used as a location for database files.
2485 On Windows platforms, this argument will be interpreted as a UTF-8
2486 string, which is equivalent to ASCII for Latin characters.</DL>
2487 </DD>
2488 </DL>
2489 <HR>
2490
2491 <A NAME="addDataDir(java.lang.String)"><!-- --></A><H3>
2492 addDataDir</H3>
2493 <PRE>
2494 public void <B>addDataDir</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;dataDir)</PRE>
2495 <DL>
2496 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#addDataDir(java.io.File)"><CODE>addDataDir(java.io.File)</CODE></A></I>
2497 <P>
2498 <DD><DL>
2499 </DL>
2500 </DD>
2501 <DD><DL>
2502 </DL>
2503 </DD>
2504 </DL>
2505 <HR>
2506
2507 <A NAME="getDataDirs()"><!-- --></A><H3>
2508 getDataDirs</H3>
2509 <PRE>
2510 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>[] <B>getDataDirs</B>()</PRE>
2511 <DL>
2512 <DD>Return the array of data directories.
2513 <p>
2514 This method may be called at any time during the life of the application.
2515 <p>
2516 <P>
2517 <DD><DL>
2518 </DL>
2519 </DD>
2520 <DD><DL>
2521
2522 <DT><B>Returns:</B><DD>The array of data directories.</DL>
2523 </DD>
2524 </DL>
2525 <HR>
2526
2527 <A NAME="setDirectDatabaseIO(boolean)"><!-- --></A><H3>
2528 setDirectDatabaseIO</H3>
2529 <PRE>
2530 public void <B>setDirectDatabaseIO</B>(boolean&nbsp;directDatabaseIO)</PRE>
2531 <DL>
2532 <DD>Configure the database environment to not buffer database files.
2533 <p>
2534 This is intended to avoid to avoid double caching.
2535 <p>
2536 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
2537 any other library handles opened within the scope of that handle).
2538 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
2539 handles opened in the database environment must either call this method
2540 or the configuration should be specified in the database environment's
2541 DB_CONFIG configuration file.
2542 <p>
2543 This method may be called at any time during the life of the application.
2544 <p>
2545 <P>
2546 <DD><DL>
2547 </DL>
2548 </DD>
2549 <DD><DL>
2550 <DT><B>Parameters:</B><DD><CODE>directDatabaseIO</CODE> - If true, configure the database environment to not buffer database files.</DL>
2551 </DD>
2552 </DL>
2553 <HR>
2554
2555 <A NAME="getDirectDatabaseIO()"><!-- --></A><H3>
2556 getDirectDatabaseIO</H3>
2557 <PRE>
2558 public boolean <B>getDirectDatabaseIO</B>()</PRE>
2559 <DL>
2560 <DD>Return true if the database environment has been configured to not buffer
2561 database files.
2562 <p>
2563 This method may be called at any time during the life of the application.
2564 <p>
2565 <P>
2566 <DD><DL>
2567 </DL>
2568 </DD>
2569 <DD><DL>
2570
2571 <DT><B>Returns:</B><DD>True if the database environment has been configured to not buffer
2572 database files.</DL>
2573 </DD>
2574 </DL>
2575 <HR>
2576
2577 <A NAME="setDirectLogIO(boolean)"><!-- --></A><H3>
2578 setDirectLogIO</H3>
2579 <PRE>
2580 public void <B>setDirectLogIO</B>(boolean&nbsp;directLogIO)</PRE>
2581 <DL>
2582 <DD>Configure the database environment to not buffer log files.
2583 <p>
2584 This is intended to avoid to avoid double caching.
2585 <p>
2586 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
2587 any other library handles opened within the scope of that handle).
2588 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
2589 handles opened in the database environment must either call this method
2590 or the configuration should be specified in the database environment's
2591 DB_CONFIG configuration file.
2592 <p>
2593 This method may be called at any time during the life of the application.
2594 <p>
2595 <P>
2596 <DD><DL>
2597 </DL>
2598 </DD>
2599 <DD><DL>
2600 <DT><B>Parameters:</B><DD><CODE>directLogIO</CODE> - If true, configure the database environment to not buffer log files.</DL>
2601 </DD>
2602 </DL>
2603 <HR>
2604
2605 <A NAME="getDirectLogIO()"><!-- --></A><H3>
2606 getDirectLogIO</H3>
2607 <PRE>
2608 public boolean <B>getDirectLogIO</B>()</PRE>
2609 <DL>
2610 <DD>Return true if the database environment has been configured to not buffer
2611 log files.
2612 <p>
2613 This method may be called at any time during the life of the application.
2614 <p>
2615 <P>
2616 <DD><DL>
2617 </DL>
2618 </DD>
2619 <DD><DL>
2620
2621 <DT><B>Returns:</B><DD>True if the database environment has been configured to not buffer
2622 log files.</DL>
2623 </DD>
2624 </DL>
2625 <HR>
2626
2627 <A NAME="setDsyncDatabases(boolean)"><!-- --></A><H3>
2628 setDsyncDatabases</H3>
2629 <PRE>
2630 public void <B>setDsyncDatabases</B>(boolean&nbsp;dsyncDatabases)</PRE>
2631 <DL>
2632 <DD>Configure the database environment to flush database writes to the backing
2633 disk before returning from the write system call, rather than flushing
2634 database writes explicitly in a separate system call, as necessary.
2635 <p>
2636 This is only available on some systems (for example, systems supporting the
2637 m4_posix1_name standard O_DSYNC flag, or systems supporting the Win32
2638 FILE_FLAG_WRITE_THROUGH flag). This flag may result in inaccurate file
2639 modification times and other file-level information for Berkeley DB database
2640 files. This flag will almost certainly result in a performance decrease on
2641 most systems. This flag is only applicable to certain filesysystem (for
2642 example, the Veritas VxFS filesystem), where the filesystem's support for
2643 trickling writes back to stable storage behaves badly (or more likely, has
2644 been misconfigured).
2645 <p>
2646 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
2647 any other library handles opened within the scope of that handle).
2648 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
2649 handles opened in the database environment must either call this method
2650 or the configuration should be specified in the database environment's
2651 DB_CONFIG configuration file.
2652 <p>
2653 This method may be called at any time during the life of the application.
2654 <p>
2655 <P>
2656 <DD><DL>
2657 </DL>
2658 </DD>
2659 <DD><DL>
2660 <DT><B>Parameters:</B><DD><CODE>dsyncDatabases</CODE> - If true, configure the database environment to flush database writes to the
2661 backing disk before returning from the write system call, rather than
2662 flushing log writes explicitly in a separate system call.</DL>
2663 </DD>
2664 </DL>
2665 <HR>
2666
2667 <A NAME="getDsyncDatabases()"><!-- --></A><H3>
2668 getDsyncDatabases</H3>
2669 <PRE>
2670 public boolean <B>getDsyncDatabases</B>()</PRE>
2671 <DL>
2672 <DD>Return true if the database environment has been configured to flush database
2673 writes to the backing disk before returning from the write system call.
2674 <p>
2675 This method may be called at any time during the life of the application.
2676 <p>
2677 <P>
2678 <DD><DL>
2679 </DL>
2680 </DD>
2681 <DD><DL>
2682
2683 <DT><B>Returns:</B><DD>True if the database environment has been configured to flush database
2684 writes to the backing disk before returning from the write system call.</DL>
2685 </DD>
2686 </DL>
2687 <HR>
2688
2689 <A NAME="setDsyncLog(boolean)"><!-- --></A><H3>
2690 setDsyncLog</H3>
2691 <PRE>
2692 public void <B>setDsyncLog</B>(boolean&nbsp;dsyncLog)</PRE>
2693 <DL>
2694 <DD>Configure the database environment to flush log writes to the
2695 backing disk before returning from the write system call, rather
2696 than flushing log writes explicitly in a separate system call.
2697 <p>
2698 This configuration is only available on some systems (for example,
2699 systems supporting the POSIX standard O_DSYNC flag, or systems
2700 supporting the Win32 FILE_FLAG_WRITE_THROUGH flag). This
2701 configuration may result in inaccurate file modification times and
2702 other file-level information for Berkeley DB log files. This
2703 configuration may offer a performance increase on some systems and
2704 a performance decrease on others.
2705 <p>
2706 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
2707 any other library handles opened within the scope of that handle).
2708 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
2709 handles opened in the database environment must either call this method
2710 or the configuration should be specified in the database environment's
2711 DB_CONFIG configuration file.
2712 <p>
2713 This method may be called at any time during the life of the application.
2714 <p>
2715 <P>
2716 <DD><DL>
2717 </DL>
2718 </DD>
2719 <DD><DL>
2720 <DT><B>Parameters:</B><DD><CODE>dsyncLog</CODE> - If true, configure the database environment to flush log writes to
2721 the backing disk before returning from the write system call, rather
2722 than flushing log writes explicitly in a separate system call.</DL>
2723 </DD>
2724 </DL>
2725 <HR>
2726
2727 <A NAME="getDsyncLog()"><!-- --></A><H3>
2728 getDsyncLog</H3>
2729 <PRE>
2730 public boolean <B>getDsyncLog</B>()</PRE>
2731 <DL>
2732 <DD>Return true if the database environment has been configured to flush log
2733 writes to the backing disk before returning from the write system
2734 call.
2735 <p>
2736 This method may be called at any time during the life of the application.
2737 <p>
2738 <P>
2739 <DD><DL>
2740 </DL>
2741 </DD>
2742 <DD><DL>
2743
2744 <DT><B>Returns:</B><DD>True if the database environment has been configured to flush log
2745 writes to the backing disk before returning from the write system
2746 call.</DL>
2747 </DD>
2748 </DL>
2749 <HR>
2750
2751 <A NAME="setEncrypted(java.lang.String)"><!-- --></A><H3>
2752 setEncrypted</H3>
2753 <PRE>
2754 public void <B>setEncrypted</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;password)</PRE>
2755 <DL>
2756 <DD>Set the password used to perform encryption and decryption.
2757 <p>
2758 Berkeley DB uses the Rijndael/AES (also known as the Advanced
2759 Encryption Standard and Federal Information Processing
2760 Standard (FIPS) 197) algorithm for encryption or decryption.
2761 <P>
2762 <DD><DL>
2763 </DL>
2764 </DD>
2765 <DD><DL>
2766 </DL>
2767 </DD>
2768 </DL>
2769 <HR>
2770
2771 <A NAME="getEncrypted()"><!-- --></A><H3>
2772 getEncrypted</H3>
2773 <PRE>
2774 public boolean <B>getEncrypted</B>()</PRE>
2775 <DL>
2776 <DD>Return the database environment has been configured to perform
2777 encryption.
2778 <p>
2779 This method may be called at any time during the life of the application.
2780 <p>
2781 <P>
2782 <DD><DL>
2783 </DL>
2784 </DD>
2785 <DD><DL>
2786
2787 <DT><B>Returns:</B><DD>The database environment has been configured to perform
2788 encryption.</DL>
2789 </DD>
2790 </DL>
2791 <HR>
2792
2793 <A NAME="setErrorHandler(com.sleepycat.db.ErrorHandler)"><!-- --></A><H3>
2794 setErrorHandler</H3>
2795 <PRE>
2796 public void <B>setErrorHandler</B>(<A HREF="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db">ErrorHandler</A>&nbsp;errorHandler)</PRE>
2797 <DL>
2798 <DD>Set the function to be called if an error occurs.
2799 <p>
2800 When an error occurs in the Berkeley DB library, an exception is thrown.
2801 In some cases, however, the error information returned to the
2802 application may be insufficient to completely describe the cause of the
2803 error, especially during initial application debugging.
2804 <p>
2805 The <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorHandler(com.sleepycat.db.ErrorHandler)"><CODE>EnvironmentConfig.setErrorHandler</CODE></A> and <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorHandler(com.sleepycat.db.ErrorHandler)"><CODE>DatabaseConfig.setErrorHandler</CODE></A> methods are used to enhance the mechanism for reporting
2806 error messages to the application. In some cases, when an error occurs,
2807 Berkeley DB will invoke the ErrorHandler's object error method. It is
2808 up to this method to display the error message in an appropriate manner.
2809 <p>
2810 Alternatively, applications can use <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorStream(java.io.OutputStream)"><CODE>EnvironmentConfig.setErrorStream</CODE></A> and <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorStream(java.io.OutputStream)"><CODE>DatabaseConfig.setErrorStream</CODE></A> to
2811 display the additional information via an output stream. Applications
2812 should not mix these approaches.
2813 <p>
2814 This error-logging enhancement does not slow performance or significantly
2815 increase application size, and may be run during normal operation as well
2816 as during application debugging.
2817 <p>
2818 This method may be called at any time during the life of the application.
2819 <p>
2820 <P>
2821 <DD><DL>
2822 </DL>
2823 </DD>
2824 <DD><DL>
2825 <DT><B>Parameters:</B><DD><CODE>errorHandler</CODE> - The function to be called if an error occurs.</DL>
2826 </DD>
2827 </DL>
2828 <HR>
2829
2830 <A NAME="getErrorHandler()"><!-- --></A><H3>
2831 getErrorHandler</H3>
2832 <PRE>
2833 public <A HREF="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db">ErrorHandler</A> <B>getErrorHandler</B>()</PRE>
2834 <DL>
2835 <DD>Return the function to be called if an error occurs.
2836 <p>
2837 This method may be called at any time during the life of the application.
2838 <p>
2839 <P>
2840 <DD><DL>
2841 </DL>
2842 </DD>
2843 <DD><DL>
2844
2845 <DT><B>Returns:</B><DD>The function to be called if an error occurs.</DL>
2846 </DD>
2847 </DL>
2848 <HR>
2849
2850 <A NAME="setErrorPrefix(java.lang.String)"><!-- --></A><H3>
2851 setErrorPrefix</H3>
2852 <PRE>
2853 public void <B>setErrorPrefix</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;errorPrefix)</PRE>
2854 <DL>
2855 <DD>Set the prefix string that appears before error messages.
2856 <p>
2857 This method may be called at any time during the life of the application.
2858 <p>
2859 <P>
2860 <DD><DL>
2861 </DL>
2862 </DD>
2863 <DD><DL>
2864 <DT><B>Parameters:</B><DD><CODE>errorPrefix</CODE> - The prefix string that appears before error messages.</DL>
2865 </DD>
2866 </DL>
2867 <HR>
2868
2869 <A NAME="getErrorPrefix()"><!-- --></A><H3>
2870 getErrorPrefix</H3>
2871 <PRE>
2872 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getErrorPrefix</B>()</PRE>
2873 <DL>
2874 <DD>Return the prefix string that appears before error messages.
2875 <p>
2876 This method may be called at any time during the life of the application.
2877 <p>
2878 <P>
2879 <DD><DL>
2880 </DL>
2881 </DD>
2882 <DD><DL>
2883
2884 <DT><B>Returns:</B><DD>The prefix string that appears before error messages.</DL>
2885 </DD>
2886 </DL>
2887 <HR>
2888
2889 <A NAME="setErrorStream(java.io.OutputStream)"><!-- --></A><H3>
2890 setErrorStream</H3>
2891 <PRE>
2892 public void <B>setErrorStream</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;errorStream)</PRE>
2893 <DL>
2894 <DD>Set an OutputStream for displaying error messages.
2895 <p>
2896 When an error occurs in the Berkeley DB library, an exception is thrown.
2897 In some cases, however, the error information returned to the
2898 application may be insufficient to completely describe the cause of the
2899 error, especially during initial application debugging.
2900 <p>
2901 The <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorStream(java.io.OutputStream)"><CODE>EnvironmentConfig.setErrorStream</CODE></A> and
2902 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorStream(java.io.OutputStream)"><CODE>DatabaseConfig.setErrorStream</CODE></A> methods are used to enhance
2903 the mechanism for reporting error messages to the application by setting
2904 a OutputStream to be used for displaying additional Berkeley DB error
2905 messages. In some cases, when an error occurs, Berkeley DB will output
2906 an additional error message to the specified stream.
2907 <p>
2908 The error message will consist of the prefix string and a colon
2909 ("<b>:</b>") (if a prefix string was previously specified using
2910 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorPrefix(java.lang.String)"><CODE>EnvironmentConfig.setErrorPrefix</CODE></A> or <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorPrefix(java.lang.String)"><CODE>DatabaseConfig.setErrorPrefix</CODE></A>), an error string, and a trailing newline character.
2911 <p>
2912 Setting errorStream to null unconfigures the interface.
2913 <p>
2914 Alternatively, applications can use <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorHandler(com.sleepycat.db.ErrorHandler)"><CODE>EnvironmentConfig.setErrorHandler</CODE></A> and <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorHandler(com.sleepycat.db.ErrorHandler)"><CODE>DatabaseConfig.setErrorHandler</CODE></A> to capture
2915 the additional error information in a way that does not use output
2916 streams. Applications should not mix these approaches.
2917 <p>
2918 This error-logging enhancement does not slow performance or significantly
2919 increase application size, and may be run during normal operation as well
2920 as during application debugging.
2921 <p>
2922 This method may be called at any time during the life of the application.
2923 <p>
2924 <P>
2925 <DD><DL>
2926 </DL>
2927 </DD>
2928 <DD><DL>
2929 <DT><B>Parameters:</B><DD><CODE>errorStream</CODE> - The application-specified OutputStream for error messages.</DL>
2930 </DD>
2931 </DL>
2932 <HR>
2933
2934 <A NAME="getErrorStream()"><!-- --></A><H3>
2935 getErrorStream</H3>
2936 <PRE>
2937 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> <B>getErrorStream</B>()</PRE>
2938 <DL>
2939 <DD>Return the OutputStream for displaying error messages.
2940 <p>
2941 This method may be called at any time during the life of the application.
2942 <p>
2943 <P>
2944 <DD><DL>
2945 </DL>
2946 </DD>
2947 <DD><DL>
2948
2949 <DT><B>Returns:</B><DD>The OutputStream for displaying error messages.</DL>
2950 </DD>
2951 </DL>
2952 <HR>
2953
2954 <A NAME="getBackupReadCount()"><!-- --></A><H3>
2955 getBackupReadCount</H3>
2956 <PRE>
2957 public int <B>getBackupReadCount</B>()</PRE>
2958 <DL>
2959 <DD>Return the number of pages to read before pausing during the hot backup.
2960 <p>
2961 <P>
2962 <DD><DL>
2963 </DL>
2964 </DD>
2965 <DD><DL>
2966
2967 <DT><B>Returns:</B><DD>The number of pages to read before pausing.</DL>
2968 </DD>
2969 </DL>
2970 <HR>
2971
2972 <A NAME="setBackupReadCount(int)"><!-- --></A><H3>
2973 setBackupReadCount</H3>
2974 <PRE>
2975 public void <B>setBackupReadCount</B>(int&nbsp;count)</PRE>
2976 <DL>
2977 <DD>Configures the number of pages to read during a hot backup before pausing.
2978 <p>
2979 Increasing this value increases the amount of I/O the backup process
2980 performs for any given time interval. If your application is already
2981 heavily I/O bound, setting this value to a lower number may help to improve
2982 your overall data throughput by reducing the I/O demands placed on your
2983 system. By default, all pages are read without a pause.
2984 <p>
2985 This method configures the behavior of the
2986 <A HREF="../../../com/sleepycat/db/Environment.html#backup(java.lang.String, com.sleepycat.db.BackupOptions)"><CODE>Environment.backup</CODE></A>
2987 and
2988 <A HREF="../../../com/sleepycat/db/Environment.html#backupDatabase(java.lang.String, java.lang.String, boolean)"><CODE>Environment.backupDatabase</CODE></A>
2989 methods. It may be called at any time during the life of the application.
2990 <p>
2991 <P>
2992 <DD><DL>
2993 </DL>
2994 </DD>
2995 <DD><DL>
2996 <DT><B>Parameters:</B><DD><CODE>count</CODE> - The number of pages to read before pausing.</DL>
2997 </DD>
2998 </DL>
2999 <HR>
3000
3001 <A NAME="getBackupReadSleep()"><!-- --></A><H3>
3002 getBackupReadSleep</H3>
3003 <PRE>
3004 public int <B>getBackupReadSleep</B>()</PRE>
3005 <DL>
3006 <DD>Return the number of microseconds to sleep between batches of reads during
3007 a hot backup.
3008 <p>
3009 <P>
3010 <DD><DL>
3011 </DL>
3012 </DD>
3013 <DD><DL>
3014
3015 <DT><B>Returns:</B><DD>The number of microseconds to sleep.</DL>
3016 </DD>
3017 </DL>
3018 <HR>
3019
3020 <A NAME="setBackupReadSleep(int)"><!-- --></A><H3>
3021 setBackupReadSleep</H3>
3022 <PRE>
3023 public void <B>setBackupReadSleep</B>(int&nbsp;sleep)</PRE>
3024 <DL>
3025 <DD>Configures the number of microseconds to sleep between batches of reads during
3026 a hot backup.
3027 <p>
3028 Increasing this value decreases the amount of I/O the backup process
3029 performs for any given time interval. If your application is already
3030 heavily I/O bound, setting this value to a higher number may help to
3031 improve your overall data throughput by reducing the I/O demands placed on
3032 your system.
3033 <p>
3034 This method configures the behavior of the
3035 <A HREF="../../../com/sleepycat/db/Environment.html#backup(java.lang.String, com.sleepycat.db.BackupOptions)"><CODE>Environment.backup</CODE></A>
3036 and
3037 <A HREF="../../../com/sleepycat/db/Environment.html#backupDatabase(java.lang.String, java.lang.String, boolean)"><CODE>Environment.backupDatabase</CODE></A>
3038 methods. It may be called at any time during the life of the application.
3039 <p>
3040 <P>
3041 <DD><DL>
3042 </DL>
3043 </DD>
3044 <DD><DL>
3045 <DT><B>Parameters:</B><DD><CODE>sleep</CODE> - The number of microseconds to sleep.</DL>
3046 </DD>
3047 </DL>
3048 <HR>
3049
3050 <A NAME="getBackupSize()"><!-- --></A><H3>
3051 getBackupSize</H3>
3052 <PRE>
3053 public int <B>getBackupSize</B>()</PRE>
3054 <DL>
3055 <DD>Return the size of the buffer, in megabytes, to read from the database
3056 during a hot backup.
3057 <p>
3058 <P>
3059 <DD><DL>
3060 </DL>
3061 </DD>
3062 <DD><DL>
3063
3064 <DT><B>Returns:</B><DD>The size of the buffer in megabytes.</DL>
3065 </DD>
3066 </DL>
3067 <HR>
3068
3069 <A NAME="setBackupSize(int)"><!-- --></A><H3>
3070 setBackupSize</H3>
3071 <PRE>
3072 public void <B>setBackupSize</B>(int&nbsp;size)</PRE>
3073 <DL>
3074 <DD>Configures the size of the buffer, in bytes, to read from the database
3075 during a hot backup.
3076 <p>
3077 This method configures the behavior of the
3078 <A HREF="../../../com/sleepycat/db/Environment.html#backup(java.lang.String, com.sleepycat.db.BackupOptions)"><CODE>Environment.backup</CODE></A>
3079 and
3080 <A HREF="../../../com/sleepycat/db/Environment.html#backupDatabase(java.lang.String, java.lang.String, boolean)"><CODE>Environment.backupDatabase</CODE></A>
3081 methods. It may be called at any time during the life of the application.
3082 <p>
3083 <P>
3084 <DD><DL>
3085 </DL>
3086 </DD>
3087 <DD><DL>
3088 <DT><B>Parameters:</B><DD><CODE>size</CODE> - The size of the buffer in bytes. Default is 1 megabyte.</DL>
3089 </DD>
3090 </DL>
3091 <HR>
3092
3093 <A NAME="getBackupWriteDirect()"><!-- --></A><H3>
3094 getBackupWriteDirect</H3>
3095 <PRE>
3096 public boolean <B>getBackupWriteDirect</B>()</PRE>
3097 <DL>
3098 <DD>Return return true if direct I/O is used when writing pages to the disk
3099 during a hot backup.
3100 <p>
3101 <P>
3102 <DD><DL>
3103 </DL>
3104 </DD>
3105 <DD><DL>
3106
3107 <DT><B>Returns:</B><DD>The environment's current direct I/O for hot backup setting.</DL>
3108 </DD>
3109 </DL>
3110 <HR>
3111
3112 <A NAME="setBackupWriteDirect(boolean)"><!-- --></A><H3>
3113 setBackupWriteDirect</H3>
3114 <PRE>
3115 public void <B>setBackupWriteDirect</B>(boolean&nbsp;writeDirect)</PRE>
3116 <DL>
3117 <DD>Configures whether direct I/O is used when writing pages to the disk during a
3118 hot backup.
3119 <p>
3120 For some environments, direct I/O can provide faster write throughput, but
3121 usually it is slower because the OS buffer pool offers asynchronous
3122 activity.
3123 <p>
3124 This method configures the behavior of the
3125 <A HREF="../../../com/sleepycat/db/Environment.html#backup(java.lang.String, com.sleepycat.db.BackupOptions)"><CODE>Environment.backup</CODE></A>
3126 and
3127 <A HREF="../../../com/sleepycat/db/Environment.html#backupDatabase(java.lang.String, java.lang.String, boolean)"><CODE>Environment.backupDatabase</CODE></A>
3128 methods. It may be called at any time during the life of the application.
3129 <p>
3130 <P>
3131 <DD><DL>
3132 </DL>
3133 </DD>
3134 <DD><DL>
3135 <DT><B>Parameters:</B><DD><CODE>writeDirect</CODE> - If true, use direct I/O when writing database pages; if false, do not use
3136 direct I/O.</DL>
3137 </DD>
3138 </DL>
3139 <HR>
3140
3141 <A NAME="setBackupHandler(com.sleepycat.db.BackupHandler)"><!-- --></A><H3>
3142 setBackupHandler</H3>
3143 <PRE>
3144 public void <B>setBackupHandler</B>(<A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db">BackupHandler</A>&nbsp;backupHandler)</PRE>
3145 <DL>
3146 <DD>Sets the <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db"><CODE>BackupHandler</CODE></A>
3147 interface to be used when performing hot backups.
3148 <p>
3149 The <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db"><CODE>BackupHandler</CODE></A> interface is used
3150 to override the default behavior used by the
3151 <A HREF="../../../com/sleepycat/db/Environment.html#backup(java.lang.String, com.sleepycat.db.BackupOptions)"><CODE>Environment.backup</CODE></A>
3152 and
3153 <A HREF="../../../com/sleepycat/db/Environment.html#backupDatabase(java.lang.String, java.lang.String, boolean)"><CODE>Environment.backupDatabase</CODE></A>
3154 methods.
3155 <p>
3156 This method may be called at any time during the life of the application.
3157 <p>
3158 This method configures operations performed using the Environment handle,
3159 not all operations performed on the underlying database environment.
3160 <p>
3161 <P>
3162 <DD><DL>
3163 </DL>
3164 </DD>
3165 <DD><DL>
3166 <DT><B>Parameters:</B><DD><CODE>backupHandler</CODE> - The <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db"><CODE>BackupHandler</CODE></A>
3167 interface to use when performing hot backups.</DL>
3168 </DD>
3169 </DL>
3170 <HR>
3171
3172 <A NAME="getBackupHandler()"><!-- --></A><H3>
3173 getBackupHandler</H3>
3174 <PRE>
3175 public <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db">BackupHandler</A> <B>getBackupHandler</B>()</PRE>
3176 <DL>
3177 <DD>Return the <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db"><CODE>BackupHandler</CODE></A>
3178 used to override default hot backup behavior.
3179 <p>
3180 <P>
3181 <DD><DL>
3182 </DL>
3183 </DD>
3184 <DD><DL>
3185
3186 <DT><B>Returns:</B><DD>The <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db"><CODE>BackupHandler</CODE></A>
3187 interface to use when performing hot backups.</DL>
3188 </DD>
3189 </DL>
3190 <HR>
3191
3192 <A NAME="setEventHandler(com.sleepycat.db.EventHandler)"><!-- --></A><H3>
3193 setEventHandler</H3>
3194 <PRE>
3195 public void <B>setEventHandler</B>(<A HREF="../../../com/sleepycat/db/EventHandler.html" title="interface in com.sleepycat.db">EventHandler</A>&nbsp;eventHandler)</PRE>
3196 <DL>
3197 <DD>Set an object whose methods are to be called when a triggered event occurs.
3198 <p>
3199 <P>
3200 <DD><DL>
3201 </DL>
3202 </DD>
3203 <DD><DL>
3204 <DT><B>Parameters:</B><DD><CODE>eventHandler</CODE> - An object whose methods are called when event callbacks are initiated from
3205 within Berkeley DB.</DL>
3206 </DD>
3207 </DL>
3208 <HR>
3209
3210 <A NAME="getEventHandler()"><!-- --></A><H3>
3211 getEventHandler</H3>
3212 <PRE>
3213 public <A HREF="../../../com/sleepycat/db/EventHandler.html" title="interface in com.sleepycat.db">EventHandler</A> <B>getEventHandler</B>()</PRE>
3214 <DL>
3215 <DD>Return the object's methods to be called when a triggered event occurs.
3216 <p>
3217 This method may be called at any time during the life of the application.
3218 <p>
3219 <P>
3220 <DD><DL>
3221 </DL>
3222 </DD>
3223 <DD><DL>
3224
3225 <DT><B>Returns:</B><DD>The object's methods to be called when a triggered event occurs.</DL>
3226 </DD>
3227 </DL>
3228 <HR>
3229
3230 <A NAME="setFeedbackHandler(com.sleepycat.db.FeedbackHandler)"><!-- --></A><H3>
3231 setFeedbackHandler</H3>
3232 <PRE>
3233 public void <B>setFeedbackHandler</B>(<A HREF="../../../com/sleepycat/db/FeedbackHandler.html" title="interface in com.sleepycat.db">FeedbackHandler</A>&nbsp;feedbackHandler)</PRE>
3234 <DL>
3235 <DD>Set an object whose methods are called to provide feedback.
3236 <p>
3237 Some operations performed by the Berkeley DB library can take
3238 non-trivial amounts of time. This method can be used by applications
3239 to monitor progress within these operations. When an operation is
3240 likely to take a long time, Berkeley DB will call the object's methods
3241 with progress information.
3242 <p>
3243 It is up to the object's methods to display this information in an
3244 appropriate manner.
3245 <p>
3246 This method configures only operations performed using a single a
3247 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle
3248 <p>
3249 This method may be called at any time during the life of the application.
3250 <p>
3251 <P>
3252 <DD><DL>
3253 </DL>
3254 </DD>
3255 <DD><DL>
3256 <DT><B>Parameters:</B><DD><CODE>feedbackHandler</CODE> - An object whose methods are called to provide feedback.</DL>
3257 </DD>
3258 </DL>
3259 <HR>
3260
3261 <A NAME="getFeedbackHandler()"><!-- --></A><H3>
3262 getFeedbackHandler</H3>
3263 <PRE>
3264 public <A HREF="../../../com/sleepycat/db/FeedbackHandler.html" title="interface in com.sleepycat.db">FeedbackHandler</A> <B>getFeedbackHandler</B>()</PRE>
3265 <DL>
3266 <DD>Return the object's methods to be called to provide feedback.
3267 <p>
3268 This method may be called at any time during the life of the application.
3269 <p>
3270 <P>
3271 <DD><DL>
3272 </DL>
3273 </DD>
3274 <DD><DL>
3275
3276 <DT><B>Returns:</B><DD>The object's methods to be called to provide feedback.</DL>
3277 </DD>
3278 </DL>
3279 <HR>
3280
3281 <A NAME="setHotbackupInProgress(boolean)"><!-- --></A><H3>
3282 setHotbackupInProgress</H3>
3283 <PRE>
3284 public void <B>setHotbackupInProgress</B>(boolean&nbsp;hotbackup)</PRE>
3285 <DL>
3286 <DD>When a "hot backup" copy of a database environment is taken, this
3287 attribute should be configured in the environment prior to copying.
3288 If any transactions with the bulk insert optimization enabled (i.e.,
3289 started with the Bulk configuration attribute) are in progress,
3290 setting the HotBackupInProgress attribute will force a checkpoint in
3291 the environment. After this attribute is set, the bulk insert
3292 optimization is disabled, until the attribute is reset. Using this
3293 protocol allows a hot backup procedure to make a consistent copy of
3294 the database even when bulk transactions are ongoing. Please see the
3295 discussion of hot backups in the <i>Getting Started With Transactions
3296 Guide</i>, and the description of the Bulk attribute in
3297 <A HREF="../../../com/sleepycat/db/TransactionConfig.html" title="class in com.sleepycat.db"><CODE>TransactionConfig</CODE></A>
3298 for more information.
3299 <p>
3300 <P>
3301 <DD><DL>
3302 </DL>
3303 </DD>
3304 <DD><DL>
3305 <DT><B>Parameters:</B><DD><CODE>hotbackup</CODE> - If true, set the HotBackupInProgress attribute; if false, reset it.</DL>
3306 </DD>
3307 </DL>
3308 <HR>
3309
3310 <A NAME="getHotbackupInProgress()"><!-- --></A><H3>
3311 getHotbackupInProgress</H3>
3312 <PRE>
3313 public boolean <B>getHotbackupInProgress</B>()</PRE>
3314 <DL>
3315 <DD>Return true if a "hot backup" is in progress.
3316 <p>
3317 <P>
3318 <DD><DL>
3319 </DL>
3320 </DD>
3321 <DD><DL>
3322
3323 <DT><B>Returns:</B><DD>The environment's current HotBackupInProgress setting.</DL>
3324 </DD>
3325 </DL>
3326 <HR>
3327
3328 <A NAME="setInitializeCache(boolean)"><!-- --></A><H3>
3329 setInitializeCache</H3>
3330 <PRE>
3331 public void <B>setInitializeCache</B>(boolean&nbsp;initializeCache)</PRE>
3332 <DL>
3333 <DD>Configure a shared memory buffer pool in the database environment.
3334 <p>
3335 This subsystem should be used whenever an application is using any
3336 Berkeley DB access method.
3337 <p>
3338 <P>
3339 <DD><DL>
3340 </DL>
3341 </DD>
3342 <DD><DL>
3343 <DT><B>Parameters:</B><DD><CODE>initializeCache</CODE> - If true, configure a shared memory buffer pool in the database
3344 environment.</DL>
3345 </DD>
3346 </DL>
3347 <HR>
3348
3349 <A NAME="getInitializeCache()"><!-- --></A><H3>
3350 getInitializeCache</H3>
3351 <PRE>
3352 public boolean <B>getInitializeCache</B>()</PRE>
3353 <DL>
3354 <DD>Return true if the database environment is configured with a shared
3355 memory buffer pool.
3356 <p>
3357 This method may be called at any time during the life of the application.
3358 <p>
3359 <P>
3360 <DD><DL>
3361 </DL>
3362 </DD>
3363 <DD><DL>
3364
3365 <DT><B>Returns:</B><DD>True if the database environment is configured with a shared
3366 memory buffer pool.</DL>
3367 </DD>
3368 </DL>
3369 <HR>
3370
3371 <A NAME="setInitializeCDB(boolean)"><!-- --></A><H3>
3372 setInitializeCDB</H3>
3373 <PRE>
3374 public void <B>setInitializeCDB</B>(boolean&nbsp;initializeCDB)</PRE>
3375 <DL>
3376 <DD>Configure the database environment for the Concurrent Data Store
3377 product.
3378 <p>
3379 In this mode, Berkeley DB provides multiple reader/single writer access.
3380 The only other subsystem that should be specified for this handle is a
3381 cache.
3382 <p>
3383 <P>
3384 <DD><DL>
3385 </DL>
3386 </DD>
3387 <DD><DL>
3388 <DT><B>Parameters:</B><DD><CODE>initializeCDB</CODE> - If true, configure the database environment for the Concurrent Data
3389 Store product.</DL>
3390 </DD>
3391 </DL>
3392 <HR>
3393
3394 <A NAME="getInitializeCDB()"><!-- --></A><H3>
3395 getInitializeCDB</H3>
3396 <PRE>
3397 public boolean <B>getInitializeCDB</B>()</PRE>
3398 <DL>
3399 <DD>Return true if the database environment is configured for the Concurrent
3400 Data Store product.
3401 <p>
3402 This method may be called at any time during the life of the application.
3403 <p>
3404 <P>
3405 <DD><DL>
3406 </DL>
3407 </DD>
3408 <DD><DL>
3409
3410 <DT><B>Returns:</B><DD>True if the database environment is configured for the Concurrent
3411 Data Store product.</DL>
3412 </DD>
3413 </DL>
3414 <HR>
3415
3416 <A NAME="setInitializeLocking(boolean)"><!-- --></A><H3>
3417 setInitializeLocking</H3>
3418 <PRE>
3419 public void <B>setInitializeLocking</B>(boolean&nbsp;initializeLocking)</PRE>
3420 <DL>
3421 <DD>Configure the database environment for locking.
3422 <p>
3423 Locking should be used when multiple processes or threads are going
3424 to be reading and writing a database, so they do not interfere with
3425 each other. If all threads are accessing the database(s) read-only,
3426 locking is unnecessary. When locking is configured, it is usually
3427 necessary to run a deadlock detector, as well.
3428 <p>
3429 <P>
3430 <DD><DL>
3431 </DL>
3432 </DD>
3433 <DD><DL>
3434 <DT><B>Parameters:</B><DD><CODE>initializeLocking</CODE> - If true, configure the database environment for locking.</DL>
3435 </DD>
3436 </DL>
3437 <HR>
3438
3439 <A NAME="getInitializeLocking()"><!-- --></A><H3>
3440 getInitializeLocking</H3>
3441 <PRE>
3442 public boolean <B>getInitializeLocking</B>()</PRE>
3443 <DL>
3444 <DD>Return true if the database environment is configured for locking.
3445 <p>
3446 This method may be called at any time during the life of the application.
3447 <p>
3448 <P>
3449 <DD><DL>
3450 </DL>
3451 </DD>
3452 <DD><DL>
3453
3454 <DT><B>Returns:</B><DD>True if the database environment is configured for locking.</DL>
3455 </DD>
3456 </DL>
3457 <HR>
3458
3459 <A NAME="setInitializeLogging(boolean)"><!-- --></A><H3>
3460 setInitializeLogging</H3>
3461 <PRE>
3462 public void <B>setInitializeLogging</B>(boolean&nbsp;initializeLogging)</PRE>
3463 <DL>
3464 <DD>Configure the database environment for logging.
3465 <p>
3466 Logging should be used when recovery from application or system
3467 failure is necessary. If the log region is being created and log
3468 files are already present, the log files are reviewed; subsequent
3469 log writes are appended to the end of the log, rather than overwriting
3470 current log entries.
3471 <p>
3472 <P>
3473 <DD><DL>
3474 </DL>
3475 </DD>
3476 <DD><DL>
3477 <DT><B>Parameters:</B><DD><CODE>initializeLogging</CODE> - If true, configure the database environment for logging.</DL>
3478 </DD>
3479 </DL>
3480 <HR>
3481
3482 <A NAME="getInitializeLogging()"><!-- --></A><H3>
3483 getInitializeLogging</H3>
3484 <PRE>
3485 public boolean <B>getInitializeLogging</B>()</PRE>
3486 <DL>
3487 <DD>Return true if the database environment is configured for logging.
3488 <p>
3489 This method may be called at any time during the life of the application.
3490 <p>
3491 <P>
3492 <DD><DL>
3493 </DL>
3494 </DD>
3495 <DD><DL>
3496
3497 <DT><B>Returns:</B><DD>True if the database environment is configured for logging.</DL>
3498 </DD>
3499 </DL>
3500 <HR>
3501
3502 <A NAME="setInitializeRegions(boolean)"><!-- --></A><H3>
3503 setInitializeRegions</H3>
3504 <PRE>
3505 public void <B>setInitializeRegions</B>(boolean&nbsp;initializeRegions)</PRE>
3506 <DL>
3507 <DD>Configure the database environment to page-fault shared regions into
3508 memory when initially creating or joining a database environment.
3509 <p>
3510 In some applications, the expense of page-faulting the underlying
3511 shared memory regions can affect performance. For example, if the
3512 page-fault occurs while holding a lock, other lock requests can
3513 convoy, and overall throughput may decrease. This method
3514 configures Berkeley DB to page-fault shared regions into memory when
3515 initially creating or joining a database environment. In addition,
3516 Berkeley DB will write the shared regions when creating an
3517 environment, forcing the underlying virtual memory and filesystems
3518 to instantiate both the necessary memory and the necessary disk
3519 space. This can also avoid out-of-disk space failures later on.
3520 <p>
3521 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
3522 any other library handles opened within the scope of that handle).
3523 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
3524 handles opened in the database environment must either call this method
3525 or the configuration should be specified in the database environment's
3526 DB_CONFIG configuration file.
3527 <p>
3528 This method may be called at any time during the life of the application.
3529 <p>
3530 <P>
3531 <DD><DL>
3532 </DL>
3533 </DD>
3534 <DD><DL>
3535 <DT><B>Parameters:</B><DD><CODE>initializeRegions</CODE> - If true, configure the database environment to page-fault shared
3536 regions into memory when initially creating or joining a database
3537 environment.</DL>
3538 </DD>
3539 </DL>
3540 <HR>
3541
3542 <A NAME="getInitializeRegions()"><!-- --></A><H3>
3543 getInitializeRegions</H3>
3544 <PRE>
3545 public boolean <B>getInitializeRegions</B>()</PRE>
3546 <DL>
3547 <DD>Return true if the database environment has been configured to page-fault
3548 shared regions into memory when initially creating or joining a
3549 database environment.
3550 <p>
3551 This method may be called at any time during the life of the application.
3552 <p>
3553 <P>
3554 <DD><DL>
3555 </DL>
3556 </DD>
3557 <DD><DL>
3558
3559 <DT><B>Returns:</B><DD>True if the database environment has been configured to page-fault
3560 shared regions into memory when initially creating or joining a
3561 database environment.</DL>
3562 </DD>
3563 </DL>
3564 <HR>
3565
3566 <A NAME="setInitializeReplication(boolean)"><!-- --></A><H3>
3567 setInitializeReplication</H3>
3568 <PRE>
3569 public void <B>setInitializeReplication</B>(boolean&nbsp;initializeReplication)</PRE>
3570 <DL>
3571 <DD>Configure the database environment for replication.
3572 <p>
3573 Replication requires both locking and transactions.
3574 <p>
3575 <P>
3576 <DD><DL>
3577 </DL>
3578 </DD>
3579 <DD><DL>
3580 <DT><B>Parameters:</B><DD><CODE>initializeReplication</CODE> - If true, configure the database environment for replication.</DL>
3581 </DD>
3582 </DL>
3583 <HR>
3584
3585 <A NAME="getInitializeReplication()"><!-- --></A><H3>
3586 getInitializeReplication</H3>
3587 <PRE>
3588 public boolean <B>getInitializeReplication</B>()</PRE>
3589 <DL>
3590 <DD>Return true if the database environment is configured for replication.
3591 <p>
3592 This method may be called at any time during the life of the application.
3593 <p>
3594 <P>
3595 <DD><DL>
3596 </DL>
3597 </DD>
3598 <DD><DL>
3599
3600 <DT><B>Returns:</B><DD>True if the database environment is configured for replication.</DL>
3601 </DD>
3602 </DL>
3603 <HR>
3604
3605 <A NAME="setJoinEnvironment(boolean)"><!-- --></A><H3>
3606 setJoinEnvironment</H3>
3607 <PRE>
3608 public void <B>setJoinEnvironment</B>(boolean&nbsp;joinEnvironment)</PRE>
3609 <DL>
3610 <DD>Configure the handle to join an existing environment.
3611 <p>
3612 This option allows applications to join an existing environment
3613 without knowing which subsystems the environment supports.
3614 <p>
3615 <P>
3616 <DD><DL>
3617 </DL>
3618 </DD>
3619 <DD><DL>
3620 <DT><B>Parameters:</B><DD><CODE>joinEnvironment</CODE> - If true, configure the handle to join an existing environment.</DL>
3621 </DD>
3622 </DL>
3623 <HR>
3624
3625 <A NAME="getJoinEnvironment()"><!-- --></A><H3>
3626 getJoinEnvironment</H3>
3627 <PRE>
3628 public boolean <B>getJoinEnvironment</B>()</PRE>
3629 <DL>
3630 <DD>Return the handle is configured to join an existing environment.
3631 <p>
3632 This method may be called at any time during the life of the application.
3633 <p>
3634 <P>
3635 <DD><DL>
3636 </DL>
3637 </DD>
3638 <DD><DL>
3639
3640 <DT><B>Returns:</B><DD>The handle is configured to join an existing environment.</DL>
3641 </DD>
3642 </DL>
3643 <HR>
3644
3645 <A NAME="setLockConflicts(byte[][])"><!-- --></A><H3>
3646 setLockConflicts</H3>
3647 <PRE>
3648 public void <B>setLockConflicts</B>(byte[][]&nbsp;lockConflicts)</PRE>
3649 <DL>
3650 <DD>Configure the locking conflicts matrix.
3651 <p>
3652 If the locking conflicts matrix is never configured, a standard
3653 conflicts array is used.
3654 <p>
3655 This method configures a database environment, including all threads
3656 of control accessing the database environment, not only the operations
3657 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
3658 <p>
3659 This method may not be called after the
3660 environment has been opened.
3661 If joining an existing database environment, any
3662 information specified to this method will be ignored.
3663 <p>
3664 <P>
3665 <DD><DL>
3666 </DL>
3667 </DD>
3668 <DD><DL>
3669 <DT><B>Parameters:</B><DD><CODE>lockConflicts</CODE> - The locking conflicts matrix. A non-0 value for an array element
3670 indicates the requested_mode and held_mode conflict:
3671 <blockquote><pre>
3672 lockConflicts[requested_mode][held_mode]
3673 </pre></blockquote>
3674 <p>
3675 The <em>not-granted</em> mode must be represented by 0.</DL>
3676 </DD>
3677 </DL>
3678 <HR>
3679
3680 <A NAME="getLockConflicts()"><!-- --></A><H3>
3681 getLockConflicts</H3>
3682 <PRE>
3683 public byte[][] <B>getLockConflicts</B>()</PRE>
3684 <DL>
3685 <DD>Return the locking conflicts matrix.
3686 <p>
3687 This method may be called at any time during the life of the application.
3688 <p>
3689 <P>
3690 <DD><DL>
3691 </DL>
3692 </DD>
3693 <DD><DL>
3694
3695 <DT><B>Returns:</B><DD>The locking conflicts matrix.</DL>
3696 </DD>
3697 </DL>
3698 <HR>
3699
3700 <A NAME="setLockDetectMode(com.sleepycat.db.LockDetectMode)"><!-- --></A><H3>
3701 setLockDetectMode</H3>
3702 <PRE>
3703 public void <B>setLockDetectMode</B>(<A HREF="../../../com/sleepycat/db/LockDetectMode.html" title="class in com.sleepycat.db">LockDetectMode</A>&nbsp;lockDetectMode)</PRE>
3704 <DL>
3705 <DD>Configure if the deadlock detector is to be run whenever a lock
3706 conflict occurs.
3707 <p>
3708 The database environment's deadlock detector configuration may also be set using the environment's
3709 DB_CONFIG file. The syntax of the entry in that file is a single line
3710 with the string "set_lk_detect", one or more whitespace characters, and the method <code>detect</code> parameter as a string; for example,
3711 "set_lk_detect DB_LOCK_OLDEST".
3712 Because the DB_CONFIG file is read when the database environment is
3713 opened, it will silently overrule configuration done before that time.
3714 <p>
3715 This method configures a database environment, including all threads
3716 of control accessing the database environment, not only the operations
3717 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
3718 <p>
3719 Although the method may be called at any time during the life of the
3720 application, it should normally be called before opening the database
3721 environment.
3722 <p>
3723 <P>
3724 <DD><DL>
3725 </DL>
3726 </DD>
3727 <DD><DL>
3728 <DT><B>Parameters:</B><DD><CODE>lockDetectMode</CODE> - The lock request(s) to be rejected. As transactions acquire locks
3729 on behalf of a single locker ID, rejecting a lock request associated
3730 with a transaction normally requires the transaction be aborted.</DL>
3731 </DD>
3732 </DL>
3733 <HR>
3734
3735 <A NAME="getLockDetectMode()"><!-- --></A><H3>
3736 getLockDetectMode</H3>
3737 <PRE>
3738 public <A HREF="../../../com/sleepycat/db/LockDetectMode.html" title="class in com.sleepycat.db">LockDetectMode</A> <B>getLockDetectMode</B>()</PRE>
3739 <DL>
3740 <DD>Return true if the deadlock detector is configured to run whenever a lock
3741 conflict occurs.
3742 <p>
3743 This method may be called at any time during the life of the application.
3744 <p>
3745 <P>
3746 <DD><DL>
3747 </DL>
3748 </DD>
3749 <DD><DL>
3750
3751 <DT><B>Returns:</B><DD>True if the deadlock detector is configured to run whenever a lock
3752 conflict occurs.</DL>
3753 </DD>
3754 </DL>
3755 <HR>
3756
3757 <A NAME="setLockDown(boolean)"><!-- --></A><H3>
3758 setLockDown</H3>
3759 <PRE>
3760 public void <B>setLockDown</B>(boolean&nbsp;lockDown)</PRE>
3761 <DL>
3762 <DD>Configure the database environment to lock shared environment files
3763 and memory-mapped databases into memory.
3764 <p>
3765 <P>
3766 <DD><DL>
3767 </DL>
3768 </DD>
3769 <DD><DL>
3770 <DT><B>Parameters:</B><DD><CODE>lockDown</CODE> - If true, configure the database environment to lock shared
3771 environment files and memory-mapped databases into memory.</DL>
3772 </DD>
3773 </DL>
3774 <HR>
3775
3776 <A NAME="getLockDown()"><!-- --></A><H3>
3777 getLockDown</H3>
3778 <PRE>
3779 public boolean <B>getLockDown</B>()</PRE>
3780 <DL>
3781 <DD>Return true if the database environment is configured to lock shared
3782 environment files and memory-mapped databases into memory.
3783 <p>
3784 This method may be called at any time during the life of the application.
3785 <p>
3786 <P>
3787 <DD><DL>
3788 </DL>
3789 </DD>
3790 <DD><DL>
3791
3792 <DT><B>Returns:</B><DD>True if the database environment is configured to lock shared
3793 environment files and memory-mapped databases into memory.</DL>
3794 </DD>
3795 </DL>
3796 <HR>
3797
3798 <A NAME="setLockTimeout(long)"><!-- --></A><H3>
3799 setLockTimeout</H3>
3800 <PRE>
3801 public void <B>setLockTimeout</B>(long&nbsp;lockTimeout)</PRE>
3802 <DL>
3803 <DD>Set the timeout value for the database environment
3804 locks.
3805 <p>
3806 Lock timeouts are checked whenever a thread of control blocks on a lock
3807 or when deadlock detection is performed. The lock may have been
3808 requested explicitly through the Lock subsystem interfaces, or it may
3809 be a lock requested by the database access methods underlying the
3810 application.
3811 As timeouts are only checked when the lock request first blocks or when
3812 deadlock detection is performed, the accuracy of the timeout depends on
3813 how often deadlock detection is performed.
3814 <p>
3815 Timeout values specified for the database environment may be overridden
3816 on a
3817 per-lock basis by <A HREF="../../../com/sleepycat/db/Environment.html#lockVector(int, boolean, com.sleepycat.db.LockRequest[])"><CODE>Environment.lockVector</CODE></A>.
3818 <p>
3819 This method configures a database environment, including all threads
3820 of control accessing the database environment, not only the operations
3821 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
3822 <p>
3823 This method may be called at any time during the life of the application.
3824 <p>
3825 <P>
3826 <DD><DL>
3827 </DL>
3828 </DD>
3829 <DD><DL>
3830 <DT><B>Parameters:</B><DD><CODE>lockTimeout</CODE> - The timeout value, specified as an unsigned 32-bit number of
3831 microseconds, limiting the maximum timeout to roughly 71 minutes.
3832 <p>
3833 <p>
3834 <DT><B>Throws:</B>
3835 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified.
3836 <p>
3837 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
3838 </DD>
3839 </DL>
3840 <HR>
3841
3842 <A NAME="getLockTimeout()"><!-- --></A><H3>
3843 getLockTimeout</H3>
3844 <PRE>
3845 public long <B>getLockTimeout</B>()</PRE>
3846 <DL>
3847 <DD>Return the database environment lock timeout value, in microseconds;
3848 a timeout of 0 means no timeout is set.
3849 <p>
3850 This method may be called at any time during the life of the application.
3851 <p>
3852 <P>
3853 <DD><DL>
3854 </DL>
3855 </DD>
3856 <DD><DL>
3857
3858 <DT><B>Returns:</B><DD>The database environment lock timeout value, in microseconds;
3859 a timeout of 0 means no timeout is set.</DL>
3860 </DD>
3861 </DL>
3862 <HR>
3863
3864 <A NAME="setLogAutoRemove(boolean)"><!-- --></A><H3>
3865 setLogAutoRemove</H3>
3866 <PRE>
3867 public void <B>setLogAutoRemove</B>(boolean&nbsp;logAutoRemove)</PRE>
3868 <DL>
3869 <DD>Configure the system to automatically remove log files that are no
3870 longer needed.
3871 <p>
3872 Automatic log file removal is likely to make catastrophic recovery
3873 impossible.
3874 <p>
3875 Replication Manager applications operate in a group-aware manner for log file
3876 removal, and automatic log file removal simplifies the application.
3877 <p>
3878 Replication Base API applications will rarely want to configure automatic log
3879 file removal as it increases the likelihood a master will be unable to
3880 satisfy a client's request for a recent log record.
3881 <p>
3882 This method configures a database environment, including all threads
3883 of control accessing the database environment, not only the operations
3884 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
3885 <p>
3886 This method may be called at any time during the life of the application.
3887 <p>
3888 <P>
3889 <DD><DL>
3890 </DL>
3891 </DD>
3892 <DD><DL>
3893 <DT><B>Parameters:</B><DD><CODE>logAutoRemove</CODE> - If true, configure the system to automatically remove log files that
3894 are no longer needed.</DL>
3895 </DD>
3896 </DL>
3897 <HR>
3898
3899 <A NAME="getLogAutoRemove()"><!-- --></A><H3>
3900 getLogAutoRemove</H3>
3901 <PRE>
3902 public boolean <B>getLogAutoRemove</B>()</PRE>
3903 <DL>
3904 <DD>Return true if the system has been configured to to automatically remove log
3905 files that are no longer needed.
3906 <p>
3907 This method may be called at any time during the life of the application.
3908 <p>
3909 <P>
3910 <DD><DL>
3911 </DL>
3912 </DD>
3913 <DD><DL>
3914
3915 <DT><B>Returns:</B><DD>True if the system has been configured to to automatically remove log
3916 files that are no longer needed.</DL>
3917 </DD>
3918 </DL>
3919 <HR>
3920
3921 <A NAME="setLogInMemory(boolean)"><!-- --></A><H3>
3922 setLogInMemory</H3>
3923 <PRE>
3924 public void <B>setLogInMemory</B>(boolean&nbsp;logInMemory)</PRE>
3925 <DL>
3926 <DD>If set, maintain transaction logs in memory rather than on disk. This means
3927 that transactions exhibit the ACI (atomicity, consistency, and isolation)
3928 properties, but not D (durability); that is, database integrity will be
3929 maintained, but if the application or system fails, integrity will not
3930 persist. All database files must be verified and/or restored from a
3931 replication group master or archival backup after application or system
3932 failure.
3933 <p>
3934 When in-memory logs are configured and no more log buffer space is
3935 available, Berkeley DB methods will throw a <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db"><CODE>DatabaseException</CODE></A>.
3936 When choosing log buffer and file sizes for in-memory logs, applications
3937 should ensure the in-memory log buffer size is large enough that no
3938 transaction will ever span the entire buffer, and avoid a state where the
3939 in-memory buffer is full and no space can be freed because a transaction
3940 that started in the first log "file" is still active.
3941 <p>
3942 This method configures a database environment, including all threads
3943 of control accessing the database environment, not only the operations
3944 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
3945 <p>
3946 This method may not be called after the
3947 environment has been opened.
3948 If joining an existing database environment, any
3949 information specified to this method will be ignored.
3950 <p>
3951 <P>
3952 <DD><DL>
3953 </DL>
3954 </DD>
3955 <DD><DL>
3956 <DT><B>Parameters:</B><DD><CODE>logInMemory</CODE> - If true, maintain transaction logs in memory rather than on disk.</DL>
3957 </DD>
3958 </DL>
3959 <HR>
3960
3961 <A NAME="getLogInMemory()"><!-- --></A><H3>
3962 getLogInMemory</H3>
3963 <PRE>
3964 public boolean <B>getLogInMemory</B>()</PRE>
3965 <DL>
3966 <DD>Return true if the database environment is configured to maintain transaction logs
3967 in memory rather than on disk.
3968 <p>
3969 This method may be called at any time during the life of the application.
3970 <p>
3971 <P>
3972 <DD><DL>
3973 </DL>
3974 </DD>
3975 <DD><DL>
3976
3977 <DT><B>Returns:</B><DD>True if the database environment is configured to maintain transaction logs
3978 in memory rather than on disk.</DL>
3979 </DD>
3980 </DL>
3981 <HR>
3982
3983 <A NAME="setLogRecordHandler(com.sleepycat.db.LogRecordHandler)"><!-- --></A><H3>
3984 setLogRecordHandler</H3>
3985 <PRE>
3986 public void <B>setLogRecordHandler</B>(<A HREF="../../../com/sleepycat/db/LogRecordHandler.html" title="interface in com.sleepycat.db">LogRecordHandler</A>&nbsp;logRecordHandler)</PRE>
3987 <DL>
3988 <DD>Set a function to process application-specific log records.
3989 <p>
3990 This method configures only operations performed using a single a
3991 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle, not an entire database environment.
3992 <p>
3993 This method may not be called after the
3994 environment has been opened.
3995 If joining an existing database environment, the
3996 information specified to this method must be consistent with the
3997 existing environment or corruption can occur.
3998 <p>
3999 <P>
4000 <DD><DL>
4001 </DL>
4002 </DD>
4003 <DD><DL>
4004 <DT><B>Parameters:</B><DD><CODE>logRecordHandler</CODE> - The handler for application-specific log records.</DL>
4005 </DD>
4006 </DL>
4007 <HR>
4008
4009 <A NAME="getLogRecordHandler()"><!-- --></A><H3>
4010 getLogRecordHandler</H3>
4011 <PRE>
4012 public <A HREF="../../../com/sleepycat/db/LogRecordHandler.html" title="interface in com.sleepycat.db">LogRecordHandler</A> <B>getLogRecordHandler</B>()</PRE>
4013 <DL>
4014 <DD>Return the handler for application-specific log records.
4015 <p>
4016 This method may be called at any time during the life of the application.
4017 <p>
4018 <P>
4019 <DD><DL>
4020 </DL>
4021 </DD>
4022 <DD><DL>
4023
4024 <DT><B>Returns:</B><DD>The handler for application-specific log records.</DL>
4025 </DD>
4026 </DL>
4027 <HR>
4028
4029 <A NAME="setLogZero(boolean)"><!-- --></A><H3>
4030 setLogZero</H3>
4031 <PRE>
4032 public void <B>setLogZero</B>(boolean&nbsp;logZero)</PRE>
4033 <DL>
4034 <DD>If set, zero all pages of a log file when that log file is created. This
4035 has been shown to provide greater transaction throughput in some
4036 environments. The log file will be zeroed by the thread which needs to
4037 re-create the new log file. Other threads may not write to the log file
4038 while this is happening.
4039 <p>
4040 This method configures the database environment, including all threads of
4041 control accessing the database environment.
4042 <p>
4043 This method may not be called after the environment has been opened.
4044 <p>
4045 <P>
4046 <DD><DL>
4047 </DL>
4048 </DD>
4049 <DD><DL>
4050 <DT><B>Parameters:</B><DD><CODE>logZero</CODE> - If true, zero all pages of new log files upon their creation.</DL>
4051 </DD>
4052 </DL>
4053 <HR>
4054
4055 <A NAME="getLogZero()"><!-- --></A><H3>
4056 getLogZero</H3>
4057 <PRE>
4058 public boolean <B>getLogZero</B>()</PRE>
4059 <DL>
4060 <DD>Return true if the database environment is configured to zero all pages of
4061 new log files upon their creation.
4062 <p>
4063 This method may be called at any time during the life of the application.
4064 <p>
4065 <P>
4066 <DD><DL>
4067 </DL>
4068 </DD>
4069 <DD><DL>
4070
4071 <DT><B>Returns:</B><DD>True if the database environment is configured to pre-zero log pages.</DL>
4072 </DD>
4073 </DL>
4074 <HR>
4075
4076 <A NAME="getRegionMemoryInitialSize(com.sleepycat.db.RegionResourceType)"><!-- --></A><H3>
4077 getRegionMemoryInitialSize</H3>
4078 <PRE>
4079 public int <B>getRegionMemoryInitialSize</B>(<A HREF="../../../com/sleepycat/db/RegionResourceType.html" title="class in com.sleepycat.db">RegionResourceType</A>&nbsp;resource)</PRE>
4080 <DL>
4081 <DD>Return the inital memory configuration for a region resource.
4082 <p>
4083 <P>
4084 <DD><DL>
4085 </DL>
4086 </DD>
4087 <DD><DL>
4088 <DT><B>Parameters:</B><DD><CODE>resource</CODE> - The resource type to get initial sizing for.
4089 <p>
4090 <DT><B>Returns:</B><DD>The initial amount of memory allocated for the requested resource.</DL>
4091 </DD>
4092 </DL>
4093 <HR>
4094
4095 <A NAME="setRegionMemoryInitialSize(com.sleepycat.db.RegionResourceType, int)"><!-- --></A><H3>
4096 setRegionMemoryInitialSize</H3>
4097 <PRE>
4098 public void <B>setRegionMemoryInitialSize</B>(<A HREF="../../../com/sleepycat/db/RegionResourceType.html" title="class in com.sleepycat.db">RegionResourceType</A>&nbsp;resource,
4099 int&nbsp;count)</PRE>
4100 <DL>
4101 <DD>Assign an initial count for a particular resource within the shared region
4102 of Berkeley DB. The shared region is used to hold resources that are
4103 shared amongst processes in Berkeley DB.
4104 The default values are generally satisfactory.
4105 <p>
4106 <P>
4107 <DD><DL>
4108 </DL>
4109 </DD>
4110 <DD><DL>
4111 <DT><B>Parameters:</B><DD><CODE>resource</CODE> - The resource type to configure.<DD><CODE>count</CODE> - The initial number of objects of a particular type to allocate.</DL>
4112 </DD>
4113 </DL>
4114 <HR>
4115
4116 <A NAME="getRegionMemoryMax()"><!-- --></A><H3>
4117 getRegionMemoryMax</H3>
4118 <PRE>
4119 public long <B>getRegionMemoryMax</B>()</PRE>
4120 <DL>
4121 <DD>Return the maximum amount of memory that can be used by shared structures
4122 in the main environment region.
4123 <p>
4124 <P>
4125 <DD><DL>
4126 </DL>
4127 </DD>
4128 <DD><DL>
4129
4130 <DT><B>Returns:</B><DD>The maximum amount of memory that could be used by the main region.</DL>
4131 </DD>
4132 </DL>
4133 <HR>
4134
4135 <A NAME="setRegionMemoryMax(long)"><!-- --></A><H3>
4136 setRegionMemoryMax</H3>
4137 <PRE>
4138 public void <B>setRegionMemoryMax</B>(long&nbsp;regionMemoryMax)</PRE>
4139 <DL>
4140 <DD>This method sets the maximum amount of memory to be used by shared
4141 structures in the main environment region. These are the structures
4142 other than mutexes and the page cache (memory pool). If the region files
4143 are in memory mapped files, or if DB_PRIVATE is specified, the memory
4144 specified by this method is not allocated completely at startup. As
4145 memory is needed, the shared region will be extended or, in the case of
4146 DB_PRIVATE, more memory will be allocated using the system malloc call.
4147 For memory mapped files, a mapped region will be allocated to this size
4148 but the underlying file will only be allocated sufficient memory to hold
4149 the initial allocation of shared memory structures as set by
4150 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRegionMemoryInitialSize(com.sleepycat.db.RegionResourceType, int)"><CODE>EnvironmentConfig.setRegionMemoryInitialSize</CODE></A>.
4151 <p>
4152 If no memory maximum is specified then it is calculated from defaults,
4153 initial settings or (deprecated) maximum settings of the various shared
4154 structures. In the case of environments created with DB_PRIVATE, no
4155 maximum need be set and the shared structure allocation will grow as
4156 needed until the process memory limit is exhausted.
4157 <p>
4158 <P>
4159 <DD><DL>
4160 </DL>
4161 </DD>
4162 <DD><DL>
4163 <DT><B>Parameters:</B><DD><CODE>regionMemoryMax</CODE> - The total amount of memory that can be used by the main region.</DL>
4164 </DD>
4165 </DL>
4166 <HR>
4167
4168 <A NAME="setReplicationInMemory(boolean)"><!-- --></A><H3>
4169 setReplicationInMemory</H3>
4170 <PRE>
4171 public void <B>setReplicationInMemory</B>(boolean&nbsp;replicationInMemory)</PRE>
4172 <DL>
4173 <DD>If set, store internal replication information in memory only. By default,
4174 replication creates files in the environment home directory to preserve
4175 some internal information. If this configuration flag is turned on,
4176 replication only stores this internal information in-memory and cannot
4177 keep persistent state across a site crash or reboot.
4178 <p>
4179 This configuration flag can only be turned on before the environment is
4180 opened. Its value cannot be changed while the environment is open.
4181 <p>
4182 <P>
4183 <DD><DL>
4184 </DL>
4185 </DD>
4186 <DD><DL>
4187 <DT><B>Parameters:</B><DD><CODE>replicationInMemory</CODE> - If true, store internal replication information in memory only.</DL>
4188 </DD>
4189 </DL>
4190 <HR>
4191
4192 <A NAME="getReplicationInMemory()"><!-- --></A><H3>
4193 getReplicationInMemory</H3>
4194 <PRE>
4195 public boolean <B>getReplicationInMemory</B>()</PRE>
4196 <DL>
4197 <DD>Return true if internal replication information is stored in memory only.
4198 <p>
4199 This method may be called at any time during the life of the application.
4200 <p>
4201 <P>
4202 <DD><DL>
4203 </DL>
4204 </DD>
4205 <DD><DL>
4206
4207 <DT><B>Returns:</B><DD>True if internal replication information is stored in memory only.</DL>
4208 </DD>
4209 </DL>
4210 <HR>
4211
4212 <A NAME="setReplicationManagerAckPolicy(com.sleepycat.db.ReplicationManagerAckPolicy)"><!-- --></A><H3>
4213 setReplicationManagerAckPolicy</H3>
4214 <PRE>
4215 public void <B>setReplicationManagerAckPolicy</B>(<A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A>&nbsp;repmgrAckPolicy)</PRE>
4216 <DL>
4217 <DD>Set the network Ack policy used by the replication manager.
4218 <p>
4219 <P>
4220 <DD><DL>
4221 </DL>
4222 </DD>
4223 <DD><DL>
4224 <DT><B>Parameters:</B><DD><CODE>repmgrAckPolicy</CODE> - The network Ack policy used by the replication manager.</DL>
4225 </DD>
4226 </DL>
4227 <HR>
4228
4229 <A NAME="getReplicationManagerAckPolicy()"><!-- --></A><H3>
4230 getReplicationManagerAckPolicy</H3>
4231 <PRE>
4232 public <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A> <B>getReplicationManagerAckPolicy</B>()</PRE>
4233 <DL>
4234 <DD>Get the network Ack policy used by the replication manager.
4235 <p>
4236 <P>
4237 <DD><DL>
4238 </DL>
4239 </DD>
4240 <DD><DL>
4241
4242 <DT><B>Returns:</B><DD>The network Ack policy used by the replication manager.</DL>
4243 </DD>
4244 </DL>
4245 <HR>
4246
4247 <A NAME="addReplicationManagerSite(com.sleepycat.db.ReplicationManagerSiteConfig)"><!-- --></A><H3>
4248 addReplicationManagerSite</H3>
4249 <PRE>
4250 public void <B>addReplicationManagerSite</B>(<A HREF="../../../com/sleepycat/db/ReplicationManagerSiteConfig.html" title="class in com.sleepycat.db">ReplicationManagerSiteConfig</A>&nbsp;repmgrSiteConfig)</PRE>
4251 <DL>
4252 <DD>Configure a site in a replication group. This could be called more than once,
4253 to set local site and remote sites.
4254 <p>
4255 <P>
4256 <DD><DL>
4257 </DL>
4258 </DD>
4259 <DD><DL>
4260 <DT><B>Parameters:</B><DD><CODE>repmgrSiteConfig</CODE> - The configuration of a site site</DL>
4261 </DD>
4262 </DL>
4263 <HR>
4264
4265 <A NAME="setLockPartitions(int)"><!-- --></A><H3>
4266 setLockPartitions</H3>
4267 <PRE>
4268 public void <B>setLockPartitions</B>(int&nbsp;partitions)</PRE>
4269 <DL>
4270 <DD>Set the number of lock table partitions in the Berkeley DB environment.
4271 <P>
4272 <DD><DL>
4273 </DL>
4274 </DD>
4275 <DD><DL>
4276 </DL>
4277 </DD>
4278 </DL>
4279 <HR>
4280
4281 <A NAME="getLockPartitions()"><!-- --></A><H3>
4282 getLockPartitions</H3>
4283 <PRE>
4284 public int <B>getLockPartitions</B>()</PRE>
4285 <DL>
4286 <DD>Returns the number of lock table partitions in the Berkeley DB environment.
4287 <P>
4288 <DD><DL>
4289 </DL>
4290 </DD>
4291 <DD><DL>
4292 </DL>
4293 </DD>
4294 </DL>
4295 <HR>
4296
4297 <A NAME="setMaxLocks(int)"><!-- --></A><H3>
4298 setMaxLocks</H3>
4299 <PRE>
4300 public void <B>setMaxLocks</B>(int&nbsp;maxLocks)</PRE>
4301 <DL>
4302 <DD>Set the maximum number of locks supported by the database
4303 environment.
4304 <p>
4305 This value is used during environment creation to estimate how much
4306 space to allocate for various lock-table data structures. The
4307 default value is 1000 locks.
4308 <p>
4309 The database environment's maximum number of locks may also be set using the environment's
4310 DB_CONFIG file. The syntax of the entry in that file is a single line
4311 with the string "set_lk_max_locks", one or more whitespace characters, and the number of locks.
4312 Because the DB_CONFIG file is read when the database environment is
4313 opened, it will silently overrule configuration done before that time.
4314 <p>
4315 This method configures a database environment, including all threads
4316 of control accessing the database environment, not only the operations
4317 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
4318 <p>
4319 This method may not be called after the
4320 environment has been opened.
4321 If joining an existing database environment, any
4322 information specified to this method will be ignored.
4323 <p>
4324 <P>
4325 <DD><DL>
4326 </DL>
4327 </DD>
4328 <DD><DL>
4329 <DT><B>Parameters:</B><DD><CODE>maxLocks</CODE> - The maximum number of locks supported by the database environment.</DL>
4330 </DD>
4331 </DL>
4332 <HR>
4333
4334 <A NAME="getMaxLocks()"><!-- --></A><H3>
4335 getMaxLocks</H3>
4336 <PRE>
4337 public int <B>getMaxLocks</B>()</PRE>
4338 <DL>
4339 <DD>Return the maximum number of locks.
4340 <p>
4341 This method may be called at any time during the life of the application.
4342 <p>
4343 <P>
4344 <DD><DL>
4345 </DL>
4346 </DD>
4347 <DD><DL>
4348
4349 <DT><B>Returns:</B><DD>The maximum number of locks.</DL>
4350 </DD>
4351 </DL>
4352 <HR>
4353
4354 <A NAME="setLockTableSize(int)"><!-- --></A><H3>
4355 setLockTableSize</H3>
4356 <PRE>
4357 public void <B>setLockTableSize</B>(int&nbsp;lockTableSize)</PRE>
4358 <DL>
4359 <DD>Set the size for the hash table that contains references to locks. It's
4360 important to make this large enough so that there is not increased
4361 contention in the system as it grows.
4362 <p>
4363 This method may not be called after the environment has been opened.
4364 If joining an existing database environment, any information specified
4365 to this method will be ignored.
4366 <p>
4367 <P>
4368 <DD><DL>
4369 </DL>
4370 </DD>
4371 <DD><DL>
4372 <DT><B>Parameters:</B><DD><CODE>lockTableSize</CODE> - The size of the hash table to allocate.</DL>
4373 </DD>
4374 </DL>
4375 <HR>
4376
4377 <A NAME="getLockTableSize()"><!-- --></A><H3>
4378 getLockTableSize</H3>
4379 <PRE>
4380 public int <B>getLockTableSize</B>()</PRE>
4381 <DL>
4382 <DD>Return the lock hash table size.
4383 <p>
4384 This method may be called at any time during the life of the application.
4385 <p>
4386 <P>
4387 <DD><DL>
4388 </DL>
4389 </DD>
4390 <DD><DL>
4391
4392 <DT><B>Returns:</B><DD>The lock hash table size.</DL>
4393 </DD>
4394 </DL>
4395 <HR>
4396
4397 <A NAME="setMaxLockers(int)"><!-- --></A><H3>
4398 setMaxLockers</H3>
4399 <PRE>
4400 public void <B>setMaxLockers</B>(int&nbsp;maxLockers)</PRE>
4401 <DL>
4402 <DD>Set the maximum number of locking entities supported by the database
4403 environment.
4404 <p>
4405 This value is used during environment creation to estimate how much
4406 space to allocate for various lock-table data structures. The default
4407 value is 1000 lockers.
4408 <p>
4409 The database environment's maximum number of lockers may also be set using the environment's
4410 DB_CONFIG file. The syntax of the entry in that file is a single line
4411 with the string "set_lk_max_lockers", one or more whitespace characters, and the number of lockers.
4412 Because the DB_CONFIG file is read when the database environment is
4413 opened, it will silently overrule configuration done before that time.
4414 <p>
4415 This method configures a database environment, including all threads
4416 of control accessing the database environment, not only the operations
4417 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
4418 <p>
4419 This method may not be called after the
4420 environment has been opened.
4421 If joining an existing database environment, any
4422 information specified to this method will be ignored.
4423 <p>
4424 <P>
4425 <DD><DL>
4426 </DL>
4427 </DD>
4428 <DD><DL>
4429 <DT><B>Parameters:</B><DD><CODE>maxLockers</CODE> - The maximum number simultaneous locking entities supported by the
4430 database environment.</DL>
4431 </DD>
4432 </DL>
4433 <HR>
4434
4435 <A NAME="getMaxLockers()"><!-- --></A><H3>
4436 getMaxLockers</H3>
4437 <PRE>
4438 public int <B>getMaxLockers</B>()</PRE>
4439 <DL>
4440 <DD>Return the maximum number of lockers.
4441 <p>
4442 This method may be called at any time during the life of the application.
4443 <p>
4444 <P>
4445 <DD><DL>
4446 </DL>
4447 </DD>
4448 <DD><DL>
4449
4450 <DT><B>Returns:</B><DD>The maximum number of lockers.</DL>
4451 </DD>
4452 </DL>
4453 <HR>
4454
4455 <A NAME="setMaxLockObjects(int)"><!-- --></A><H3>
4456 setMaxLockObjects</H3>
4457 <PRE>
4458 public void <B>setMaxLockObjects</B>(int&nbsp;maxLockObjects)</PRE>
4459 <DL>
4460 <DD>Set the maximum number of locked objects supported by the database
4461 environment.
4462 <p>
4463 This value is used during environment creation to estimate how much
4464 space to allocate for various lock-table data structures. The default
4465 value is 1000 objects.
4466 <p>
4467 The database environment's maximum number of objects may also be set using the environment's
4468 DB_CONFIG file. The syntax of the entry in that file is a single line
4469 with the string "set_lk_max_objects", one or more whitespace characters, and the number of objects.
4470 Because the DB_CONFIG file is read when the database environment is
4471 opened, it will silently overrule configuration done before that time.
4472 <p>
4473 This method configures a database environment, including all threads
4474 of control accessing the database environment, not only the operations
4475 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
4476 <p>
4477 This method may not be called after the
4478 environment has been opened.
4479 If joining an existing database environment, any
4480 information specified to this method will be ignored.
4481 <p>
4482 <P>
4483 <DD><DL>
4484 </DL>
4485 </DD>
4486 <DD><DL>
4487 <DT><B>Parameters:</B><DD><CODE>maxLockObjects</CODE> - The maximum number of locked objects supported by the database
4488 environment.</DL>
4489 </DD>
4490 </DL>
4491 <HR>
4492
4493 <A NAME="getMaxLockObjects()"><!-- --></A><H3>
4494 getMaxLockObjects</H3>
4495 <PRE>
4496 public int <B>getMaxLockObjects</B>()</PRE>
4497 <DL>
4498 <DD>Return the maximum number of locked objects.
4499 <p>
4500 This method may be called at any time during the life of the application.
4501 <p>
4502 <P>
4503 <DD><DL>
4504 </DL>
4505 </DD>
4506 <DD><DL>
4507
4508 <DT><B>Returns:</B><DD>The maximum number of locked objects.</DL>
4509 </DD>
4510 </DL>
4511 <HR>
4512
4513 <A NAME="setMaxLogFileSize(int)"><!-- --></A><H3>
4514 setMaxLogFileSize</H3>
4515 <PRE>
4516 public void <B>setMaxLogFileSize</B>(int&nbsp;maxLogFileSize)</PRE>
4517 <DL>
4518 <DD>Set the maximum size of a single file in the log, in bytes.
4519 <p>
4520 By default, or if the maxLogFileSize parameter is set to 0, a size
4521 of 10MB is used. If no size is specified by the application, the
4522 size last specified for the database region will be used, or if no
4523 database region previously existed, the default will be used.
4524 Because <A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db"><CODE>LogSequenceNumber</CODE></A> file offsets are unsigned four-byte
4525 values, the set value may not be larger than the maximum unsigned
4526 four-byte value.
4527 <p>
4528 The database environment's log file size may also be set using the environment's
4529 DB_CONFIG file. The syntax of the entry in that file is a single line
4530 with the string "set_lg_max", one or more whitespace characters, and the size in bytes.
4531 Because the DB_CONFIG file is read when the database environment is
4532 opened, it will silently overrule configuration done before that time.
4533 <p>
4534 This method configures a database environment, including all threads
4535 of control accessing the database environment, not only the operations
4536 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
4537 <p>
4538 This method may be called at any time during the life of the application.
4539 <p>
4540 <P>
4541 <DD><DL>
4542 </DL>
4543 </DD>
4544 <DD><DL>
4545 <DT><B>Parameters:</B><DD><CODE>maxLogFileSize</CODE> - The maximum size of a single file in the log, in bytes.</DL>
4546 </DD>
4547 </DL>
4548 <HR>
4549
4550 <A NAME="getMaxLogFileSize()"><!-- --></A><H3>
4551 getMaxLogFileSize</H3>
4552 <PRE>
4553 public int <B>getMaxLogFileSize</B>()</PRE>
4554 <DL>
4555 <DD>Return the maximum size of a single file in the log, in bytes.
4556 <p>
4557 This method may be called at any time during the life of the application.
4558 <p>
4559 <P>
4560 <DD><DL>
4561 </DL>
4562 </DD>
4563 <DD><DL>
4564
4565 <DT><B>Returns:</B><DD>The maximum size of a single file in the log, in bytes.</DL>
4566 </DD>
4567 </DL>
4568 <HR>
4569
4570 <A NAME="setLogBufferSize(int)"><!-- --></A><H3>
4571 setLogBufferSize</H3>
4572 <PRE>
4573 public void <B>setLogBufferSize</B>(int&nbsp;logBufferSize)</PRE>
4574 <DL>
4575 <DD>Set the size of the in-memory log buffer, in bytes.
4576 <p>
4577 Log information is stored in-memory until the storage space fills up
4578 or transaction commit forces the information to be flushed to stable
4579 storage. In the presence of long-running transactions or transactions
4580 producing large amounts of data, larger buffer sizes can increase
4581 throughput.
4582 <p>
4583 By default, or if the value is set to 0, a size of 32K is used.
4584 <p>
4585 The database environment's log buffer size may also be set using the environment's
4586 DB_CONFIG file. The syntax of the entry in that file is a single line
4587 with the string "set_lg_bsize", one or more whitespace characters, and the size in bytes.
4588 Because the DB_CONFIG file is read when the database environment is
4589 opened, it will silently overrule configuration done before that time.
4590 <p>
4591 This method configures a database environment, including all threads
4592 of control accessing the database environment, not only the operations
4593 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
4594 <p>
4595 This method may not be called after the
4596 environment has been opened.
4597 If joining an existing database environment, any
4598 information specified to this method will be ignored.
4599 <p>
4600 <P>
4601 <DD><DL>
4602 </DL>
4603 </DD>
4604 <DD><DL>
4605 <DT><B>Parameters:</B><DD><CODE>logBufferSize</CODE> - The size of the in-memory log buffer, in bytes.</DL>
4606 </DD>
4607 </DL>
4608 <HR>
4609
4610 <A NAME="getLogBufferSize()"><!-- --></A><H3>
4611 getLogBufferSize</H3>
4612 <PRE>
4613 public int <B>getLogBufferSize</B>()</PRE>
4614 <DL>
4615 <DD>Return the size of the in-memory log buffer, in bytes.
4616 <p>
4617 This method may be called at any time during the life of the application.
4618 <p>
4619 <P>
4620 <DD><DL>
4621 </DL>
4622 </DD>
4623 <DD><DL>
4624
4625 <DT><B>Returns:</B><DD>The size of the in-memory log buffer, in bytes.</DL>
4626 </DD>
4627 </DL>
4628 <HR>
4629
4630 <A NAME="setLogDirectory(java.io.File)"><!-- --></A><H3>
4631 setLogDirectory</H3>
4632 <PRE>
4633 public void <B>setLogDirectory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;logDirectory)</PRE>
4634 <DL>
4635 <DD>Set the path of a directory to be used as the location of logging files.
4636 <p>
4637 Log files created by the Log Manager subsystem will be created in this
4638 directory. If no logging directory is specified, log files are
4639 created in the environment home directory.
4640 <p>
4641 For the greatest degree of recoverability from system or application
4642 failure, database files and log files should be located on separate
4643 physical devices.
4644 <p>
4645 The database environment's logging directory may also be set using the environment's
4646 DB_CONFIG file. The syntax of the entry in that file is a single line
4647 with the string "set_lg_dir", one or more whitespace characters, and the directory name.
4648 Because the DB_CONFIG file is read when the database environment is
4649 opened, it will silently overrule configuration done before that time.
4650 <p>
4651 This method configures only operations performed using a single a
4652 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle, not an entire database environment.
4653 <p>
4654 This method may not be called after the
4655 environment has been opened.
4656 If joining an existing database environment, the
4657 information specified to this method must be consistent with the
4658 existing environment or corruption can occur.
4659 <p>
4660 <P>
4661 <DD><DL>
4662 </DL>
4663 </DD>
4664 <DD><DL>
4665 <DT><B>Parameters:</B><DD><CODE>logDirectory</CODE> - The directory used to store the logging files.
4666 On Windows platforms, this argument will be interpreted as a UTF-8
4667 string, which is equivalent to ASCII for Latin characters.</DL>
4668 </DD>
4669 </DL>
4670 <HR>
4671
4672 <A NAME="getLogDirectory()"><!-- --></A><H3>
4673 getLogDirectory</H3>
4674 <PRE>
4675 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getLogDirectory</B>()</PRE>
4676 <DL>
4677 <DD>Return the path of a directory to be used as the location of logging files.
4678 <p>
4679 This method may be called at any time during the life of the application.
4680 <p>
4681 <P>
4682 <DD><DL>
4683 </DL>
4684 </DD>
4685 <DD><DL>
4686
4687 <DT><B>Returns:</B><DD>The path of a directory to be used as the location of logging files.</DL>
4688 </DD>
4689 </DL>
4690 <HR>
4691
4692 <A NAME="setLogFileMode(int)"><!-- --></A><H3>
4693 setLogFileMode</H3>
4694 <PRE>
4695 public void <B>setLogFileMode</B>(int&nbsp;logFileMode)</PRE>
4696 <DL>
4697 <DD>Set the absolute file mode for created log files. This method is
4698 <b>only</b> useful for the rare Berkeley DB application that does not
4699 control its umask value.
4700 <p>
4701 Normally, if Berkeley DB applications set their umask appropriately, all
4702 processes in the application suite will have read permission on the log
4703 files created by any process in the application suite. However, if the
4704 Berkeley DB application is a library, a process using the library might set
4705 its umask to a value preventing other processes in the application suite
4706 from reading the log files it creates. In this rare case, this method
4707 can be used to set the mode of created log files to an absolute value.
4708 <p>
4709 <P>
4710 <DD><DL>
4711 </DL>
4712 </DD>
4713 <DD><DL>
4714 <DT><B>Parameters:</B><DD><CODE>logFileMode</CODE> - The absolute mode of the created log file.</DL>
4715 </DD>
4716 </DL>
4717 <HR>
4718
4719 <A NAME="getLogFileMode()"><!-- --></A><H3>
4720 getLogFileMode</H3>
4721 <PRE>
4722 public int <B>getLogFileMode</B>()</PRE>
4723 <DL>
4724 <DD>Return the absolute file mode for created log files.
4725 <p>
4726 This method may be called at any time during the life of the application.
4727 <p>
4728 <P>
4729 <DD><DL>
4730 </DL>
4731 </DD>
4732 <DD><DL>
4733
4734 <DT><B>Returns:</B><DD>The absolute file mode for created log files.</DL>
4735 </DD>
4736 </DL>
4737 <HR>
4738
4739 <A NAME="setLogRegionSize(int)"><!-- --></A><H3>
4740 setLogRegionSize</H3>
4741 <PRE>
4742 public void <B>setLogRegionSize</B>(int&nbsp;logRegionSize)</PRE>
4743 <DL>
4744 <DD>Set the size of the underlying logging area of the database
4745 environment, in bytes.
4746 <p>
4747 By default, or if the value is set to 0, the default size is 60KB.
4748 The log region is used to store filenames, and so may need to be
4749 increased in size if a large number of files will be opened and
4750 registered with the specified database environment's log manager.
4751 <p>
4752 The database environment's log region size may also be set using the environment's
4753 DB_CONFIG file. The syntax of the entry in that file is a single line
4754 with the string "set_lg_regionmax", one or more whitespace characters, and the size in bytes.
4755 Because the DB_CONFIG file is read when the database environment is
4756 opened, it will silently overrule configuration done before that time.
4757 <p>
4758 This method configures a database environment, including all threads
4759 of control accessing the database environment, not only the operations
4760 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
4761 <p>
4762 This method may not be called after the
4763 environment has been opened.
4764 If joining an existing database environment, any
4765 information specified to this method will be ignored.
4766 <p>
4767 <P>
4768 <DD><DL>
4769 </DL>
4770 </DD>
4771 <DD><DL>
4772 <DT><B>Parameters:</B><DD><CODE>logRegionSize</CODE> - The size of the logging area in the database environment, in bytes.</DL>
4773 </DD>
4774 </DL>
4775 <HR>
4776
4777 <A NAME="getLogRegionSize()"><!-- --></A><H3>
4778 getLogRegionSize</H3>
4779 <PRE>
4780 public int <B>getLogRegionSize</B>()</PRE>
4781 <DL>
4782 <DD>Return the size of the underlying logging subsystem region.
4783 <p>
4784 This method may be called at any time during the life of the application.
4785 <p>
4786 <P>
4787 <DD><DL>
4788 </DL>
4789 </DD>
4790 <DD><DL>
4791
4792 <DT><B>Returns:</B><DD>The size of the underlying logging subsystem region.</DL>
4793 </DD>
4794 </DL>
4795 <HR>
4796
4797 <A NAME="setMaxOpenFiles(int)"><!-- --></A><H3>
4798 setMaxOpenFiles</H3>
4799 <PRE>
4800 public void <B>setMaxOpenFiles</B>(int&nbsp;maxOpenFiles)</PRE>
4801 <DL>
4802 <DD>Limit the number of file descriptors the library will open concurrently
4803 when flushing dirty pages from the cache.
4804 <p>
4805 <P>
4806 <DD><DL>
4807 </DL>
4808 </DD>
4809 <DD><DL>
4810 <DT><B>Parameters:</B><DD><CODE>maxOpenFiles</CODE> - The maximum number of file descriptors that may be concurrently opened
4811 by the library when flushing dirty pages from the cache.</DL>
4812 </DD>
4813 </DL>
4814 <HR>
4815
4816 <A NAME="getMaxOpenFiles()"><!-- --></A><H3>
4817 getMaxOpenFiles</H3>
4818 <PRE>
4819 public int <B>getMaxOpenFiles</B>()</PRE>
4820 <DL>
4821 <DD>Return the maximum number of file descriptors that will be opened concurrently..
4822 <p>
4823 This method may be called at any time during the life of the application.
4824 <p>
4825 <P>
4826 <DD><DL>
4827 </DL>
4828 </DD>
4829 <DD><DL>
4830
4831 <DT><B>Returns:</B><DD>The maximum number of file descriptors that will be opened concurrently..</DL>
4832 </DD>
4833 </DL>
4834 <HR>
4835
4836 <A NAME="setMaxWrite(int, long)"><!-- --></A><H3>
4837 setMaxWrite</H3>
4838 <PRE>
4839 public void <B>setMaxWrite</B>(int&nbsp;maxWrite,
4840 long&nbsp;maxWriteSleep)</PRE>
4841 <DL>
4842 <DD>Limit the number of sequential write operations scheduled by the
4843 library when flushing dirty pages from the cache.
4844 <p>
4845 <P>
4846 <DD><DL>
4847 </DL>
4848 </DD>
4849 <DD><DL>
4850 <DT><B>Parameters:</B><DD><CODE>maxWrite</CODE> - The maximum number of sequential write operations scheduled by the
4851 library when flushing dirty pages from the cache.<DD><CODE>maxWriteSleep</CODE> - The number of microseconds the thread of control should pause before
4852 scheduling further write operations.</DL>
4853 </DD>
4854 </DL>
4855 <HR>
4856
4857 <A NAME="getMaxWrite()"><!-- --></A><H3>
4858 getMaxWrite</H3>
4859 <PRE>
4860 public int <B>getMaxWrite</B>()</PRE>
4861 <DL>
4862 <DD>Return the maximum number of sequential write operations.
4863 <p>
4864 This method may be called at any time during the life of the application.
4865 <p>
4866 <P>
4867 <DD><DL>
4868 </DL>
4869 </DD>
4870 <DD><DL>
4871
4872 <DT><B>Returns:</B><DD>The maximum number of sequential write operations.</DL>
4873 </DD>
4874 </DL>
4875 <HR>
4876
4877 <A NAME="getMaxWriteSleep()"><!-- --></A><H3>
4878 getMaxWriteSleep</H3>
4879 <PRE>
4880 public long <B>getMaxWriteSleep</B>()</PRE>
4881 <DL>
4882 <DD>Return the microseconds to pause before scheduling further write operations.
4883 <p>
4884 This method may be called at any time during the life of the application.
4885 <p>
4886 <P>
4887 <DD><DL>
4888 </DL>
4889 </DD>
4890 <DD><DL>
4891
4892 <DT><B>Returns:</B><DD>The microseconds to pause before scheduling further write operations.</DL>
4893 </DD>
4894 </DL>
4895 <HR>
4896
4897 <A NAME="setMessageHandler(com.sleepycat.db.MessageHandler)"><!-- --></A><H3>
4898 setMessageHandler</H3>
4899 <PRE>
4900 public void <B>setMessageHandler</B>(<A HREF="../../../com/sleepycat/db/MessageHandler.html" title="interface in com.sleepycat.db">MessageHandler</A>&nbsp;messageHandler)</PRE>
4901 <DL>
4902 <DD>Set a function to be called with an informational message.
4903 <p>
4904 There are interfaces in the Berkeley DB library which either directly
4905 output informational messages or statistical information, or configure
4906 the library to output such messages when performing other operations,
4907 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerboseDeadlock(boolean)"><CODE>EnvironmentConfig.setVerboseDeadlock</CODE></A> for example.
4908 <p>
4909 The <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageHandler(com.sleepycat.db.MessageHandler)"><CODE>EnvironmentConfig.setMessageHandler</CODE></A> and
4910 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMessageHandler(com.sleepycat.db.MessageHandler)"><CODE>DatabaseConfig.setMessageHandler</CODE></A> methods are used to display
4911 these messages for the application.
4912 <p>
4913 Setting messageHandler to null unconfigures the interface.
4914 <p>
4915 Alternatively, you can use <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageStream(java.io.OutputStream)"><CODE>EnvironmentConfig.setMessageStream</CODE></A>
4916 and <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMessageStream(java.io.OutputStream)"><CODE>DatabaseConfig.setMessageStream</CODE></A> to send the additional
4917 information directly to an output streams. You should not mix these
4918 approaches.
4919 <p>
4920 This method may be called at any time during the life of the application.
4921 <p>
4922 <P>
4923 <DD><DL>
4924 </DL>
4925 </DD>
4926 <DD><DL>
4927 <DT><B>Parameters:</B><DD><CODE>messageHandler</CODE> - The application-specified function for informational messages.</DL>
4928 </DD>
4929 </DL>
4930 <HR>
4931
4932 <A NAME="getMessageHandler()"><!-- --></A><H3>
4933 getMessageHandler</H3>
4934 <PRE>
4935 public <A HREF="../../../com/sleepycat/db/MessageHandler.html" title="interface in com.sleepycat.db">MessageHandler</A> <B>getMessageHandler</B>()</PRE>
4936 <DL>
4937 <DD>Return the function to be called with an informational message.
4938 <p>
4939 This method may be called at any time during the life of the application.
4940 <p>
4941 <P>
4942 <DD><DL>
4943 </DL>
4944 </DD>
4945 <DD><DL>
4946
4947 <DT><B>Returns:</B><DD>The function to be called with an informational message.</DL>
4948 </DD>
4949 </DL>
4950 <HR>
4951
4952 <A NAME="setMessageStream(java.io.OutputStream)"><!-- --></A><H3>
4953 setMessageStream</H3>
4954 <PRE>
4955 public void <B>setMessageStream</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;messageStream)</PRE>
4956 <DL>
4957 <DD>Set an OutputStream for displaying informational messages.
4958 <p>
4959 There are interfaces in the Berkeley DB library which either directly
4960 output informational messages or statistical information, or configure
4961 the library to output such messages when performing other operations,
4962 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerboseDeadlock(boolean)"><CODE>EnvironmentConfig.setVerboseDeadlock</CODE></A> for example.
4963 <p>
4964 The <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageStream(java.io.OutputStream)"><CODE>EnvironmentConfig.setMessageStream</CODE></A> and
4965 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMessageStream(java.io.OutputStream)"><CODE>DatabaseConfig.setMessageStream</CODE></A> methods are used to display
4966 these messages for the application. In this case, the message will
4967 include a trailing newline character.
4968 <p>
4969 Setting messageStream to null unconfigures the interface.
4970 <p>
4971 Alternatively, you can use <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageHandler(com.sleepycat.db.MessageHandler)"><CODE>EnvironmentConfig.setMessageHandler</CODE></A>
4972 and <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMessageHandler(com.sleepycat.db.MessageHandler)"><CODE>DatabaseConfig.setMessageHandler</CODE></A> to capture the additional
4973 information in a way that does not use output streams. You should not
4974 mix these approaches.
4975 <p>
4976 This method may be called at any time during the life of the application.
4977 <p>
4978 <P>
4979 <DD><DL>
4980 </DL>
4981 </DD>
4982 <DD><DL>
4983 <DT><B>Parameters:</B><DD><CODE>messageStream</CODE> - The application-specified OutputStream for informational messages.</DL>
4984 </DD>
4985 </DL>
4986 <HR>
4987
4988 <A NAME="getMessageStream()"><!-- --></A><H3>
4989 getMessageStream</H3>
4990 <PRE>
4991 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> <B>getMessageStream</B>()</PRE>
4992 <DL>
4993 <DD>Return the OutputStream for displaying informational messages.
4994 <p>
4995 This method may be called at any time during the life of the application.
4996 <p>
4997 <P>
4998 <DD><DL>
4999 </DL>
5000 </DD>
5001 <DD><DL>
5002
5003 <DT><B>Returns:</B><DD>The an OutputStream for displaying informational messages.</DL>
5004 </DD>
5005 </DL>
5006 <HR>
5007
5008 <A NAME="setMetadataDir(java.io.File)"><!-- --></A><H3>
5009 setMetadataDir</H3>
5010 <PRE>
5011 public void <B>setMetadataDir</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;dir)</PRE>
5012 <DL>
5013 <DD>Set the path of a directory to be used as the location to store the
5014 persistent metadata files.
5015 <P>
5016 <DD><DL>
5017 </DL>
5018 </DD>
5019 <DD><DL>
5020 <DT><B>Parameters:</B><DD><CODE>dir</CODE> - The path of metadata directory.</DL>
5021 </DD>
5022 </DL>
5023 <HR>
5024
5025 <A NAME="getMetadataDir()"><!-- --></A><H3>
5026 getMetadataDir</H3>
5027 <PRE>
5028 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getMetadataDir</B>()</PRE>
5029 <DL>
5030 <DD>Return the path of a directory to be used as the location to store the
5031 persistent metadata.
5032 <P>
5033 <DD><DL>
5034 </DL>
5035 </DD>
5036 <DD><DL>
5037
5038 <DT><B>Returns:</B><DD>The the path of metadata directory.</DL>
5039 </DD>
5040 </DL>
5041 <HR>
5042
5043 <A NAME="setMMapSize(long)"><!-- --></A><H3>
5044 setMMapSize</H3>
5045 <PRE>
5046 public void <B>setMMapSize</B>(long&nbsp;mmapSize)</PRE>
5047 <DL>
5048 <DD>Set the maximum file size, in bytes, for a file to be mapped into
5049 the process address space.
5050 <p>
5051 If no value is specified, it defaults to 10MB.
5052 <p>
5053 Files that are opened read-only in the pool (and that satisfy a few
5054 other criteria) are, by default, mapped into the process address space
5055 instead of being copied into the local cache. This can result in
5056 better-than-usual performance because available virtual memory is
5057 normally much larger than the local cache, and page faults are faster
5058 than page copying on many systems. However, it can cause resource
5059 starvation in the presence of limited virtual memory, and it can result
5060 in immense process sizes in the presence of large databases.
5061 <p>
5062 <P>
5063 <DD><DL>
5064 </DL>
5065 </DD>
5066 <DD><DL>
5067 <DT><B>Parameters:</B><DD><CODE>mmapSize</CODE> - The maximum file size, in bytes, for a file to be mapped into the
5068 process address space.
5069 <p>
5070 This method configures only operations performed using a single a
5071 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle, not an entire database environment.
5072 <p>
5073 This method may be called at any time during the life of the application.</DL>
5074 </DD>
5075 </DL>
5076 <HR>
5077
5078 <A NAME="getMMapSize()"><!-- --></A><H3>
5079 getMMapSize</H3>
5080 <PRE>
5081 public long <B>getMMapSize</B>()</PRE>
5082 <DL>
5083 <DD>Return the maximum file size, in bytes, for a file to be mapped into
5084 the process address space.
5085 <p>
5086 <P>
5087 <DD><DL>
5088 </DL>
5089 </DD>
5090 <DD><DL>
5091
5092 <DT><B>Returns:</B><DD>The maximum file size, in bytes, for a file to be mapped into the
5093 process address space.</DL>
5094 </DD>
5095 </DL>
5096 <HR>
5097
5098 <A NAME="setCachePageSize(int)"><!-- --></A><H3>
5099 setCachePageSize</H3>
5100 <PRE>
5101 public void <B>setCachePageSize</B>(int&nbsp;mpPageSize)</PRE>
5102 <DL>
5103 <DD>Sets the page size used to allocate the hash table and the number of mutexes
5104 expected to be needed by the buffer pool.
5105 <p>
5106 This method may be called only before the environment is opened.
5107 <p>
5108 <P>
5109 <DD><DL>
5110 </DL>
5111 </DD>
5112 <DD><DL>
5113 <DT><B>Parameters:</B><DD><CODE>mpPageSize</CODE> - The expected page size to use. Generally, it is set to the expected average
5114 page size for all the data pages that are in the buffer pool.</DL>
5115 </DD>
5116 </DL>
5117 <HR>
5118
5119 <A NAME="getCachePageSize()"><!-- --></A><H3>
5120 getCachePageSize</H3>
5121 <PRE>
5122 public int <B>getCachePageSize</B>()</PRE>
5123 <DL>
5124 <DD>Returns the environment's current page size setting.
5125 <p>
5126 <P>
5127 <DD><DL>
5128 </DL>
5129 </DD>
5130 <DD><DL>
5131
5132 <DT><B>Returns:</B><DD>The current setting for the environment's expected page size use.</DL>
5133 </DD>
5134 </DL>
5135 <HR>
5136
5137 <A NAME="setCacheTableSize(int)"><!-- --></A><H3>
5138 setCacheTableSize</H3>
5139 <PRE>
5140 public void <B>setCacheTableSize</B>(int&nbsp;mpTableSize)</PRE>
5141 <DL>
5142 <DD>Overrides the calculated hash table size.
5143 <p>
5144 The table size is then adjusted to a nearby prime number to enhance the
5145 hashing algorithm.
5146 <p>
5147 This method may be called only before the environment is opened.
5148 <p>
5149 <P>
5150 <DD><DL>
5151 </DL>
5152 </DD>
5153 <DD><DL>
5154 <DT><B>Parameters:</B><DD><CODE>mpTableSize</CODE> - Specifies the size of the buffer pool hash table, which is then internally
5155 adjusted to a nearby prime number.</DL>
5156 </DD>
5157 </DL>
5158 <HR>
5159
5160 <A NAME="getCacheTableSize()"><!-- --></A><H3>
5161 getCacheTableSize</H3>
5162 <PRE>
5163 public int <B>getCacheTableSize</B>()</PRE>
5164 <DL>
5165 <DD>Returns the environment's current table size setting.
5166 <p>
5167 <P>
5168 <DD><DL>
5169 </DL>
5170 </DD>
5171 <DD><DL>
5172
5173 <DT><B>Returns:</B><DD>The current setting for the environment's table size.</DL>
5174 </DD>
5175 </DL>
5176 <HR>
5177
5178 <A NAME="setMode(int)"><!-- --></A><H3>
5179 setMode</H3>
5180 <PRE>
5181 public void <B>setMode</B>(int&nbsp;mode)</PRE>
5182 <DL>
5183 <DD>Configure the database environment to use a specific mode when
5184 creating underlying files and shared memory segments.
5185 <p>
5186 On UNIX systems or in POSIX environments, files created in the
5187 database environment are created with the specified mode (as
5188 modified by the process' umask value at the time of creation).
5189 <p>
5190 On UNIX systems or in POSIX environments, system shared memory
5191 segments created by the library are created with the specified
5192 mode, unmodified by the process' umask value.
5193 <p>
5194 If is 0, the library will use a default mode of readable and
5195 writable by both owner and group.
5196 <p>
5197 Created files are owned by the process owner; the group ownership
5198 of created files is based on the system and directory defaults,
5199 and is not further specified by the library.
5200 <p>
5201 <P>
5202 <DD><DL>
5203 </DL>
5204 </DD>
5205 <DD><DL>
5206 <DT><B>Parameters:</B><DD><CODE>mode</CODE> - The mode to use when creating underlying files and shared memory
5207 segments.</DL>
5208 </DD>
5209 </DL>
5210 <HR>
5211
5212 <A NAME="getMode()"><!-- --></A><H3>
5213 getMode</H3>
5214 <PRE>
5215 public long <B>getMode</B>()</PRE>
5216 <DL>
5217 <DD>Return the mode to use when creating underlying files and shared
5218 memory segments.
5219 <p>
5220 This method may be called at any time during the life of the application.
5221 <p>
5222 <P>
5223 <DD><DL>
5224 </DL>
5225 </DD>
5226 <DD><DL>
5227
5228 <DT><B>Returns:</B><DD>The mode to use when creating underlying files and shared
5229 memory segments.</DL>
5230 </DD>
5231 </DL>
5232 <HR>
5233
5234 <A NAME="setMultiversion(boolean)"><!-- --></A><H3>
5235 setMultiversion</H3>
5236 <PRE>
5237 public void <B>setMultiversion</B>(boolean&nbsp;multiversion)</PRE>
5238 <DL>
5239 <DD>Configure the database environment to open all databases that are not
5240 using the queue access method for multiversion concurrency control.
5241 See <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMultiversion(boolean)"><CODE>DatabaseConfig.setMultiversion(boolean)</CODE></A> for more information.
5242 <p>
5243 This method may be called at any time during the life of the application.
5244 <p>
5245 <P>
5246 <DD><DL>
5247 </DL>
5248 </DD>
5249 <DD><DL>
5250 <DT><B>Parameters:</B><DD><CODE>multiversion</CODE> - If true, all databases that are not using the queue access method will be
5251 opened for multiversion concurrency control.</DL>
5252 </DD>
5253 </DL>
5254 <HR>
5255
5256 <A NAME="getMultiversion()"><!-- --></A><H3>
5257 getMultiversion</H3>
5258 <PRE>
5259 public boolean <B>getMultiversion</B>()</PRE>
5260 <DL>
5261 <DD>Return true if the handle is configured to open all databases for multiversion
5262 concurrency control.
5263 <p>
5264 This method may be called at any time during the life of the application.
5265 <p>
5266 <P>
5267 <DD><DL>
5268 </DL>
5269 </DD>
5270 <DD><DL>
5271
5272 <DT><B>Returns:</B><DD>True if the handle is configured to open all databases for multiversion
5273 concurrency control.</DL>
5274 </DD>
5275 </DL>
5276 <HR>
5277
5278 <A NAME="setNoLocking(boolean)"><!-- --></A><H3>
5279 setNoLocking</H3>
5280 <PRE>
5281 public void <B>setNoLocking</B>(boolean&nbsp;noLocking)</PRE>
5282 <DL>
5283 <DD>Configure the system to grant all requested mutual exclusion mutexes
5284 and database locks without regard for their actual availability.
5285 <p>
5286 This functionality should never be used for purposes other than
5287 debugging.
5288 <p>
5289 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
5290 any other library handles opened within the scope of that handle).
5291 <p>
5292 This method may be called at any time during the life of the application.
5293 <p>
5294 <P>
5295 <DD><DL>
5296 </DL>
5297 </DD>
5298 <DD><DL>
5299 <DT><B>Parameters:</B><DD><CODE>noLocking</CODE> - If true, configure the system to grant all requested mutual exclusion
5300 mutexes and database locks without regard for their actual availability.</DL>
5301 </DD>
5302 </DL>
5303 <HR>
5304
5305 <A NAME="getNoLocking()"><!-- --></A><H3>
5306 getNoLocking</H3>
5307 <PRE>
5308 public boolean <B>getNoLocking</B>()</PRE>
5309 <DL>
5310 <DD>Return true if the system has been configured to grant all requested mutual
5311 exclusion mutexes and database locks without regard for their actual
5312 availability.
5313 <p>
5314 This method may be called at any time during the life of the application.
5315 <p>
5316 <P>
5317 <DD><DL>
5318 </DL>
5319 </DD>
5320 <DD><DL>
5321
5322 <DT><B>Returns:</B><DD>True if the system has been configured to grant all requested mutual
5323 exclusion mutexes and database locks without regard for their actual
5324 availability.</DL>
5325 </DD>
5326 </DL>
5327 <HR>
5328
5329 <A NAME="setNoMMap(boolean)"><!-- --></A><H3>
5330 setNoMMap</H3>
5331 <PRE>
5332 public void <B>setNoMMap</B>(boolean&nbsp;noMMap)</PRE>
5333 <DL>
5334 <DD>Configure the system to copy read-only database files into the local
5335 cache instead of potentially mapping them into process memory.
5336 <p>
5337 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
5338 any other library handles opened within the scope of that handle).
5339 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
5340 handles opened in the database environment must either call this method
5341 or the configuration should be specified in the database environment's
5342 DB_CONFIG configuration file.
5343 <p>
5344 This method may be called at any time during the life of the application.
5345 <p>
5346 <P>
5347 <DD><DL>
5348 </DL>
5349 </DD>
5350 <DD><DL>
5351 <DT><B>Parameters:</B><DD><CODE>noMMap</CODE> - If true, configure the system to copy read-only database files into
5352 the local cache instead of potentially mapping them into process memory.</DL>
5353 </DD>
5354 </DL>
5355 <HR>
5356
5357 <A NAME="getNoMMap()"><!-- --></A><H3>
5358 getNoMMap</H3>
5359 <PRE>
5360 public boolean <B>getNoMMap</B>()</PRE>
5361 <DL>
5362 <DD>Return true if the system has been configured to copy read-only database files
5363 into the local cache instead of potentially mapping them into process
5364 memory.
5365 <p>
5366 This method may be called at any time during the life of the application.
5367 <p>
5368 <P>
5369 <DD><DL>
5370 </DL>
5371 </DD>
5372 <DD><DL>
5373
5374 <DT><B>Returns:</B><DD>True if the system has been configured to copy read-only database files
5375 into the local cache instead of potentially mapping them into process
5376 memory.</DL>
5377 </DD>
5378 </DL>
5379 <HR>
5380
5381 <A NAME="setNoPanic(boolean)"><!-- --></A><H3>
5382 setNoPanic</H3>
5383 <PRE>
5384 public void <B>setNoPanic</B>(boolean&nbsp;noPanic)</PRE>
5385 <DL>
5386 <DD>Configure the system to ignore any panic state in the database
5387 environment.
5388 <p>
5389 Database environments in a panic state normally refuse all attempts to
5390 call Berkeley DB functions, throwing <A HREF="../../../com/sleepycat/db/RunRecoveryException.html" title="class in com.sleepycat.db"><CODE>RunRecoveryException</CODE></A>.
5391 This functionality should never be used for purposes other than
5392 debugging.
5393 <p>
5394 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
5395 any other library handles opened within the scope of that handle).
5396 <p>
5397 This method may be called at any time during the life of the application.
5398 <p>
5399 <P>
5400 <DD><DL>
5401 </DL>
5402 </DD>
5403 <DD><DL>
5404 <DT><B>Parameters:</B><DD><CODE>noPanic</CODE> - If true, configure the system to ignore any panic state in the
5405 database environment.</DL>
5406 </DD>
5407 </DL>
5408 <HR>
5409
5410 <A NAME="getNoPanic()"><!-- --></A><H3>
5411 getNoPanic</H3>
5412 <PRE>
5413 public boolean <B>getNoPanic</B>()</PRE>
5414 <DL>
5415 <DD>Return true if the system has been configured to ignore any panic state in
5416 the database environment.
5417 <p>
5418 This method may be called at any time during the life of the application.
5419 <p>
5420 <P>
5421 <DD><DL>
5422 </DL>
5423 </DD>
5424 <DD><DL>
5425
5426 <DT><B>Returns:</B><DD>True if the system has been configured to ignore any panic state in
5427 the database environment.</DL>
5428 </DD>
5429 </DL>
5430 <HR>
5431
5432 <A NAME="setOverwrite(boolean)"><!-- --></A><H3>
5433 setOverwrite</H3>
5434 <PRE>
5435 public void <B>setOverwrite</B>(boolean&nbsp;overwrite)</PRE>
5436 <DL>
5437 <DD>Configure the system to overwrite files stored in encrypted formats
5438 before deleting them.
5439 <p>
5440 Berkeley DB overwrites files using alternating 0xff, 0x00 and 0xff
5441 byte patterns. For file overwriting to be effective, the underlying
5442 file must be stored on a fixed-block filesystem. Systems with
5443 journaling or logging filesystems will require operating system
5444 support and probably modification of the Berkeley DB sources.
5445 <p>
5446 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
5447 any other library handles opened within the scope of that handle).
5448 <p>
5449 This method may be called at any time during the life of the application.
5450 <p>
5451 <P>
5452 <DD><DL>
5453 </DL>
5454 </DD>
5455 <DD><DL>
5456 <DT><B>Parameters:</B><DD><CODE>overwrite</CODE> - If true, configure the system to overwrite files stored in encrypted
5457 formats before deleting them.</DL>
5458 </DD>
5459 </DL>
5460 <HR>
5461
5462 <A NAME="getOverwrite()"><!-- --></A><H3>
5463 getOverwrite</H3>
5464 <PRE>
5465 public boolean <B>getOverwrite</B>()</PRE>
5466 <DL>
5467 <DD>Return true if the system has been configured to overwrite files stored in
5468 encrypted formats before deleting them.
5469 <p>
5470 This method may be called at any time during the life of the application.
5471 <p>
5472 <P>
5473 <DD><DL>
5474 </DL>
5475 </DD>
5476 <DD><DL>
5477
5478 <DT><B>Returns:</B><DD>True if the system has been configured to overwrite files stored in
5479 encrypted formats before deleting them.</DL>
5480 </DD>
5481 </DL>
5482 <HR>
5483
5484 <A NAME="setPanicHandler(com.sleepycat.db.PanicHandler)"><!-- --></A><H3>
5485 setPanicHandler</H3>
5486 <PRE>
5487 public void <B>setPanicHandler</B>(<A HREF="../../../com/sleepycat/db/PanicHandler.html" title="interface in com.sleepycat.db">PanicHandler</A>&nbsp;panicHandler)</PRE>
5488 <DL>
5489 <DD>Set the function to be called if the database environment panics.
5490 <p>
5491 Errors can occur in the Berkeley DB library where the only solution is
5492 to shut down the application and run recovery (for example, if Berkeley
5493 DB is unable to allocate heap memory). In such cases, the Berkeley DB
5494 methods will throw a <A HREF="../../../com/sleepycat/db/RunRecoveryException.html" title="class in com.sleepycat.db"><CODE>RunRecoveryException</CODE></A>. It is often easier
5495 to simply exit the application when such errors occur rather than
5496 gracefully return up the stack. This method specifies a function to be
5497 called when <A HREF="../../../com/sleepycat/db/RunRecoveryException.html" title="class in com.sleepycat.db"><CODE>RunRecoveryException</CODE></A> is about to be thrown from a
5498 Berkeley DB method.
5499 <p>
5500 This method may be called at any time during the life of the application.
5501 <p>
5502 <P>
5503 <DD><DL>
5504 </DL>
5505 </DD>
5506 <DD><DL>
5507 <DT><B>Parameters:</B><DD><CODE>panicHandler</CODE> - The function to be called if the database environment panics.</DL>
5508 </DD>
5509 </DL>
5510 <HR>
5511
5512 <A NAME="getPanicHandler()"><!-- --></A><H3>
5513 getPanicHandler</H3>
5514 <PRE>
5515 public <A HREF="../../../com/sleepycat/db/PanicHandler.html" title="interface in com.sleepycat.db">PanicHandler</A> <B>getPanicHandler</B>()</PRE>
5516 <DL>
5517 <DD>Return the function to be called if the database environment panics.
5518 <p>
5519 This method may be called at any time during the life of the application.
5520 <p>
5521 <P>
5522 <DD><DL>
5523 </DL>
5524 </DD>
5525 <DD><DL>
5526
5527 <DT><B>Returns:</B><DD>The function to be called if the database environment panics.</DL>
5528 </DD>
5529 </DL>
5530 <HR>
5531
5532 <A NAME="setPrivate(boolean)"><!-- --></A><H3>
5533 setPrivate</H3>
5534 <PRE>
5535 public void <B>setPrivate</B>(boolean&nbsp;isPrivate)</PRE>
5536 <DL>
5537 <DD>Configure the database environment to only be accessed by a single
5538 process (although that process may be multithreaded).
5539 <p>
5540 This has two effects on the database environment. First, all
5541 underlying data structures are allocated from per-process memory
5542 instead of from shared memory that is potentially accessible to more
5543 than a single process. Second, mutexes are only configured to work
5544 between threads.
5545 <p>
5546 Use of this flag means that multiple handles cannot be simultaneously
5547 opened for the environment, even within the same process. For example,
5548 if both a server application and a Berkeley DB utility are expected to
5549 access the environment at the same time, then do not configure the
5550 database environment as private.
5551 <p>
5552 <P>
5553 <DD><DL>
5554 </DL>
5555 </DD>
5556 <DD><DL>
5557 <DT><B>Parameters:</B><DD><CODE>isPrivate</CODE> - If true, configure the database environment to only be accessed by
5558 a single process.</DL>
5559 </DD>
5560 </DL>
5561 <HR>
5562
5563 <A NAME="getPrivate()"><!-- --></A><H3>
5564 getPrivate</H3>
5565 <PRE>
5566 public boolean <B>getPrivate</B>()</PRE>
5567 <DL>
5568 <DD>Return true if the database environment is configured to only be accessed
5569 by a single process.
5570 <p>
5571 This method may be called at any time during the life of the application.
5572 <p>
5573 <P>
5574 <DD><DL>
5575 </DL>
5576 </DD>
5577 <DD><DL>
5578
5579 <DT><B>Returns:</B><DD>True if the database environment is configured to only be accessed
5580 by a single process.</DL>
5581 </DD>
5582 </DL>
5583 <HR>
5584
5585 <A NAME="setReplicationClockskew(int, int)"><!-- --></A><H3>
5586 setReplicationClockskew</H3>
5587 <PRE>
5588 public void <B>setReplicationClockskew</B>(int&nbsp;replicationClockskewFast,
5589 int&nbsp;replicationClockskewSlow)</PRE>
5590 <DL>
5591 <DD>Sets the clock skew ratio among replication group members based on the
5592 fastest and slowest measurements among the group for use with master leases.
5593 Calling this method is optional, the default values for clock skew assume no
5594 skew. The user must also configure leases via the
5595 <A HREF="../../../com/sleepycat/db/Environment.html#setReplicationConfig(com.sleepycat.db.ReplicationConfig, boolean)"><CODE>Environment.setReplicationConfig(com.sleepycat.db.ReplicationConfig, boolean)</CODE></A> method. Additionally, the user must
5596 also set the master lease timeout via the
5597 <A HREF="../../../com/sleepycat/db/Environment.html#setReplicationTimeout(com.sleepycat.db.ReplicationTimeoutType, int)"><CODE>Environment.setReplicationTimeout(com.sleepycat.db.ReplicationTimeoutType, int)</CODE></A> method and, if using the base
5598 replication API, the number of sites in the replication group via the
5599 (@link #setReplicationNumSites} method. These methods may be called in
5600 any order. For a description of the clock skew values,
5601 see <a href="../../../../programmer_reference/rep_clock_skew.html">Clock skew</a>.
5602 For a description of master leases, see
5603 <a href="../../../../programmer_reference/rep_lease.html">Master leases</a>.
5604 <p>
5605 These arguments can be used to express either raw measurements of a clock
5606 timing experiment or a percentage across machines. For instance a group of
5607 sites have a 2% variance, then <code>replicationClockskewFast</code> should be given as
5608 102, and <code>replicationClockskewSlow</code> should be set at 100. Or, for a 0.03%
5609 difference, you can use 10003 and 10000 respectively.
5610 <p>
5611 The database environment's replication subsystem may also be configured using
5612 the environment's
5613 <a href="../../../../programmer_reference/env_db_config.html#DB_CONFIG">DB_CONFIG</a> file.
5614 The syntax of the entry in that file is a single line with the string
5615 "rep_set_clockskew", one or more whitespace characters, and the clockskew
5616 specified in two parts: the replicationClockskewFast and the replicationClockskewSlow. For example,
5617 "rep_set_clockskew 102 100". Because the
5618 <a href="../../../../programmer_reference/env_db_config.html#DB_CONFIG">DB_CONFIG</a> file is
5619 read when the database environment is opened, it will silently overrule
5620 configuration done before that time.
5621 <p>
5622 This method configures a database environment, not only operations performed
5623 using the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
5624 <p>
5625 This method may not be called after the <A HREF="../../../com/sleepycat/db/Environment.html#replicationManagerStart(int, com.sleepycat.db.ReplicationManagerStartPolicy)"><CODE>Environment.replicationManagerStart(int, com.sleepycat.db.ReplicationManagerStartPolicy)</CODE></A> or <A HREF="../../../com/sleepycat/db/Environment.html#startReplication(com.sleepycat.db.DatabaseEntry, boolean)"><CODE>Environment.startReplication(com.sleepycat.db.DatabaseEntry, boolean)</CODE></A> methods are called.
5626 <p>
5627 <P>
5628 <DD><DL>
5629 </DL>
5630 </DD>
5631 <DD><DL>
5632 <DT><B>Parameters:</B><DD><CODE>replicationClockskewFast</CODE> - The value, relative to the <code>replicationClockskewSlow</code>, of the fastest clock in the group of sites.<DD><CODE>replicationClockskewSlow</CODE> - The value of the slowest clock in the group of sites.</DL>
5633 </DD>
5634 </DL>
5635 <HR>
5636
5637 <A NAME="getReplicationClockskewFast()"><!-- --></A><H3>
5638 getReplicationClockskewFast</H3>
5639 <PRE>
5640 public int <B>getReplicationClockskewFast</B>()</PRE>
5641 <DL>
5642 <DD>Return the current clock skew value for the fastest clock in the group of sites.
5643 <p>
5644 This method may be called at any time during the life of the application.
5645 <P>
5646 <DD><DL>
5647 </DL>
5648 </DD>
5649 <DD><DL>
5650
5651 <DT><B>Returns:</B><DD>The current clock skew value for the fastest clock in the group of sites.</DL>
5652 </DD>
5653 </DL>
5654 <HR>
5655
5656 <A NAME="getReplicationClockskewSlow()"><!-- --></A><H3>
5657 getReplicationClockskewSlow</H3>
5658 <PRE>
5659 public int <B>getReplicationClockskewSlow</B>()</PRE>
5660 <DL>
5661 <DD>Return the current clock skew value for the slowest clock in the group of sites.
5662 <p>
5663 This method may be called at any time during the life of the application.
5664 <P>
5665 <DD><DL>
5666 </DL>
5667 </DD>
5668 <DD><DL>
5669
5670 <DT><B>Returns:</B><DD>The current clock skew value for the slowest clock in the group of sites.</DL>
5671 </DD>
5672 </DL>
5673 <HR>
5674
5675 <A NAME="setReplicationLimit(long)"><!-- --></A><H3>
5676 setReplicationLimit</H3>
5677 <PRE>
5678 public void <B>setReplicationLimit</B>(long&nbsp;replicationLimit)</PRE>
5679 <DL>
5680 <DD>Impose a byte-count limit on the amount of data that will be
5681 transmitted from a site in a single call to <A HREF="../../../com/sleepycat/db/Environment.html#processReplicationMessage(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, int)"><CODE>Environment.processReplicationMessage</CODE></A>.
5682 <p>
5683 This method configures a database environment, including all threads
5684 of control accessing the database environment, not only the operations
5685 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
5686 <p>
5687 This method may be called at any time during the life of the application.
5688 <p>
5689 <P>
5690 <DD><DL>
5691 </DL>
5692 </DD>
5693 <DD><DL>
5694 <DT><B>Parameters:</B><DD><CODE>replicationLimit</CODE> - The maximum number of bytes that will be sent in a single call to
5695 <A HREF="../../../com/sleepycat/db/Environment.html#processReplicationMessage(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, int)"><CODE>Environment.processReplicationMessage</CODE></A>.</DL>
5696 </DD>
5697 </DL>
5698 <HR>
5699
5700 <A NAME="getReplicationLimit()"><!-- --></A><H3>
5701 getReplicationLimit</H3>
5702 <PRE>
5703 public long <B>getReplicationLimit</B>()</PRE>
5704 <DL>
5705 <DD>Return the transmit limit in bytes for a single call to
5706 <A HREF="../../../com/sleepycat/db/Environment.html#processReplicationMessage(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, int)"><CODE>Environment.processReplicationMessage</CODE></A>.
5707 <p>
5708 This method may be called at any time during the life of the application.
5709 <p>
5710 <P>
5711 <DD><DL>
5712 </DL>
5713 </DD>
5714 <DD><DL>
5715
5716 <DT><B>Returns:</B><DD>The transmit limit in bytes for a single call to <A HREF="../../../com/sleepycat/db/Environment.html#processReplicationMessage(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, int)"><CODE>Environment.processReplicationMessage</CODE></A>.</DL>
5717 </DD>
5718 </DL>
5719 <HR>
5720
5721 <A NAME="setReplicationRequestMin(int)"><!-- --></A><H3>
5722 setReplicationRequestMin</H3>
5723 <PRE>
5724 public void <B>setReplicationRequestMin</B>(int&nbsp;replicationRequestMin)</PRE>
5725 <DL>
5726 <DD>Set a threshold for the minimum time that a client waits before requesting
5727 retransmission of a missing message. Specifically, if the client detects a
5728 gap in the sequence of incoming log records or database pages, Berkeley DB
5729 will wait for at least <code>replicationRequestMin</code> microseconds before requesting
5730 retransmission of the missing record. Berkeley DB will double that amount
5731 before requesting the same missing record again, and so on, up to a maximum
5732 threshold, set by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationRequestMax(int)"><CODE>setReplicationRequestMax(int)</CODE></A>.
5733 <p>
5734 These values are thresholds only. Replication Manager applications use these
5735 values to determine when to automatically request retransmission of missing
5736 messages. For Base API applications, Berkeley DB has no thread available in
5737 the library as a timer, the threshold is only checked when a thread enters
5738 the Berkeley DB library to process an incoming replication message. Any
5739 amount of time may have passed since the last message arrived and Berkeley DB
5740 only checks whether the amount of time since a request was made is beyond the
5741 threshold value or not.
5742 <p>
5743 By default the minimum is 40000 and the maximum is 1280000 (1.28 seconds).
5744 These defaults are fairly arbitrary and the application likely needs to
5745 adjust these. The values should be based on expected load and performance
5746 characteristics of the master and client host platforms and transport
5747 infrastructure as well as round-trip message time.
5748 <p>
5749 <P>
5750 <DD><DL>
5751 </DL>
5752 </DD>
5753 <DD><DL>
5754 <DT><B>Parameters:</B><DD><CODE>replicationRequestMin</CODE> - The minimum amount of time the client waits before requesting retransmission
5755 of a missing message.</DL>
5756 </DD>
5757 </DL>
5758 <HR>
5759
5760 <A NAME="getReplicationRequestMin()"><!-- --></A><H3>
5761 getReplicationRequestMin</H3>
5762 <PRE>
5763 public int <B>getReplicationRequestMin</B>()</PRE>
5764 <DL>
5765 <DD>Get the threshold for the minimum amount of time that a client waits before
5766 requesting retransmission of a missed message.
5767 <p>
5768 <P>
5769 <DD><DL>
5770 </DL>
5771 </DD>
5772 <DD><DL>
5773
5774 <DT><B>Returns:</B><DD>The threshold for the minimum amount of time that a client waits before
5775 requesting retransmission of a missed message.</DL>
5776 </DD>
5777 </DL>
5778 <HR>
5779
5780 <A NAME="setReplicationRequestMax(int)"><!-- --></A><H3>
5781 setReplicationRequestMax</H3>
5782 <PRE>
5783 public void <B>setReplicationRequestMax</B>(int&nbsp;replicationRequestMax)</PRE>
5784 <DL>
5785 <DD>Set a threshold for the maximum time that a client waits before requesting
5786 retransmission of a missing message. Specifically, if the client detects a
5787 gap in the sequence of incoming log records or database pages, Berkeley DB
5788 will wait for at least the minimum threshold, set by
5789 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationRequestMin(int)"><CODE>setReplicationRequestMin(int)</CODE></A>, before requesting retransmission of the
5790 missing record. Berkeley DB will double that amount before requesting the
5791 same missing record again, and so on, up to <code>replicationRequestMax</code>.
5792 <p>
5793 These values are thresholds only. Since Berkeley DB has no thread available
5794 in the library as a timer, the threshold is only checked when a thread enters
5795 the Berkeley DB library to process an incoming replication message. Any
5796 amount of time may have passed since the last message arrived and Berkeley DB
5797 only checks whether the amount of time since a request was made is beyond the
5798 threshold value or not.
5799 <p>
5800 By default the minimum is 40000 and the maximum is 1280000 (1.28 seconds).
5801 These defaults are fairly arbitrary and the application likely needs to
5802 adjust these. The values should be based on expected load and performance
5803 characteristics of the master and client host platforms and transport
5804 infrastructure as well as round-trip message time.
5805 <p>
5806 <P>
5807 <DD><DL>
5808 </DL>
5809 </DD>
5810 <DD><DL>
5811 <DT><B>Parameters:</B><DD><CODE>replicationRequestMax</CODE> - The maximum amount of time the client waits before requesting retransmission
5812 of a missing message.</DL>
5813 </DD>
5814 </DL>
5815 <HR>
5816
5817 <A NAME="getReplicationRequestMax()"><!-- --></A><H3>
5818 getReplicationRequestMax</H3>
5819 <PRE>
5820 public int <B>getReplicationRequestMax</B>()</PRE>
5821 <DL>
5822 <DD>Get the threshold for the maximum amount of time that a client waits before
5823 requesting retransmission of a missed message.
5824 <p>
5825 <P>
5826 <DD><DL>
5827 </DL>
5828 </DD>
5829 <DD><DL>
5830
5831 <DT><B>Returns:</B><DD>The threshold for the maximum amount of time that a client waits before
5832 requesting retransmission of a missed message.</DL>
5833 </DD>
5834 </DL>
5835 <HR>
5836
5837 <A NAME="setReplicationTransport(int, com.sleepycat.db.ReplicationTransport)"><!-- --></A><H3>
5838 setReplicationTransport</H3>
5839 <PRE>
5840 public void <B>setReplicationTransport</B>(int&nbsp;envid,
5841 <A HREF="../../../com/sleepycat/db/ReplicationTransport.html" title="interface in com.sleepycat.db">ReplicationTransport</A>&nbsp;replicationTransport)</PRE>
5842 <DL>
5843 <DD>Initialize the communication infrastructure for a database environment
5844 participating in a replicated application.
5845 <p>
5846 This method configures only operations performed using a single a
5847 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle, not an entire database environment.
5848 <p>
5849 This method may be called at any time during the life of the application.
5850 <p>
5851 <P>
5852 <DD><DL>
5853 </DL>
5854 </DD>
5855 <DD><DL>
5856 <DT><B>Parameters:</B><DD><CODE>envid</CODE> - The local environment's ID. It must be a positive integer and
5857 uniquely identify this Berkeley DB database environment.
5858 <p><DD><CODE>replicationTransport</CODE> - The callback function is used to transmit data using the replication
5859 application's communication infrastructure.</DL>
5860 </DD>
5861 </DL>
5862 <HR>
5863
5864 <A NAME="getReplicationTransport()"><!-- --></A><H3>
5865 getReplicationTransport</H3>
5866 <PRE>
5867 public <A HREF="../../../com/sleepycat/db/ReplicationTransport.html" title="interface in com.sleepycat.db">ReplicationTransport</A> <B>getReplicationTransport</B>()</PRE>
5868 <DL>
5869 <DD>Return the replication callback function used to transmit data using
5870 the replication application's communication infrastructure.
5871 <p>
5872 <P>
5873 <DD><DL>
5874 </DL>
5875 </DD>
5876 <DD><DL>
5877
5878 <DT><B>Returns:</B><DD>The replication callback function used to transmit data using the
5879 replication application's communication infrastructure.</DL>
5880 </DD>
5881 </DL>
5882 <HR>
5883
5884 <A NAME="setRegister(boolean)"><!-- --></A><H3>
5885 setRegister</H3>
5886 <PRE>
5887 public void <B>setRegister</B>(boolean&nbsp;register)</PRE>
5888 <DL>
5889 <DD>Check if a process has failed while using the database environment, that
5890 is, if a process has exited with an open <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle. (For
5891 this check to be accurate, all processes using the environment must
5892 specify this flag when opening the environment.) If recovery
5893 needs to be run for any reason and either <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRunRecovery(boolean)"><CODE>setRunRecovery(boolean)</CODE></A> or
5894 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRunFatalRecovery(boolean)"><CODE>setRunFatalRecovery(boolean)</CODE></A> are also specified, recovery will be performed
5895 and the open will proceed normally. If recovery needs to be run and no
5896 recovery flag is specified, a <A HREF="../../../com/sleepycat/db/RunRecoveryException.html" title="class in com.sleepycat.db"><CODE>RunRecoveryException</CODE></A> will be thrown.
5897 If recovery does not need to be run, the recovery flags will be ignored.
5898 See
5899 <a href="../../../../programmer_reference/transapp_app.html" target="_top">Architecting
5900 Transactional Data Store applications</a>) for more information.
5901 <p>
5902 <P>
5903 <DD><DL>
5904 </DL>
5905 </DD>
5906 <DD><DL>
5907 <DT><B>Parameters:</B><DD><CODE>register</CODE> - If true, check for process failure when the environment is opened.</DL>
5908 </DD>
5909 </DL>
5910 <HR>
5911
5912 <A NAME="getRegister()"><!-- --></A><H3>
5913 getRegister</H3>
5914 <PRE>
5915 public boolean <B>getRegister</B>()</PRE>
5916 <DL>
5917 <DD>Return true if the check for process failure when the environment is opened.
5918 <p>
5919 This method may be called at any time during the life of the application.
5920 <p>
5921 <P>
5922 <DD><DL>
5923 </DL>
5924 </DD>
5925 <DD><DL>
5926
5927 <DT><B>Returns:</B><DD>True if the check for process failure when the environment is opened.</DL>
5928 </DD>
5929 </DL>
5930 <HR>
5931
5932 <A NAME="setRunFatalRecovery(boolean)"><!-- --></A><H3>
5933 setRunFatalRecovery</H3>
5934 <PRE>
5935 public void <B>setRunFatalRecovery</B>(boolean&nbsp;runFatalRecovery)</PRE>
5936 <DL>
5937 <DD>Configure to run catastrophic recovery on this environment before opening it for
5938 normal use.
5939 <p>
5940 A standard part of the recovery process is to remove the existing
5941 database environment and create a new one. Applications running
5942 recovery must be prepared to re-create the environment because
5943 underlying shared regions will be removed and re-created.
5944 <p>
5945 If the thread of control performing recovery does not specify the
5946 correct database environment initialization information (for example,
5947 the correct memory pool cache size), the result can be an application
5948 running in an environment with incorrect cache and other subsystem
5949 sizes. For this reason, the thread of control performing recovery
5950 should specify correct configuration information before recovering the
5951 environment; or it should remove the environment after recovery is
5952 completed, leaving creation of a correctly sized environment to a
5953 subsequent call.
5954 <p>
5955 All recovery processing must be single-threaded; that is, only a single
5956 thread of control may perform recovery or access a database environment
5957 while recovery is being performed. Because it is not an error to run
5958 recovery for an environment for which no recovery is required, it is
5959 reasonable programming practice for the thread of control responsible
5960 for performing recovery and creating the environment to always specify
5961 recovery during startup.
5962 <p>
5963 This method returns successfully if recovery is run no log files exist,
5964 so it is necessary to ensure that all necessary log files are present
5965 before running recovery.
5966 <p>
5967 <P>
5968 <DD><DL>
5969 </DL>
5970 </DD>
5971 <DD><DL>
5972 <DT><B>Parameters:</B><DD><CODE>runFatalRecovery</CODE> - If true, configure to run catastrophic recovery on this environment
5973 before opening it for normal use.</DL>
5974 </DD>
5975 </DL>
5976 <HR>
5977
5978 <A NAME="getRunFatalRecovery()"><!-- --></A><H3>
5979 getRunFatalRecovery</H3>
5980 <PRE>
5981 public boolean <B>getRunFatalRecovery</B>()</PRE>
5982 <DL>
5983 <DD>Return the handle is configured to run catastrophic recovery on
5984 the database environment before opening it for use.
5985 <p>
5986 This method may be called at any time during the life of the application.
5987 <p>
5988 <P>
5989 <DD><DL>
5990 </DL>
5991 </DD>
5992 <DD><DL>
5993
5994 <DT><B>Returns:</B><DD>The handle is configured to run catastrophic recovery on
5995 the database environment before opening it for use.</DL>
5996 </DD>
5997 </DL>
5998 <HR>
5999
6000 <A NAME="setRunRecovery(boolean)"><!-- --></A><H3>
6001 setRunRecovery</H3>
6002 <PRE>
6003 public void <B>setRunRecovery</B>(boolean&nbsp;runRecovery)</PRE>
6004 <DL>
6005 <DD>Configure to run normal recovery on this environment before opening it for
6006 normal use.
6007 <p>
6008 A standard part of the recovery process is to remove the existing
6009 database environment and create a new one. Applications running
6010 recovery must be prepared to re-create the environment because
6011 underlying shared regions will be removed and re-created.
6012 <p>
6013 If the thread of control performing recovery does not specify the
6014 correct database environment initialization information (for example,
6015 the correct memory pool cache size), the result can be an application
6016 running in an environment with incorrect cache and other subsystem
6017 sizes. For this reason, the thread of control performing recovery
6018 should specify correct configuration information before recovering the
6019 environment; or it should remove the environment after recovery is
6020 completed, leaving creation of a correctly sized environment to a
6021 subsequent call.
6022 <p>
6023 All recovery processing must be single-threaded; that is, only a single
6024 thread of control may perform recovery or access a database environment
6025 while recovery is being performed. Because it is not an error to run
6026 recovery for an environment for which no recovery is required, it is
6027 reasonable programming practice for the thread of control responsible
6028 for performing recovery and creating the environment to always specify
6029 recovery during startup.
6030 <p>
6031 This method returns successfully if recovery is run no log files exist,
6032 so it is necessary to ensure that all necessary log files are present
6033 before running recovery.
6034 <p>
6035 <P>
6036 <DD><DL>
6037 </DL>
6038 </DD>
6039 <DD><DL>
6040 <DT><B>Parameters:</B><DD><CODE>runRecovery</CODE> - If true, configure to run normal recovery on this environment
6041 before opening it for normal use.</DL>
6042 </DD>
6043 </DL>
6044 <HR>
6045
6046 <A NAME="getRunRecovery()"><!-- --></A><H3>
6047 getRunRecovery</H3>
6048 <PRE>
6049 public boolean <B>getRunRecovery</B>()</PRE>
6050 <DL>
6051 <DD>Return the handle is configured to run normal recovery on the
6052 database environment before opening it for use.
6053 <p>
6054 This method may be called at any time during the life of the application.
6055 <p>
6056 <P>
6057 <DD><DL>
6058 </DL>
6059 </DD>
6060 <DD><DL>
6061
6062 <DT><B>Returns:</B><DD>The handle is configured to run normal recovery on the
6063 database environment before opening it for use.</DL>
6064 </DD>
6065 </DL>
6066 <HR>
6067
6068 <A NAME="setSystemMemory(boolean)"><!-- --></A><H3>
6069 setSystemMemory</H3>
6070 <PRE>
6071 public void <B>setSystemMemory</B>(boolean&nbsp;systemMemory)</PRE>
6072 <DL>
6073 <DD>Configure the database environment to allocate memory from system
6074 shared memory instead of from memory backed by the filesystem.
6075 <p>
6076 <P>
6077 <DD><DL>
6078 </DL>
6079 </DD>
6080 <DD><DL>
6081 <DT><B>Parameters:</B><DD><CODE>systemMemory</CODE> - If true, configure the database environment to allocate memory from
6082 system shared memory instead of from memory backed by the filesystem.</DL>
6083 </DD>
6084 </DL>
6085 <HR>
6086
6087 <A NAME="getSystemMemory()"><!-- --></A><H3>
6088 getSystemMemory</H3>
6089 <PRE>
6090 public boolean <B>getSystemMemory</B>()</PRE>
6091 <DL>
6092 <DD>Return true if the database environment is configured to allocate memory
6093 from system shared memory instead of from memory backed by the
6094 filesystem.
6095 <p>
6096 This method may be called at any time during the life of the application.
6097 <p>
6098 <P>
6099 <DD><DL>
6100 </DL>
6101 </DD>
6102 <DD><DL>
6103
6104 <DT><B>Returns:</B><DD>True if the database environment is configured to allocate memory
6105 from system shared memory instead of from memory backed by the
6106 filesystem.</DL>
6107 </DD>
6108 </DL>
6109 <HR>
6110
6111 <A NAME="setSegmentId(long)"><!-- --></A><H3>
6112 setSegmentId</H3>
6113 <PRE>
6114 public void <B>setSegmentId</B>(long&nbsp;segmentId)</PRE>
6115 <DL>
6116 <DD>Specify a base segment ID for database environment shared memory
6117 regions created in system memory on VxWorks or systems supporting
6118 X/Open-style shared memory interfaces; for example, UNIX systems
6119 supporting <code>shmget</code> and related System V IPC interfaces.
6120 <p>
6121 This base segment ID will be used when database environment shared
6122 memory regions are first created. It will be incremented a small
6123 integer value each time a new shared memory region is created; that
6124 is, if the base ID is 35, the first shared memory region created
6125 will have a segment ID of 35, and the next one will have a segment
6126 ID between 36 and 40 or so. A database environment always creates
6127 a master shared memory region; an additional shared memory region
6128 for each of the subsystems supported by the environment (Locking,
6129 Logging, Memory Pool and Transaction); plus an additional shared
6130 memory region for each additional memory pool cache that is
6131 supported. Already existing regions with the same segment IDs will
6132 be removed.
6133 <p>
6134 The intent behind this method is two-fold: without it, applications
6135 have no way to ensure that two Berkeley DB applications don't
6136 attempt to use the same segment IDs when creating different database
6137 environments. In addition, by using the same segment IDs each time
6138 the environment is created, previously created segments will be
6139 removed, and the set of segments on the system will not grow without
6140 bound.
6141 The database environment's base segment ID may also be set using the environment's
6142 DB_CONFIG file. The syntax of the entry in that file is a single line
6143 with the string "set_shm_key", one or more whitespace characters, and the ID.
6144 Because the DB_CONFIG file is read when the database environment is
6145 opened, it will silently overrule configuration done before that time.
6146 <p>
6147 This method configures only operations performed using a single a
6148 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle, not an entire database environment.
6149 <p>
6150 This method may not be called after the
6151 environment has been opened.
6152 If joining an existing database environment, the
6153 information specified to this method must be consistent with the
6154 existing environment or corruption can occur.
6155 <p>
6156 <P>
6157 <DD><DL>
6158 </DL>
6159 </DD>
6160 <DD><DL>
6161 <DT><B>Parameters:</B><DD><CODE>segmentId</CODE> - The base segment ID for the database environment.</DL>
6162 </DD>
6163 </DL>
6164 <HR>
6165
6166 <A NAME="getSegmentId()"><!-- --></A><H3>
6167 getSegmentId</H3>
6168 <PRE>
6169 public long <B>getSegmentId</B>()</PRE>
6170 <DL>
6171 <DD>Return the base segment ID.
6172 <p>
6173 This method may be called at any time during the life of the application.
6174 <p>
6175 <P>
6176 <DD><DL>
6177 </DL>
6178 </DD>
6179 <DD><DL>
6180
6181 <DT><B>Returns:</B><DD>The base segment ID.</DL>
6182 </DD>
6183 </DL>
6184 <HR>
6185
6186 <A NAME="setTemporaryDirectory(java.io.File)"><!-- --></A><H3>
6187 setTemporaryDirectory</H3>
6188 <PRE>
6189 public void <B>setTemporaryDirectory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;temporaryDirectory)</PRE>
6190 <DL>
6191 <DD>Set the path of a directory to be used as the location of temporary
6192 files.
6193 <p>
6194 The files created to back in-memory access method databases will be
6195 created relative to this path. These temporary files can be quite
6196 large, depending on the size of the database.
6197 <p>
6198 If no directory is specified, the following alternatives are checked
6199 in the specified order. The first existing directory path is used
6200 for all temporary files.
6201 <blockquote><ol>
6202 <li>The value of the environment variable TMPDIR.
6203 <li>The value of the environment variable TEMP.
6204 <li>The value of the environment variable TMP.
6205 <li>The value of the environment variable TempFolder.
6206 <li>The value returned by the GetTempPath interface.
6207 <li>The directory /var/tmp.
6208 <li>The directory /usr/tmp.
6209 <li>The directory /temp.
6210 <li>The directory /tmp.
6211 <li>The directory C:/temp.
6212 <li>The directory C:/tmp.
6213 </ol</blockquote>
6214 <p>
6215 Note: the environment variables are only checked if the database
6216 environment has been configured with one of
6217 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setUseEnvironment(boolean)"><CODE>EnvironmentConfig.setUseEnvironment</CODE></A> or
6218 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setUseEnvironmentRoot(boolean)"><CODE>EnvironmentConfig.setUseEnvironmentRoot</CODE></A>.
6219 <p>
6220 Note: the GetTempPath interface is only checked on Win/32 platforms.
6221 <p>
6222 The database environment's temporary file directory may also be set using the environment's
6223 DB_CONFIG file. The syntax of the entry in that file is a single line
6224 with the string "set_tmp_dir", one or more whitespace characters, and the directory name.
6225 Because the DB_CONFIG file is read when the database environment is
6226 opened, it will silently overrule configuration done before that time.
6227 <p>
6228 This method configures only operations performed using a single a
6229 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle, not an entire database environment.
6230 <p>
6231 This method may not be called after the
6232 environment has been opened.
6233 If joining an existing database environment, the
6234 information specified to this method must be consistent with the
6235 existing environment or corruption can occur.
6236 <p>
6237 <P>
6238 <DD><DL>
6239 </DL>
6240 </DD>
6241 <DD><DL>
6242 <DT><B>Parameters:</B><DD><CODE>temporaryDirectory</CODE> - The directory to be used to store temporary files.
6243 On Windows platforms, this argument will be interpreted as a UTF-8
6244 string, which is equivalent to ASCII for Latin characters.</DL>
6245 </DD>
6246 </DL>
6247 <HR>
6248
6249 <A NAME="setTemporaryDirectory(java.lang.String)"><!-- --></A><H3>
6250 setTemporaryDirectory</H3>
6251 <PRE>
6252 public void <B>setTemporaryDirectory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;temporaryDirectory)</PRE>
6253 <DL>
6254 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTemporaryDirectory(java.io.File)"><CODE>setTemporaryDirectory(java.io.File)</CODE></A></I>
6255 <P>
6256 <DD><DL>
6257 </DL>
6258 </DD>
6259 <DD><DL>
6260 </DL>
6261 </DD>
6262 </DL>
6263 <HR>
6264
6265 <A NAME="getTemporaryDirectory()"><!-- --></A><H3>
6266 getTemporaryDirectory</H3>
6267 <PRE>
6268 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getTemporaryDirectory</B>()</PRE>
6269 <DL>
6270 <DD>Return the path of a directory to be used as the location of
6271 temporary files.
6272 <p>
6273 This method may be called at any time during the life of the application.
6274 <p>
6275 <P>
6276 <DD><DL>
6277 </DL>
6278 </DD>
6279 <DD><DL>
6280
6281 <DT><B>Returns:</B><DD>The path of a directory to be used as the location of
6282 temporary files.</DL>
6283 </DD>
6284 </DL>
6285 <HR>
6286
6287 <A NAME="setMutexAlignment(int)"><!-- --></A><H3>
6288 setMutexAlignment</H3>
6289 <PRE>
6290 public void <B>setMutexAlignment</B>(int&nbsp;mutexAlignment)</PRE>
6291 <DL>
6292 <DD>Set the mutex alignment, in bytes.
6293 <p>
6294 It is sometimes advantageous to align mutexes on specific byte
6295 boundaries in order to minimize cache line collisions. This method
6296 specifies an alignment for mutexes allocated by Berkeley DB.
6297 <p>
6298 The database environment's mutex alignment may also be set using the environment's
6299 DB_CONFIG file. The syntax of the entry in that file is a single line
6300 with the string "mutex_set_align", one or more whitespace characters, and the mutex alignment in bytes.
6301 Because the DB_CONFIG file is read when the database environment is
6302 opened, it will silently overrule configuration done before that time.
6303 <p>
6304 This method configures a database environment, including all threads
6305 of control accessing the database environment, not only the operations
6306 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
6307 <p>
6308 This method may not be called after the
6309 environment has been opened.
6310 If joining an existing database environment, any
6311 information specified to this method will be ignored.
6312 <P>
6313 <DD><DL>
6314 </DL>
6315 </DD>
6316 <DD><DL>
6317 <DT><B>Parameters:</B><DD><CODE>mutexAlignment</CODE> - mutex alignment, in bytes. The mutex alignment must be a power-of-two.</DL>
6318 </DD>
6319 </DL>
6320 <HR>
6321
6322 <A NAME="getMutexAlignment()"><!-- --></A><H3>
6323 getMutexAlignment</H3>
6324 <PRE>
6325 public int <B>getMutexAlignment</B>()</PRE>
6326 <DL>
6327 <DD>Return the mutex alignment, in bytes.
6328 <p>
6329 This method may be called at any time during the life of the application.
6330 <p>
6331 <P>
6332 <DD><DL>
6333 </DL>
6334 </DD>
6335 <DD><DL>
6336
6337 <DT><B>Returns:</B><DD>The mutex alignment, in bytes.</DL>
6338 </DD>
6339 </DL>
6340 <HR>
6341
6342 <A NAME="setMutexIncrement(int)"><!-- --></A><H3>
6343 setMutexIncrement</H3>
6344 <PRE>
6345 public void <B>setMutexIncrement</B>(int&nbsp;mutexIncrement)</PRE>
6346 <DL>
6347 <DD>Increase the number of mutexes to allocate.
6348 <p>
6349 Berkeley DB allocates a default number of mutexes based on the initial
6350 configuration of the database environment. That default calculation may
6351 be too small if the application has an unusual need for mutexes (for
6352 example, if the application opens an unexpectedly large number of
6353 databases) or too large (if the application is trying to minimize its
6354 memory footprint). This method configure the number of additional
6355 mutexes to allocate.
6356 <p>
6357 Calling this method discards any value previously
6358 set using the <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMaxMutexes(int)"><CODE>setMaxMutexes(int)</CODE></A> method.
6359 <p>
6360 This method configures a database environment, including all threads
6361 of control accessing the database environment, not only the operations
6362 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
6363 <p>
6364 This method may not be called after the
6365 environment has been opened.
6366 If joining an existing database environment, any
6367 information specified to this method will be ignored.
6368 <p>
6369 <P>
6370 <DD><DL>
6371 </DL>
6372 </DD>
6373 <DD><DL>
6374 <DT><B>Parameters:</B><DD><CODE>mutexIncrement</CODE> - The number of additional mutexes to allocate.</DL>
6375 </DD>
6376 </DL>
6377 <HR>
6378
6379 <A NAME="getMutexIncrement()"><!-- --></A><H3>
6380 getMutexIncrement</H3>
6381 <PRE>
6382 public int <B>getMutexIncrement</B>()</PRE>
6383 <DL>
6384 <DD>Return the number of additional mutexes to allocate.
6385 <p>
6386 This method may be called at any time during the life of the application.
6387 <p>
6388 <P>
6389 <DD><DL>
6390 </DL>
6391 </DD>
6392 <DD><DL>
6393
6394 <DT><B>Returns:</B><DD>The number of additional mutexes to allocate.</DL>
6395 </DD>
6396 </DL>
6397 <HR>
6398
6399 <A NAME="setInitialMutexes(int)"><!-- --></A><H3>
6400 setInitialMutexes</H3>
6401 <PRE>
6402 public void <B>setInitialMutexes</B>(int&nbsp;initMutexes)</PRE>
6403 <DL>
6404 <DD>Set the number of mutexes to allocate when an environment is created.
6405 <p>
6406 Berkeley DB allocates a default number of mutexes based on the initial
6407 configuration of the database environment. That default calculation may
6408 be too small if the application has an unusual need for mutexes (for
6409 example, if the application opens an unexpectedly large number of
6410 databases) or too large (if the application is trying to minimize its
6411 memory footprint). This method configure the number of initial
6412 mutexes to allocate.
6413 <p>
6414 Calling this method discards any value previously
6415 set using the <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setInitialMutexes(int)"><CODE>setInitialMutexes(int)</CODE></A> method.
6416 <p>
6417 This method configures a database environment, including all threads
6418 of control accessing the database environment, not only the operations
6419 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
6420 <p>
6421 This method may not be called after the environment has been opened.
6422 If joining an existing database environment, any information specified
6423 to this method will be ignored.
6424 <p>
6425 <P>
6426 <DD><DL>
6427 </DL>
6428 </DD>
6429 <DD><DL>
6430 <DT><B>Parameters:</B><DD><CODE>initMutexes</CODE> - The number of mutexes allocated when an environment is created.</DL>
6431 </DD>
6432 </DL>
6433 <HR>
6434
6435 <A NAME="getInitialMutexes()"><!-- --></A><H3>
6436 getInitialMutexes</H3>
6437 <PRE>
6438 public int <B>getInitialMutexes</B>()</PRE>
6439 <DL>
6440 <DD>Return the number of mutexes allocated when an environment is created.
6441 <p>
6442 This method may be called at any time during the life of the application.
6443 <p>
6444 <P>
6445 <DD><DL>
6446 </DL>
6447 </DD>
6448 <DD><DL>
6449
6450 <DT><B>Returns:</B><DD>The number of mutexes allocated when an environment is created.</DL>
6451 </DD>
6452 </DL>
6453 <HR>
6454
6455 <A NAME="setMaxMutexes(int)"><!-- --></A><H3>
6456 setMaxMutexes</H3>
6457 <PRE>
6458 public void <B>setMaxMutexes</B>(int&nbsp;maxMutexes)</PRE>
6459 <DL>
6460 <DD>Set the total number of mutexes to allocate.
6461 <p>
6462 Berkeley DB allocates a default number of mutexes based on the initial
6463 configuration of the database environment. That default calculation may
6464 be too small if the application has an unusual need for mutexes (for
6465 example, if the application opens an unexpectedly large number of
6466 databases) or too large (if the application is trying to minimize its
6467 memory footprint). This method is used to specify an
6468 absolute number of mutexes to allocate.
6469 <p>
6470 Calling this method discards any value previously
6471 set using the <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMutexIncrement(int)"><CODE>setMutexIncrement(int)</CODE></A> method.
6472 <p>
6473 The database environment's total number of mutexes may also be set using
6474 the environment's <b>DB_CONFIG</b> file. The syntax of the entry in that
6475 file is a single line with the string "mutex_set_max", one or more
6476 whitespace characters, and the total number of mutexes. Because the
6477 <b>DB_CONFIG</b> file is read when the database environment is opened, it
6478 will silently overrule configuration done before that time.
6479 <p>
6480 This method configures a database environment, including all threads
6481 of control accessing the database environment, not only the operations
6482 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
6483 <p>
6484 This method may not be called after the
6485 environment has been opened.
6486 If joining an existing database environment, any
6487 information specified to this method will be ignored.
6488 <p>
6489 <P>
6490 <DD><DL>
6491 </DL>
6492 </DD>
6493 <DD><DL>
6494 <DT><B>Parameters:</B><DD><CODE>maxMutexes</CODE> - The absolute number of mutexes to allocate.</DL>
6495 </DD>
6496 </DL>
6497 <HR>
6498
6499 <A NAME="getMaxMutexes()"><!-- --></A><H3>
6500 getMaxMutexes</H3>
6501 <PRE>
6502 public int <B>getMaxMutexes</B>()</PRE>
6503 <DL>
6504 <DD>Return the total number of mutexes allocated.
6505 <p>
6506 This method may be called at any time during the life of the application.
6507 <p>
6508 <P>
6509 <DD><DL>
6510 </DL>
6511 </DD>
6512 <DD><DL>
6513
6514 <DT><B>Returns:</B><DD>The total number of mutexes allocated.</DL>
6515 </DD>
6516 </DL>
6517 <HR>
6518
6519 <A NAME="setMutexTestAndSetSpins(int)"><!-- --></A><H3>
6520 setMutexTestAndSetSpins</H3>
6521 <PRE>
6522 public void <B>setMutexTestAndSetSpins</B>(int&nbsp;mutexTestAndSetSpins)</PRE>
6523 <DL>
6524 <DD>Specify the number of times that test-and-set mutexes should spin
6525 without blocking. The value defaults to 1 on uniprocessor systems and
6526 to 50 times the number of processors on multiprocessor systems.
6527 <p>
6528 The database environment's test-and-set spin count may also be set using the environment's
6529 DB_CONFIG file. The syntax of the entry in that file is a single line
6530 with the string "set_tas_spins", one or more whitespace characters, and the number of spins.
6531 Because the DB_CONFIG file is read when the database environment is
6532 opened, it will silently overrule configuration done before that time.
6533 <p>
6534 This method configures only operations performed using a single a
6535 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle, not an entire database environment.
6536 <p>
6537 This method may be called at any time during the life of the application.
6538 <p>
6539 <P>
6540 <DD><DL>
6541 </DL>
6542 </DD>
6543 <DD><DL>
6544 <DT><B>Parameters:</B><DD><CODE>mutexTestAndSetSpins</CODE> - The number of spins test-and-set mutexes should execute before blocking.</DL>
6545 </DD>
6546 </DL>
6547 <HR>
6548
6549 <A NAME="getMutexTestAndSetSpins()"><!-- --></A><H3>
6550 getMutexTestAndSetSpins</H3>
6551 <PRE>
6552 public int <B>getMutexTestAndSetSpins</B>()</PRE>
6553 <DL>
6554 <DD>Return the test-and-set spin count.
6555 <p>
6556 This method may be called at any time during the life of the application.
6557 <p>
6558 <P>
6559 <DD><DL>
6560 </DL>
6561 </DD>
6562 <DD><DL>
6563
6564 <DT><B>Returns:</B><DD>The test-and-set spin count.</DL>
6565 </DD>
6566 </DL>
6567 <HR>
6568
6569 <A NAME="setReplicationNumSites(int)"><!-- --></A><H3>
6570 setReplicationNumSites</H3>
6571 <PRE>
6572 public void <B>setReplicationNumSites</B>(int&nbsp;replicationNumSites)</PRE>
6573 <DL>
6574 <DD>Set the total number of sites the replication group is configured for.
6575 <p>
6576 This method cannot be called by replication manager applications.
6577 <p>
6578 Note that this value is not automatically populated via a call to
6579 <A HREF="../../../com/sleepycat/db/Environment.html#getConfig()"><CODE>Environment.getConfig()</CODE></A>, explicit initialization is required for all objects.
6580 <P>
6581 <DD><DL>
6582 </DL>
6583 </DD>
6584 <DD><DL>
6585 <DT><B>Parameters:</B><DD><CODE>replicationNumSites</CODE> - The total number of sites in the replication group.</DL>
6586 </DD>
6587 </DL>
6588 <HR>
6589
6590 <A NAME="getReplicationNumSites()"><!-- --></A><H3>
6591 getReplicationNumSites</H3>
6592 <PRE>
6593 public int <B>getReplicationNumSites</B>()</PRE>
6594 <DL>
6595 <DD>Get the total number of sites configured in this EnvironmentConfig object.
6596 <p>
6597 This method cannot be called by replication manager applications.
6598 <p>
6599 Note that most applications will be looking for the <A HREF="../../../com/sleepycat/db/Environment.html#getReplicationNumSites()"><CODE>Environment.getReplicationNumSites()</CODE></A> method
6600 which returns the number of sites in the replication group as defined by
6601 the underlying environment object.
6602 <P>
6603 <DD><DL>
6604 </DL>
6605 </DD>
6606 <DD><DL>
6607
6608 <DT><B>Returns:</B><DD>The total number of sites configured in the EnvironmentConfig object.</DL>
6609 </DD>
6610 </DL>
6611 <HR>
6612
6613 <A NAME="setReplicationPriority(int)"><!-- --></A><H3>
6614 setReplicationPriority</H3>
6615 <PRE>
6616 public void <B>setReplicationPriority</B>(int&nbsp;replicationPriority)</PRE>
6617 <DL>
6618 <DD>Set the current environment's priority. Priority is used to determine
6619 which replicated site will be selected as master when an election occurs.
6620 <p>
6621 <P>
6622 <DD><DL>
6623 </DL>
6624 </DD>
6625 <DD><DL>
6626 <DT><B>Parameters:</B><DD><CODE>replicationPriority</CODE> - The database environment priority.</DL>
6627 </DD>
6628 </DL>
6629 <HR>
6630
6631 <A NAME="getReplicationPriority()"><!-- --></A><H3>
6632 getReplicationPriority</H3>
6633 <PRE>
6634 public int <B>getReplicationPriority</B>()</PRE>
6635 <DL>
6636 <DD>Get the current environment's priority. Priority is used to determine
6637 which replicated site will be selected as master when an election occurs.
6638 <p>
6639 <P>
6640 <DD><DL>
6641 </DL>
6642 </DD>
6643 <DD><DL>
6644
6645 <DT><B>Returns:</B><DD>The database environment priority.</DL>
6646 </DD>
6647 </DL>
6648 <HR>
6649
6650 <A NAME="setTestAndSetSpins(int)"><!-- --></A><H3>
6651 setTestAndSetSpins</H3>
6652 <PRE>
6653 public void <B>setTestAndSetSpins</B>(int&nbsp;mutexTestAndSetSpins)</PRE>
6654 <DL>
6655 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMutexTestAndSetSpins(int)"><CODE>setMutexTestAndSetSpins(int)</CODE></A></I>
6656 <P>
6657 <DD>Set the number of times test-and-set mutexes should spin before
6658 blocking.
6659 <p>
6660 The value defaults to 1 on uniprocessor systems and to 50 times the
6661 number of processors on multiprocessor systems.
6662 <p>
6663 This method configures only operations performed using a single a
6664 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle, not an entire database environment.
6665 <p>
6666 This method may be called at any time during the life of the application.
6667 <p>
6668 <P>
6669 <DD><DL>
6670 </DL>
6671 </DD>
6672 <DD><DL>
6673 <DT><B>Parameters:</B><DD><CODE>mutexTestAndSetSpins</CODE> - The number of times test-and-set mutexes should spin before blocking.
6674 <p></DL>
6675 </DD>
6676 </DL>
6677 <HR>
6678
6679 <A NAME="getTestAndSetSpins()"><!-- --></A><H3>
6680 getTestAndSetSpins</H3>
6681 <PRE>
6682 public int <B>getTestAndSetSpins</B>()</PRE>
6683 <DL>
6684 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getMutexTestAndSetSpins()"><CODE>getMutexTestAndSetSpins()</CODE></A></I>
6685 <P>
6686 <DD>Return the number of times test-and-set mutexes should spin before
6687 blocking.
6688 <p>
6689 This method may be called at any time during the life of the application.
6690 <p>
6691 <P>
6692 <DD><DL>
6693 </DL>
6694 </DD>
6695 <DD><DL>
6696
6697 <DT><B>Returns:</B><DD>The number of times test-and-set mutexes should spin before
6698 blocking.
6699 <p></DL>
6700 </DD>
6701 </DL>
6702 <HR>
6703
6704 <A NAME="setThreaded(boolean)"><!-- --></A><H3>
6705 setThreaded</H3>
6706 <PRE>
6707 public void <B>setThreaded</B>(boolean&nbsp;threaded)</PRE>
6708 <DL>
6709 <DD>Configure the handle to be <em>free-threaded</em>; that is, usable
6710 by multiple threads within a single address space.
6711 <p>
6712 This is the default; threading is always assumed in Java, so no special
6713 configuration is required.
6714 <p>
6715 <P>
6716 <DD><DL>
6717 </DL>
6718 </DD>
6719 <DD><DL>
6720 <DT><B>Parameters:</B><DD><CODE>threaded</CODE> - If true, configure the handle to be <em>free-threaded</em>.</DL>
6721 </DD>
6722 </DL>
6723 <HR>
6724
6725 <A NAME="getThreaded()"><!-- --></A><H3>
6726 getThreaded</H3>
6727 <PRE>
6728 public boolean <B>getThreaded</B>()</PRE>
6729 <DL>
6730 <DD>Return true if the handle is configured to be <em>free-threaded</em>.
6731 <p>
6732 This method may be called at any time during the life of the application.
6733 <p>
6734 <P>
6735 <DD><DL>
6736 </DL>
6737 </DD>
6738 <DD><DL>
6739
6740 <DT><B>Returns:</B><DD>True if the handle is configured to be <em>free-threaded</em>.</DL>
6741 </DD>
6742 </DL>
6743 <HR>
6744
6745 <A NAME="setTransactional(boolean)"><!-- --></A><H3>
6746 setTransactional</H3>
6747 <PRE>
6748 public void <B>setTransactional</B>(boolean&nbsp;transactional)</PRE>
6749 <DL>
6750 <DD>Configure the database environment for transactions.
6751 <p>
6752 This configuration option should be used when transactional guarantees
6753 such as atomicity of multiple operations and durability are important.
6754 <p>
6755 <P>
6756 <DD><DL>
6757 </DL>
6758 </DD>
6759 <DD><DL>
6760 <DT><B>Parameters:</B><DD><CODE>transactional</CODE> - If true, configure the database environment for transactions.</DL>
6761 </DD>
6762 </DL>
6763 <HR>
6764
6765 <A NAME="getTransactional()"><!-- --></A><H3>
6766 getTransactional</H3>
6767 <PRE>
6768 public boolean <B>getTransactional</B>()</PRE>
6769 <DL>
6770 <DD>Return true if the database environment is configured for transactions.
6771 <p>
6772 This method may be called at any time during the life of the application.
6773 <p>
6774 <P>
6775 <DD><DL>
6776 </DL>
6777 </DD>
6778 <DD><DL>
6779
6780 <DT><B>Returns:</B><DD>True if the database environment is configured for transactions.</DL>
6781 </DD>
6782 </DL>
6783 <HR>
6784
6785 <A NAME="setTxnNoSync(boolean)"><!-- --></A><H3>
6786 setTxnNoSync</H3>
6787 <PRE>
6788 public void <B>setTxnNoSync</B>(boolean&nbsp;txnNoSync)</PRE>
6789 <DL>
6790 <DD>Configure the system to not write or synchronously flush the log
6791 on transaction commit.
6792 <p>
6793 This means that transactions exhibit the ACI (atomicity, consistency,
6794 and isolation) properties, but not D (durability); that is, database
6795 integrity will be maintained, but if the application or system fails,
6796 it is possible some number of the most recently committed transactions
6797 may be undone during recovery. The number of transactions at risk is
6798 governed by how many log updates can fit into the log buffer, how often
6799 the operating system flushes dirty buffers to disk, and how often the
6800 log is checkpointed.
6801 <p>
6802 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
6803 any other library handles opened within the scope of that handle).
6804 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
6805 handles opened in the database environment must either call this method
6806 or the configuration should be specified in the database environment's
6807 DB_CONFIG configuration file.
6808 <p>
6809 This method may be called at any time during the life of the application.
6810 <p>
6811 <P>
6812 <DD><DL>
6813 </DL>
6814 </DD>
6815 <DD><DL>
6816 <DT><B>Parameters:</B><DD><CODE>txnNoSync</CODE> - If true, configure the system to not write or synchronously flush
6817 the log on transaction commit.</DL>
6818 </DD>
6819 </DL>
6820 <HR>
6821
6822 <A NAME="getTxnNoSync()"><!-- --></A><H3>
6823 getTxnNoSync</H3>
6824 <PRE>
6825 public boolean <B>getTxnNoSync</B>()</PRE>
6826 <DL>
6827 <DD>Return true if the system has been configured to not write or synchronously
6828 flush the log on transaction commit.
6829 <p>
6830 This method may be called at any time during the life of the application.
6831 <p>
6832 <P>
6833 <DD><DL>
6834 </DL>
6835 </DD>
6836 <DD><DL>
6837
6838 <DT><B>Returns:</B><DD>True if the system has been configured to not write or synchronously
6839 flush the log on transaction commit.</DL>
6840 </DD>
6841 </DL>
6842 <HR>
6843
6844 <A NAME="setTxnNoWait(boolean)"><!-- --></A><H3>
6845 setTxnNoWait</H3>
6846 <PRE>
6847 public void <B>setTxnNoWait</B>(boolean&nbsp;txnNoWait)</PRE>
6848 <DL>
6849 <DD>If a lock is unavailable for any Berkeley DB operation performed in the
6850 context of a transaction, cause the operation to throw <A HREF="../../../com/sleepycat/db/LockNotGrantedException.html" title="class in com.sleepycat.db"><CODE>LockNotGrantedException</CODE></A> without waiting for the lock.
6851 <p>
6852 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
6853 any other library handles opened within the scope of that handle).
6854 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
6855 handles opened in the database environment must either call this method
6856 or the configuration should be specified in the database environment's
6857 DB_CONFIG configuration file.
6858 <p>
6859 This method may be called at any time during the life of the application.
6860 <p>
6861 <P>
6862 <DD><DL>
6863 </DL>
6864 </DD>
6865 <DD><DL>
6866 <DT><B>Parameters:</B><DD><CODE>txnNoWait</CODE> - If true, configure transactions to not wait for locks by default.</DL>
6867 </DD>
6868 </DL>
6869 <HR>
6870
6871 <A NAME="getTxnNoWait()"><!-- --></A><H3>
6872 getTxnNoWait</H3>
6873 <PRE>
6874 public boolean <B>getTxnNoWait</B>()</PRE>
6875 <DL>
6876 <DD>Return true if the transactions have been configured to not wait for locks by default.
6877 <p>
6878 This method may be called at any time during the life of the application.
6879 <p>
6880 <P>
6881 <DD><DL>
6882 </DL>
6883 </DD>
6884 <DD><DL>
6885
6886 <DT><B>Returns:</B><DD>True if the transactions have been configured to not wait for locks by default.</DL>
6887 </DD>
6888 </DL>
6889 <HR>
6890
6891 <A NAME="setTxnNotDurable(boolean)"><!-- --></A><H3>
6892 setTxnNotDurable</H3>
6893 <PRE>
6894 public void <B>setTxnNotDurable</B>(boolean&nbsp;txnNotDurable)</PRE>
6895 <DL>
6896 <DD>Configure the system to not write log records.
6897 <p>
6898 This means that transactions exhibit the ACI (atomicity, consistency,
6899 and isolation) properties, but not D (durability); that is, database
6900 integrity will be maintained, but if the application or system
6901 fails, integrity will not persist. All database files must be
6902 verified and/or restored from backup after a failure. In order to
6903 ensure integrity after application shut down, all database handles
6904 must be closed without specifying noSync, or all database changes
6905 must be flushed from the database environment cache using the
6906 <A HREF="../../../com/sleepycat/db/Environment.html#checkpoint(com.sleepycat.db.CheckpointConfig)"><CODE>Environment.checkpoint</CODE></A>.
6907 <p>
6908 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
6909 any other library handles opened within the scope of that handle).
6910 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
6911 handles opened in the database environment must either call this method
6912 or the configuration should be specified in the database environment's
6913 DB_CONFIG configuration file.
6914 <p>
6915 This method may be called at any time during the life of the application.
6916 <p>
6917 <P>
6918 <DD><DL>
6919 </DL>
6920 </DD>
6921 <DD><DL>
6922 <DT><B>Parameters:</B><DD><CODE>txnNotDurable</CODE> - If true, configure the system to not write log records.</DL>
6923 </DD>
6924 </DL>
6925 <HR>
6926
6927 <A NAME="getTxnNotDurable()"><!-- --></A><H3>
6928 getTxnNotDurable</H3>
6929 <PRE>
6930 public boolean <B>getTxnNotDurable</B>()</PRE>
6931 <DL>
6932 <DD>Return true if the system has been configured to not write log records.
6933 <p>
6934 This method may be called at any time during the life of the application.
6935 <p>
6936 <P>
6937 <DD><DL>
6938 </DL>
6939 </DD>
6940 <DD><DL>
6941
6942 <DT><B>Returns:</B><DD>True if the system has been configured to not write log records.</DL>
6943 </DD>
6944 </DL>
6945 <HR>
6946
6947 <A NAME="setTxnSnapshot(boolean)"><!-- --></A><H3>
6948 setTxnSnapshot</H3>
6949 <PRE>
6950 public void <B>setTxnSnapshot</B>(boolean&nbsp;txnSnapshot)</PRE>
6951 <DL>
6952 <DD>Configure the database environment to run transactions at snapshot
6953 isolation by default. See <A HREF="../../../com/sleepycat/db/TransactionConfig.html#setSnapshot(boolean)"><CODE>TransactionConfig.setSnapshot(boolean)</CODE></A> for more
6954 information.
6955 <p>
6956 This method may be called at any time during the life of the application.
6957 <p>
6958 <P>
6959 <DD><DL>
6960 </DL>
6961 </DD>
6962 <DD><DL>
6963 <DT><B>Parameters:</B><DD><CODE>txnSnapshot</CODE> - If true, configure the system to default to snapshot isolation.</DL>
6964 </DD>
6965 </DL>
6966 <HR>
6967
6968 <A NAME="getTxnSnapshot()"><!-- --></A><H3>
6969 getTxnSnapshot</H3>
6970 <PRE>
6971 public boolean <B>getTxnSnapshot</B>()</PRE>
6972 <DL>
6973 <DD>Return true if the handle is configured to run all transactions at snapshot
6974 isolation.
6975 <p>
6976 This method may be called at any time during the life of the application.
6977 <p>
6978 <P>
6979 <DD><DL>
6980 </DL>
6981 </DD>
6982 <DD><DL>
6983
6984 <DT><B>Returns:</B><DD>True if the handle is configured to run all transactions at snapshot
6985 isolation.</DL>
6986 </DD>
6987 </DL>
6988 <HR>
6989
6990 <A NAME="setTxnMaxActive(int)"><!-- --></A><H3>
6991 setTxnMaxActive</H3>
6992 <PRE>
6993 public void <B>setTxnMaxActive</B>(int&nbsp;txnMaxActive)</PRE>
6994 <DL>
6995 <DD>Configure the database environment to support at least txnMaxActive
6996 active transactions.
6997 <p>
6998 This value bounds the size of the memory allocated for transactions.
6999 Child transactions are counted as active until they either commit
7000 or abort.
7001 <p>
7002 When all of the memory available in the database environment for
7003 transactions is in use, calls to <A HREF="../../../com/sleepycat/db/Environment.html#beginTransaction(com.sleepycat.db.Transaction, com.sleepycat.db.TransactionConfig)"><CODE>Environment.beginTransaction</CODE></A>
7004 will fail (until some active transactions complete). If this
7005 interface is never called, the database environment is configured
7006 to support at least 20 active transactions.
7007 <p>
7008 The database environment's number of active transactions may also be set using the environment's
7009 DB_CONFIG file. The syntax of the entry in that file is a single line
7010 with the string "set_tx_max", one or more whitespace characters, and the number of transactions.
7011 Because the DB_CONFIG file is read when the database environment is
7012 opened, it will silently overrule configuration done before that time.
7013 <p>
7014 This method configures a database environment, including all threads
7015 of control accessing the database environment, not only the operations
7016 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
7017 <p>
7018 This method may not be called after the
7019 environment has been opened.
7020 If joining an existing database environment, any
7021 information specified to this method will be ignored.
7022 <p>
7023 <P>
7024 <DD><DL>
7025 </DL>
7026 </DD>
7027 <DD><DL>
7028 <DT><B>Parameters:</B><DD><CODE>txnMaxActive</CODE> - The minimum number of simultaneously active transactions supported
7029 by the database environment.</DL>
7030 </DD>
7031 </DL>
7032 <HR>
7033
7034 <A NAME="getTxnMaxActive()"><!-- --></A><H3>
7035 getTxnMaxActive</H3>
7036 <PRE>
7037 public int <B>getTxnMaxActive</B>()</PRE>
7038 <DL>
7039 <DD>Return the minimum number of simultaneously active transactions supported
7040 by the database environment.
7041 <p>
7042 This method may be called at any time during the life of the application.
7043 <p>
7044 <P>
7045 <DD><DL>
7046 </DL>
7047 </DD>
7048 <DD><DL>
7049
7050 <DT><B>Returns:</B><DD>The minimum number of simultaneously active transactions supported
7051 by the database environment.</DL>
7052 </DD>
7053 </DL>
7054 <HR>
7055
7056 <A NAME="setTxnTimeout(long)"><!-- --></A><H3>
7057 setTxnTimeout</H3>
7058 <PRE>
7059 public void <B>setTxnTimeout</B>(long&nbsp;txnTimeout)</PRE>
7060 <DL>
7061 <DD>Set the timeout value for the database environment
7062 transactions.
7063 <p>
7064 Transaction timeouts are checked whenever a thread of control blocks on
7065 a lock or when deadlock detection is performed. The lock is one
7066 requested on behalf of a transaction, normally by the database access
7067 methods underlying the application.
7068 As timeouts are only checked when the lock request first blocks or when
7069 deadlock detection is performed, the accuracy of the timeout depends on
7070 how often deadlock detection is performed.
7071 <p>
7072 Timeout values specified for the database environment may be overridden
7073 on a
7074 per-transaction basis by <A HREF="../../../com/sleepycat/db/Transaction.html#setTxnTimeout(long)"><CODE>Transaction.setTxnTimeout</CODE></A>.
7075 <p>
7076 This method configures a database environment, including all threads
7077 of control accessing the database environment, not only the operations
7078 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
7079 <p>
7080 This method may be called at any time during the life of the application.
7081 <p>
7082 <P>
7083 <DD><DL>
7084 </DL>
7085 </DD>
7086 <DD><DL>
7087 <DT><B>Parameters:</B><DD><CODE>txnTimeout</CODE> - The timeout value, specified as an unsigned 32-bit number of
7088 microseconds, limiting the maximum timeout to roughly 71 minutes.
7089 <p>
7090 <p>
7091 <DT><B>Throws:</B>
7092 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified.
7093 <p>
7094 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
7095 </DD>
7096 </DL>
7097 <HR>
7098
7099 <A NAME="getTxnTimeout()"><!-- --></A><H3>
7100 getTxnTimeout</H3>
7101 <PRE>
7102 public long <B>getTxnTimeout</B>()</PRE>
7103 <DL>
7104 <DD>Return the database environment transaction timeout value, in
7105 microseconds; a timeout of 0 means no timeout is set.
7106 <p>
7107 This method may be called at any time during the life of the application.
7108 <p>
7109 <P>
7110 <DD><DL>
7111 </DL>
7112 </DD>
7113 <DD><DL>
7114
7115 <DT><B>Returns:</B><DD>The database environment transaction timeout value, in
7116 microseconds; a timeout of 0 means no timeout is set.</DL>
7117 </DD>
7118 </DL>
7119 <HR>
7120
7121 <A NAME="setTxnTimestamp(java.util.Date)"><!-- --></A><H3>
7122 setTxnTimestamp</H3>
7123 <PRE>
7124 public void <B>setTxnTimestamp</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</A>&nbsp;txnTimestamp)</PRE>
7125 <DL>
7126 <DD>Recover to the specified time rather than to the most current
7127 possible date.
7128 <p>
7129 Once a database environment has been upgraded to a new version of
7130 Berkeley DB involving a log format change, it is no longer possible
7131 to recover to a specific time before that upgrade.
7132 <p>
7133 This method configures only operations performed using a single a
7134 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle, not an entire database environment.
7135 <p>
7136 This method may not be called after the
7137 environment has been opened.
7138 <p>
7139 <P>
7140 <DD><DL>
7141 </DL>
7142 </DD>
7143 <DD><DL>
7144 <DT><B>Parameters:</B><DD><CODE>txnTimestamp</CODE> - The recovery timestamp.
7145 Only the seconds (not the milliseconds) of the timestamp are used.</DL>
7146 </DD>
7147 </DL>
7148 <HR>
7149
7150 <A NAME="getTxnTimestamp()"><!-- --></A><H3>
7151 getTxnTimestamp</H3>
7152 <PRE>
7153 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</A> <B>getTxnTimestamp</B>()</PRE>
7154 <DL>
7155 <DD>Return the time to which recovery will be done, or 0 if recovery will
7156 be done to the most current possible date.
7157 <p>
7158 <P>
7159 <DD><DL>
7160 </DL>
7161 </DD>
7162 <DD><DL>
7163
7164 <DT><B>Returns:</B><DD>The time to which recovery will be done, or 0 if recovery will be
7165 done to the most current possible date.</DL>
7166 </DD>
7167 </DL>
7168 <HR>
7169
7170 <A NAME="setTxnWriteNoSync(boolean)"><!-- --></A><H3>
7171 setTxnWriteNoSync</H3>
7172 <PRE>
7173 public void <B>setTxnWriteNoSync</B>(boolean&nbsp;txnWriteNoSync)</PRE>
7174 <DL>
7175 <DD>Configure the system to write, but not synchronously flush, the log on
7176 transaction commit.
7177 <p>
7178 This means that transactions exhibit the ACI (atomicity, consistency,
7179 and isolation) properties, but not D (durability); that is, database
7180 integrity will be maintained, but if the system fails, it is possible
7181 some number of the most recently committed transactions may be undone
7182 during recovery. The number of transactions at risk is governed by how
7183 often the system flushes dirty buffers to disk and how often the log is
7184 checkpointed.
7185 <p>
7186 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
7187 any other library handles opened within the scope of that handle).
7188 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
7189 handles opened in the database environment must either call this method
7190 or the configuration should be specified in the database environment's
7191 DB_CONFIG configuration file.
7192 <p>
7193 This method may be called at any time during the life of the application.
7194 <p>
7195 <P>
7196 <DD><DL>
7197 </DL>
7198 </DD>
7199 <DD><DL>
7200 <DT><B>Parameters:</B><DD><CODE>txnWriteNoSync</CODE> - If true, configure the system to write, but not synchronously flush,
7201 the log on transaction commit.</DL>
7202 </DD>
7203 </DL>
7204 <HR>
7205
7206 <A NAME="getTxnWriteNoSync()"><!-- --></A><H3>
7207 getTxnWriteNoSync</H3>
7208 <PRE>
7209 public boolean <B>getTxnWriteNoSync</B>()</PRE>
7210 <DL>
7211 <DD>Return true if the system has been configured to write, but not synchronously
7212 flush, the log on transaction commit.
7213 <p>
7214 This method may be called at any time during the life of the application.
7215 <p>
7216 <P>
7217 <DD><DL>
7218 </DL>
7219 </DD>
7220 <DD><DL>
7221
7222 <DT><B>Returns:</B><DD>True if the system has been configured to write, but not synchronously
7223 flush, the log on transaction commit.</DL>
7224 </DD>
7225 </DL>
7226 <HR>
7227
7228 <A NAME="setUseEnvironment(boolean)"><!-- --></A><H3>
7229 setUseEnvironment</H3>
7230 <PRE>
7231 public void <B>setUseEnvironment</B>(boolean&nbsp;useEnvironment)</PRE>
7232 <DL>
7233 <DD>Configure the database environment to accept information from the
7234 process environment when naming files, regardless of the status of
7235 the process.
7236 <p>
7237 Because permitting users to specify which files are used can create
7238 security problems, environment information will be used in file
7239 naming for all users only if configured to do so.
7240 <p>
7241 <P>
7242 <DD><DL>
7243 </DL>
7244 </DD>
7245 <DD><DL>
7246 <DT><B>Parameters:</B><DD><CODE>useEnvironment</CODE> - If true, configure the database environment to accept information
7247 from the process environment when naming files.</DL>
7248 </DD>
7249 </DL>
7250 <HR>
7251
7252 <A NAME="getUseEnvironment()"><!-- --></A><H3>
7253 getUseEnvironment</H3>
7254 <PRE>
7255 public boolean <B>getUseEnvironment</B>()</PRE>
7256 <DL>
7257 <DD>Return true if the database environment is configured to accept information
7258 from the process environment when naming files.
7259 <p>
7260 This method may be called at any time during the life of the application.
7261 <p>
7262 <P>
7263 <DD><DL>
7264 </DL>
7265 </DD>
7266 <DD><DL>
7267
7268 <DT><B>Returns:</B><DD>True if the database environment is configured to accept information
7269 from the process environment when naming files.</DL>
7270 </DD>
7271 </DL>
7272 <HR>
7273
7274 <A NAME="setUseEnvironmentRoot(boolean)"><!-- --></A><H3>
7275 setUseEnvironmentRoot</H3>
7276 <PRE>
7277 public void <B>setUseEnvironmentRoot</B>(boolean&nbsp;useEnvironmentRoot)</PRE>
7278 <DL>
7279 <DD>Configure the database environment to accept information from the
7280 process environment when naming files, if the process has
7281 appropriate permissions (for example, users with a user-ID of 0 on
7282 UNIX systems).
7283 <p>
7284 Because permitting users to specify which files are used can create
7285 security problems, environment information will be used in file
7286 naming for all users only if configured to do so.
7287 <p>
7288 <P>
7289 <DD><DL>
7290 </DL>
7291 </DD>
7292 <DD><DL>
7293 <DT><B>Parameters:</B><DD><CODE>useEnvironmentRoot</CODE> - If true, configure the database environment to accept information
7294 from the process environment when naming files if the process has
7295 appropriate permissions.</DL>
7296 </DD>
7297 </DL>
7298 <HR>
7299
7300 <A NAME="getUseEnvironmentRoot()"><!-- --></A><H3>
7301 getUseEnvironmentRoot</H3>
7302 <PRE>
7303 public boolean <B>getUseEnvironmentRoot</B>()</PRE>
7304 <DL>
7305 <DD>Return true if the database environment is configured to accept information
7306 from the process environment when naming files if the process has
7307 appropriate permissions.
7308 <p>
7309 This method may be called at any time during the life of the application.
7310 <p>
7311 <P>
7312 <DD><DL>
7313 </DL>
7314 </DD>
7315 <DD><DL>
7316
7317 <DT><B>Returns:</B><DD>True if the database environment is configured to accept information
7318 from the process environment when naming files if the process has
7319 appropriate permissions.</DL>
7320 </DD>
7321 </DL>
7322 <HR>
7323
7324 <A NAME="setVerbose(com.sleepycat.db.VerboseConfig, boolean)"><!-- --></A><H3>
7325 setVerbose</H3>
7326 <PRE>
7327 public void <B>setVerbose</B>(<A HREF="../../../com/sleepycat/db/VerboseConfig.html" title="class in com.sleepycat.db">VerboseConfig</A>&nbsp;flag,
7328 boolean&nbsp;enable)</PRE>
7329 <DL>
7330 <DD>Display verbose information.
7331 <p>
7332 This method may be called at any time during the life of the application.
7333 <p>
7334 <P>
7335 <DD><DL>
7336 </DL>
7337 </DD>
7338 <DD><DL>
7339 <DT><B>Parameters:</B><DD><CODE>flag</CODE> - The type of verbose information being configured.
7340 <p><DD><CODE>enable</CODE> - If true, display additional information.</DL>
7341 </DD>
7342 </DL>
7343 <HR>
7344
7345 <A NAME="getVerbose(com.sleepycat.db.VerboseConfig)"><!-- --></A><H3>
7346 getVerbose</H3>
7347 <PRE>
7348 public boolean <B>getVerbose</B>(<A HREF="../../../com/sleepycat/db/VerboseConfig.html" title="class in com.sleepycat.db">VerboseConfig</A>&nbsp;flag)</PRE>
7349 <DL>
7350 <DD>Return if the database environment is configured to display
7351 a given type of verbose information.
7352 <p>
7353 This method may be called at any time during the life of the application.
7354 <p>
7355 <P>
7356 <DD><DL>
7357 </DL>
7358 </DD>
7359 <DD><DL>
7360 <DT><B>Parameters:</B><DD><CODE>flag</CODE> - The type of verbose information being queried.
7361 <p>
7362 <DT><B>Returns:</B><DD>If the database environment is configured to display additional
7363 information of the specified type.</DL>
7364 </DD>
7365 </DL>
7366 <HR>
7367
7368 <A NAME="setVerboseDeadlock(boolean)"><!-- --></A><H3>
7369 setVerboseDeadlock</H3>
7370 <PRE>
7371 public void <B>setVerboseDeadlock</B>(boolean&nbsp;verboseDeadlock)</PRE>
7372 <DL>
7373 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerbose(com.sleepycat.db.VerboseConfig, boolean)"><CODE>setVerbose(com.sleepycat.db.VerboseConfig, boolean)</CODE></A></I>
7374 <P>
7375 <DD>Display additional information when doing deadlock detection.
7376 <p>
7377 This method may be called at any time during the life of the application.
7378 <p>
7379 <P>
7380 <DD><DL>
7381 </DL>
7382 </DD>
7383 <DD><DL>
7384 <DT><B>Parameters:</B><DD><CODE>verboseDeadlock</CODE> - If true, display additional information when doing deadlock
7385 detection.
7386 <p></DL>
7387 </DD>
7388 </DL>
7389 <HR>
7390
7391 <A NAME="getVerboseDeadlock()"><!-- --></A><H3>
7392 getVerboseDeadlock</H3>
7393 <PRE>
7394 public boolean <B>getVerboseDeadlock</B>()</PRE>
7395 <DL>
7396 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerbose(com.sleepycat.db.VerboseConfig)"><CODE>getVerbose(com.sleepycat.db.VerboseConfig)</CODE></A></I>
7397 <P>
7398 <DD>Return if the database environment is configured to display
7399 additional information when doing deadlock detection.
7400 <p>
7401 This method may be called at any time during the life of the application.
7402 <p>
7403 <P>
7404 <DD><DL>
7405 </DL>
7406 </DD>
7407 <DD><DL>
7408
7409 <DT><B>Returns:</B><DD>If the database environment is configured to display additional
7410 information when doing deadlock detection.
7411 <p></DL>
7412 </DD>
7413 </DL>
7414 <HR>
7415
7416 <A NAME="setVerboseRecovery(boolean)"><!-- --></A><H3>
7417 setVerboseRecovery</H3>
7418 <PRE>
7419 public void <B>setVerboseRecovery</B>(boolean&nbsp;verboseRecovery)</PRE>
7420 <DL>
7421 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerbose(com.sleepycat.db.VerboseConfig, boolean)"><CODE>setVerbose(com.sleepycat.db.VerboseConfig, boolean)</CODE></A></I>
7422 <P>
7423 <DD>Display additional information when performing recovery.
7424 <p>
7425 This method may be called at any time during the life of the application.
7426 <p>
7427 <P>
7428 <DD><DL>
7429 </DL>
7430 </DD>
7431 <DD><DL>
7432 <DT><B>Parameters:</B><DD><CODE>verboseRecovery</CODE> - If true, display additional information when performing recovery.
7433 <p></DL>
7434 </DD>
7435 </DL>
7436 <HR>
7437
7438 <A NAME="getVerboseRecovery()"><!-- --></A><H3>
7439 getVerboseRecovery</H3>
7440 <PRE>
7441 public boolean <B>getVerboseRecovery</B>()</PRE>
7442 <DL>
7443 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerbose(com.sleepycat.db.VerboseConfig)"><CODE>getVerbose(com.sleepycat.db.VerboseConfig)</CODE></A></I>
7444 <P>
7445 <DD>Return if the database environment is configured to display
7446 additional information when performing recovery.
7447 <p>
7448 This method may be called at any time during the life of the application.
7449 <p>
7450 <P>
7451 <DD><DL>
7452 </DL>
7453 </DD>
7454 <DD><DL>
7455
7456 <DT><B>Returns:</B><DD>If the database environment is configured to display additional
7457 information when performing recovery.
7458 <p></DL>
7459 </DD>
7460 </DL>
7461 <HR>
7462
7463 <A NAME="setVerboseRegister(boolean)"><!-- --></A><H3>
7464 setVerboseRegister</H3>
7465 <PRE>
7466 public void <B>setVerboseRegister</B>(boolean&nbsp;verboseRegister)</PRE>
7467 <DL>
7468 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerbose(com.sleepycat.db.VerboseConfig, boolean)"><CODE>setVerbose(com.sleepycat.db.VerboseConfig, boolean)</CODE></A></I>
7469 <P>
7470 <DD>Display additional information concerning support for the
7471 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRegister(boolean)"><CODE>setRegister(boolean)</CODE></A> method.
7472 <p>
7473 This method may be called at any time during the life of the application.
7474 <p>
7475 <P>
7476 <DD><DL>
7477 </DL>
7478 </DD>
7479 <DD><DL>
7480 <DT><B>Parameters:</B><DD><CODE>verboseRegister</CODE> - If true, display additional information concerning support for the
7481 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRegister(boolean)"><CODE>setRegister(boolean)</CODE></A> method
7482 <p></DL>
7483 </DD>
7484 </DL>
7485 <HR>
7486
7487 <A NAME="getVerboseRegister()"><!-- --></A><H3>
7488 getVerboseRegister</H3>
7489 <PRE>
7490 public boolean <B>getVerboseRegister</B>()</PRE>
7491 <DL>
7492 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerbose(com.sleepycat.db.VerboseConfig)"><CODE>getVerbose(com.sleepycat.db.VerboseConfig)</CODE></A></I>
7493 <P>
7494 <DD>Return if the database environment is configured to display
7495 additional information concerning support for the
7496 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRegister(boolean)"><CODE>setRegister(boolean)</CODE></A> method.
7497 <p>
7498 This method may be called at any time during the life of the application.
7499 <p>
7500 <P>
7501 <DD><DL>
7502 </DL>
7503 </DD>
7504 <DD><DL>
7505
7506 <DT><B>Returns:</B><DD>If the database environment is configured to display additional
7507 information concerning support for the
7508 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setRegister(boolean)"><CODE>setRegister(boolean)</CODE></A> method.
7509 <p></DL>
7510 </DD>
7511 </DL>
7512 <HR>
7513
7514 <A NAME="setVerboseReplication(boolean)"><!-- --></A><H3>
7515 setVerboseReplication</H3>
7516 <PRE>
7517 public void <B>setVerboseReplication</B>(boolean&nbsp;verboseReplication)</PRE>
7518 <DL>
7519 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerbose(com.sleepycat.db.VerboseConfig, boolean)"><CODE>setVerbose(com.sleepycat.db.VerboseConfig, boolean)</CODE></A></I>
7520 <P>
7521 <DD>Display additional information when processing replication messages.
7522 <p>
7523 Note, to get complete replication logging when debugging replication
7524 applications, you must also configure and build the Berkeley DB
7525 library with the --enable-diagnostic configuration option as well
7526 as call this method.
7527 <p>
7528 This method may be called at any time during the life of the application.
7529 <p>
7530 <P>
7531 <DD><DL>
7532 </DL>
7533 </DD>
7534 <DD><DL>
7535 <DT><B>Parameters:</B><DD><CODE>verboseReplication</CODE> - If true, display additional information when processing replication
7536 messages.
7537 <p></DL>
7538 </DD>
7539 </DL>
7540 <HR>
7541
7542 <A NAME="getVerboseReplication()"><!-- --></A><H3>
7543 getVerboseReplication</H3>
7544 <PRE>
7545 public boolean <B>getVerboseReplication</B>()</PRE>
7546 <DL>
7547 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerbose(com.sleepycat.db.VerboseConfig)"><CODE>getVerbose(com.sleepycat.db.VerboseConfig)</CODE></A></I>
7548 <P>
7549 <DD>Return if the database environment is configured to display
7550 additional information when processing replication messages.
7551 <p>
7552 This method may be called at any time during the life of the application.
7553 <p>
7554 <P>
7555 <DD><DL>
7556 </DL>
7557 </DD>
7558 <DD><DL>
7559
7560 <DT><B>Returns:</B><DD>If the database environment is configured to display additional
7561 information when processing replication messages.
7562 <p></DL>
7563 </DD>
7564 </DL>
7565 <HR>
7566
7567 <A NAME="setVerboseWaitsFor(boolean)"><!-- --></A><H3>
7568 setVerboseWaitsFor</H3>
7569 <PRE>
7570 public void <B>setVerboseWaitsFor</B>(boolean&nbsp;verboseWaitsFor)</PRE>
7571 <DL>
7572 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerbose(com.sleepycat.db.VerboseConfig, boolean)"><CODE>setVerbose(com.sleepycat.db.VerboseConfig, boolean)</CODE></A></I>
7573 <P>
7574 <DD>Display the waits-for table when doing deadlock detection.
7575 <p>
7576 This method may be called at any time during the life of the application.
7577 <p>
7578 <P>
7579 <DD><DL>
7580 </DL>
7581 </DD>
7582 <DD><DL>
7583 <DT><B>Parameters:</B><DD><CODE>verboseWaitsFor</CODE> - If true, display the waits-for table when doing deadlock detection.
7584 <p></DL>
7585 </DD>
7586 </DL>
7587 <HR>
7588
7589 <A NAME="getVerboseWaitsFor()"><!-- --></A><H3>
7590 getVerboseWaitsFor</H3>
7591 <PRE>
7592 public boolean <B>getVerboseWaitsFor</B>()</PRE>
7593 <DL>
7594 <DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#getVerbose(com.sleepycat.db.VerboseConfig)"><CODE>getVerbose(com.sleepycat.db.VerboseConfig)</CODE></A></I>
7595 <P>
7596 <DD>Return if the database environment is configured to display the
7597 waits-for table when doing deadlock detection.
7598 <p>
7599 This method may be called at any time during the life of the application.
7600 <p>
7601 <P>
7602 <DD><DL>
7603 </DL>
7604 </DD>
7605 <DD><DL>
7606
7607 <DT><B>Returns:</B><DD>If the database environment is configured to display the waits-for
7608 table when doing deadlock detection.
7609 <p></DL>
7610 </DD>
7611 </DL>
7612 <HR>
7613
7614 <A NAME="setYieldCPU(boolean)"><!-- --></A><H3>
7615 setYieldCPU</H3>
7616 <PRE>
7617 public void <B>setYieldCPU</B>(boolean&nbsp;yieldCPU)</PRE>
7618 <DL>
7619 <DD>Configure the system to yield the processor immediately after each
7620 page or mutex acquisition.
7621 <p>
7622 This functionality should never be used for purposes other than
7623 stress testing.
7624 <p>
7625 This method only affects the specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle (and
7626 any other library handles opened within the scope of that handle).
7627 For consistent behavior across the environment, all <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A>
7628 handles opened in the database environment must either call this method
7629 or the configuration should be specified in the database environment's
7630 DB_CONFIG configuration file.
7631 <p>
7632 This method may be called at any time during the life of the application.
7633 <p>
7634 <P>
7635 <DD><DL>
7636 </DL>
7637 </DD>
7638 <DD><DL>
7639 <DT><B>Parameters:</B><DD><CODE>yieldCPU</CODE> - If true, configure the system to yield the processor immediately
7640 after each page or mutex acquisition.</DL>
7641 </DD>
7642 </DL>
7643 <HR>
7644
7645 <A NAME="getYieldCPU()"><!-- --></A><H3>
7646 getYieldCPU</H3>
7647 <PRE>
7648 public boolean <B>getYieldCPU</B>()</PRE>
7649 <DL>
7650 <DD>Return true if the system has been configured to yield the processor
7651 immediately after each page or mutex acquisition.
7652 <p>
7653 This method may be called at any time during the life of the application.
7654 <p>
7655 <P>
7656 <DD><DL>
7657 </DL>
7658 </DD>
7659 <DD><DL>
7660
7661 <DT><B>Returns:</B><DD>True if the system has been configured to yield the processor
7662 immediately after each page or mutex acquisition.</DL>
7663 </DD>
7664 </DL>
7665 <!-- ========= END OF CLASS DATA ========= -->
7666 <HR>
7667
7668
7669 <!-- ======= START OF BOTTOM NAVBAR ====== -->
7670 <A NAME="navbar_bottom"><!-- --></A>
7671 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
7672 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
7673 <TR>
7674 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
7675 <A NAME="navbar_bottom_firstrow"><!-- --></A>
7676 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
7677 <TR ALIGN="center" VALIGN="top">
7678 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
7679 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
7680 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
7681 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/EnvironmentConfig.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
7682 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
7683 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
7684 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
7685 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
7686 </TR>
7687 </TABLE>
7688 </TD>
7689 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
7690 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
7691 </TD>
7692 </TR>
7693
7694 <TR>
7695 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
7696 &nbsp;<A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
7697 &nbsp;<A HREF="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
7698 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
7699 <A HREF="../../../index.html?com/sleepycat/db/EnvironmentConfig.html" target="_top"><B>FRAMES</B></A> &nbsp;
7700 &nbsp;<A HREF="EnvironmentConfig.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
7701 &nbsp;<SCRIPT type="text/javascript">
7702 <!--
7703 if(window==top) {
7704 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
7705 }
7706 //-->
7707 </SCRIPT>
7708 <NOSCRIPT>
7709 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
7710 </NOSCRIPT>
7711
7712
7713 </FONT></TD>
7714 </TR>
7715 <TR>
7716 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
7717 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
7718 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
7719 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
7720 </TR>
7721 </TABLE>
7722 <A NAME="skip-navbar_bottom"></A>
7723 <!-- ======== END OF BOTTOM NAVBAR ======= -->
7724
7725 <HR>
7726 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
7727 </BODY>
7728 </HTML>