Debian Codegraph @

docs/java/com/sleepycat/db/Environment.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 Environment (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="Environment (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/Environment.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/DeadlockException.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class 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/Environment.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="Environment.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 Environment</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.Environment</B>
97 </PRE>
98 <HR>
99 <DL>
100 <DT><PRE>public class <B>Environment</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></DL>
101 </PRE>
102
103 <P>
104 A database environment. Environments include support for some or
105 all of caching, locking, logging and transactions.
106 <p>
107 To open an existing environment with default attributes the application
108 may use a default environment configuration object or null:
109 <p>
110 <blockquote><pre>
111 // Open an environment handle with default attributes.
112 Environment env = new Environment(home, new EnvironmentConfig());
113 </pre></blockquote>
114 <p>
115 or
116 <p>
117 <blockquote><pre>
118 Environment env = new Environment(home, null);
119 </pre></blockquote>
120 <p>
121 Note that many Environment objects may access a single environment.
122 <p>
123 To create an environment or customize attributes, the application should
124 customize the configuration class. For example:
125 <p>
126 <blockquote><pre>
127 EnvironmentConfig envConfig = new EnvironmentConfig();
128 envConfig.setTransactional(true);
129 envConfig.setAllowCreate(true);
130 envConfig.setCacheSize(1000000);
131 <p>
132 Environment newlyCreatedEnv = new Environment(home, envConfig);
133 </pre></blockquote>
134 <p>
135 Environment handles are free-threaded unless <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setThreaded(boolean)"><CODE>EnvironmentConfig.setThreaded</CODE></A> is called to disable this before the environment is opened.
136 <p>
137 An <em>environment handle</em> is an Environment instance. More than
138 one Environment instance may be created for the same physical directory,
139 which is the same as saying that more than one Environment handle may
140 be open at one time for a given environment.
141 <p>
142 The Environment handle should not be closed while any other handle
143 remains open that is using it as a reference (for example,
144 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> or <A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db"><CODE>Transaction</CODE></A>. Once <A HREF="../../../com/sleepycat/db/Environment.html#close()"><CODE>Environment.close</CODE></A>
145 is called, this object may not be accessed again, regardless of
146 whether or not it throws an exception.
147 <P>
148
149 <P>
150 <HR>
151
152 <P>
153 <!-- =========== FIELD SUMMARY =========== -->
154
155 <A NAME="field_summary"><!-- --></A>
156 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
157 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
158 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
159 <B>Field Summary</B></FONT></TH>
160 </TR>
161 <TR BGCOLOR="white" CLASS="TableRowColor">
162 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163 <CODE>static&nbsp;int</CODE></FONT></TD>
164 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#EID_MASTER">EID_MASTER</A></B></CODE>
165
166 <BR>
167 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A special identifier for eid in
168 <A HREF="../../../com/sleepycat/db/Environment.html#openChannel(int)"><CODE>Environment.openChannel</CODE></A>
169 to create channel to send messages only to the master site.</TD>
170 </TR>
171 </TABLE>
172 &nbsp;
173 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
174
175 <A NAME="constructor_summary"><!-- --></A>
176 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
177 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
178 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
179 <B>Constructor Summary</B></FONT></TH>
180 </TR>
181 <TR BGCOLOR="white" CLASS="TableRowColor">
182 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#Environment(java.io.File, com.sleepycat.db.EnvironmentConfig)">Environment</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;home,
183 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db">EnvironmentConfig</A>&nbsp;config)</CODE>
184
185 <BR>
186 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a database environment handle.</TD>
187 </TR>
188 </TABLE>
189 &nbsp;
190 <!-- ========== METHOD SUMMARY =========== -->
191
192 <A NAME="method_summary"><!-- --></A>
193 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
194 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
195 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
196 <B>Method Summary</B></FONT></TH>
197 </TR>
198 <TR BGCOLOR="white" CLASS="TableRowColor">
199 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200 <CODE>&nbsp;void</CODE></FONT></TD>
201 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#backup(java.lang.String, com.sleepycat.db.BackupOptions)">backup</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;target,
202 <A HREF="../../../com/sleepycat/db/BackupOptions.html" title="class in com.sleepycat.db">BackupOptions</A>&nbsp;opt)</CODE>
203
204 <BR>
205 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform a hot back up of the open environment.</TD>
206 </TR>
207 <TR BGCOLOR="white" CLASS="TableRowColor">
208 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209 <CODE>&nbsp;void</CODE></FONT></TD>
210 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#backupDatabase(java.lang.String, java.lang.String, boolean)">backupDatabase</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;dbfile,
211 <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;target,
212 boolean&nbsp;exclusiveCreate)</CODE>
213
214 <BR>
215 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform a hot back up of a single database file contained within the environment.</TD>
216 </TR>
217 <TR BGCOLOR="white" CLASS="TableRowColor">
218 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
219 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A></CODE></FONT></TD>
220 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#beginCDSGroup()">beginCDSGroup</A></B>()</CODE>
221
222 <BR>
223 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allocate a locker ID in an environment configured for Berkeley DB
224 Concurrent Data Store applications.</TD>
225 </TR>
226 <TR BGCOLOR="white" CLASS="TableRowColor">
227 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
228 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A></CODE></FONT></TD>
229 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#beginTransaction(com.sleepycat.db.Transaction, com.sleepycat.db.TransactionConfig)">beginTransaction</A></B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;parent,
230 <A HREF="../../../com/sleepycat/db/TransactionConfig.html" title="class in com.sleepycat.db">TransactionConfig</A>&nbsp;config)</CODE>
231
232 <BR>
233 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new transaction in the database environment.</TD>
234 </TR>
235 <TR BGCOLOR="white" CLASS="TableRowColor">
236 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
237 <CODE>&nbsp;void</CODE></FONT></TD>
238 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#checkpoint(com.sleepycat.db.CheckpointConfig)">checkpoint</A></B>(<A HREF="../../../com/sleepycat/db/CheckpointConfig.html" title="class in com.sleepycat.db">CheckpointConfig</A>&nbsp;config)</CODE>
239
240 <BR>
241 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Synchronously checkpoint the database environment.</TD>
242 </TR>
243 <TR BGCOLOR="white" CLASS="TableRowColor">
244 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
245 <CODE>&nbsp;void</CODE></FONT></TD>
246 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#close()">close</A></B>()</CODE>
247
248 <BR>
249 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close the database environment, freeing any allocated resources and
250 closing any underlying subsystems.</TD>
251 </TR>
252 <TR BGCOLOR="white" CLASS="TableRowColor">
253 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
254 <CODE>&nbsp;void</CODE></FONT></TD>
255 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#closeForceSync()">closeForceSync</A></B>()</CODE>
256
257 <BR>
258 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close the database environment, freeing any allocated resources and
259 closing any underlying subsystems.</TD>
260 </TR>
261 <TR BGCOLOR="white" CLASS="TableRowColor">
262 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
263 <CODE>&nbsp;int</CODE></FONT></TD>
264 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#createLockerID()">createLockerID</A></B>()</CODE>
265
266 <BR>
267 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allocate a locker ID.</TD>
268 </TR>
269 <TR BGCOLOR="white" CLASS="TableRowColor">
270 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
271 <CODE>&nbsp;int</CODE></FONT></TD>
272 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#detectDeadlocks(com.sleepycat.db.LockDetectMode)">detectDeadlocks</A></B>(<A HREF="../../../com/sleepycat/db/LockDetectMode.html" title="class in com.sleepycat.db">LockDetectMode</A>&nbsp;mode)</CODE>
273
274 <BR>
275 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Run one iteration of the deadlock detector.</TD>
276 </TR>
277 <TR BGCOLOR="white" CLASS="TableRowColor">
278 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
279 <CODE>&nbsp;void</CODE></FONT></TD>
280 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#electReplicationMaster(int, int)">electReplicationMaster</A></B>(int&nbsp;nsites,
281 int&nbsp;nvotes)</CODE>
282
283 <BR>
284 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hold an election for the master of a replication group.</TD>
285 </TR>
286 <TR BGCOLOR="white" CLASS="TableRowColor">
287 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
288 <CODE>&nbsp;void</CODE></FONT></TD>
289 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#flushReplication()">flushReplication</A></B>()</CODE>
290
291 <BR>
292 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal method: re-push the last log record to all clients, in case they've
293 lost messages and don't know it.</TD>
294 </TR>
295 <TR BGCOLOR="white" CLASS="TableRowColor">
296 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
297 <CODE>&nbsp;void</CODE></FONT></TD>
298 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#freeLockerID(int)">freeLockerID</A></B>(int&nbsp;id)</CODE>
299
300 <BR>
301 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Free a locker ID.</TD>
302 </TR>
303 <TR BGCOLOR="white" CLASS="TableRowColor">
304 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
305 <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>
306 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getArchiveDatabases()">getArchiveDatabases</A></B>()</CODE>
307
308 <BR>
309 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database files that need to be archived in order to recover the
310 database from catastrophic failure.</TD>
311 </TR>
312 <TR BGCOLOR="white" CLASS="TableRowColor">
313 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
314 <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>
315 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getArchiveLogFiles(boolean)">getArchiveLogFiles</A></B>(boolean&nbsp;includeInUse)</CODE>
316
317 <BR>
318 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an array of log files.</TD>
319 </TR>
320 <TR BGCOLOR="white" CLASS="TableRowColor">
321 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
322 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/CacheFileStats.html" title="class in com.sleepycat.db">CacheFileStats</A>[]</CODE></FONT></TD>
323 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getCacheFileStats(com.sleepycat.db.StatsConfig)">getCacheFileStats</A></B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)</CODE>
324
325 <BR>
326 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return statistics for individual files in the cache.</TD>
327 </TR>
328 <TR BGCOLOR="white" CLASS="TableRowColor">
329 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
330 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/CacheStats.html" title="class in com.sleepycat.db">CacheStats</A></CODE></FONT></TD>
331 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getCacheStats(com.sleepycat.db.StatsConfig)">getCacheStats</A></B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)</CODE>
332
333 <BR>
334 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the memory pool (that is, the buffer cache) subsystem statistics.</TD>
335 </TR>
336 <TR BGCOLOR="white" CLASS="TableRowColor">
337 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
338 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db">EnvironmentConfig</A></CODE></FONT></TD>
339 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getConfig()">getConfig</A></B>()</CODE>
340
341 <BR>
342 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return this object's configuration.</TD>
343 </TR>
344 <TR BGCOLOR="white" CLASS="TableRowColor">
345 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
346 <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>
347 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getHome()">getHome</A></B>()</CODE>
348
349 <BR>
350 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database environment home directory.</TD>
351 </TR>
352 <TR BGCOLOR="white" CLASS="TableRowColor">
353 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
354 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A></CODE></FONT></TD>
355 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getLock(int, boolean, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockRequestMode)">getLock</A></B>(int&nbsp;locker,
356 boolean&nbsp;noWait,
357 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;object,
358 <A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A>&nbsp;mode)</CODE>
359
360 <BR>
361 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Acquire a lock from the lock table returning information about it in the Lock parameter.</TD>
362 </TR>
363 <TR BGCOLOR="white" CLASS="TableRowColor">
364 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
365 <CODE>&nbsp;int</CODE></FONT></TD>
366 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getLockerPriority(int)">getLockerPriority</A></B>(int&nbsp;id)</CODE>
367
368 <BR>
369 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the deadlock priority for the given locker.</TD>
370 </TR>
371 <TR BGCOLOR="white" CLASS="TableRowColor">
372 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
373 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/LockStats.html" title="class in com.sleepycat.db">LockStats</A></CODE></FONT></TD>
374 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getLockStats(com.sleepycat.db.StatsConfig)">getLockStats</A></B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)</CODE>
375
376 <BR>
377 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database environment's locking statistics.</TD>
378 </TR>
379 <TR BGCOLOR="white" CLASS="TableRowColor">
380 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
381 <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>
382 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getLogFileName(com.sleepycat.db.LogSequenceNumber)">getLogFileName</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A>&nbsp;lsn)</CODE>
383
384 <BR>
385 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the name of the log file that contains the log record
386 specified by a LogSequenceNumber object.</TD>
387 </TR>
388 <TR BGCOLOR="white" CLASS="TableRowColor">
389 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
390 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/LogStats.html" title="class in com.sleepycat.db">LogStats</A></CODE></FONT></TD>
391 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getLogStats(com.sleepycat.db.StatsConfig)">getLogStats</A></B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)</CODE>
392
393 <BR>
394 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database environment's logging statistics.</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/MutexStats.html" title="class in com.sleepycat.db">MutexStats</A></CODE></FONT></TD>
399 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getMutexStats(com.sleepycat.db.StatsConfig)">getMutexStats</A></B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)</CODE>
400
401 <BR>
402 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database environment's mutex statistics.</TD>
403 </TR>
404 <TR BGCOLOR="white" CLASS="TableRowColor">
405 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
406 <CODE>&nbsp;boolean</CODE></FONT></TD>
407 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getReplicationConfig(com.sleepycat.db.ReplicationConfig)">getReplicationConfig</A></B>(<A HREF="../../../com/sleepycat/db/ReplicationConfig.html" title="class in com.sleepycat.db">ReplicationConfig</A>&nbsp;config)</CODE>
408
409 <BR>
410 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the configuration of the replication subsystem.</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="../../../com/sleepycat/db/ReplicationManagerSite.html" title="class in com.sleepycat.db">ReplicationManagerSite</A></CODE></FONT></TD>
415 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getReplicationManagerLocalSite()">getReplicationManagerLocalSite</A></B>()</CODE>
416
417 <BR>
418 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a handle for the local replication site.</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/ReplicationManagerSite.html" title="class in com.sleepycat.db">ReplicationManagerSite</A></CODE></FONT></TD>
423 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getReplicationManagerSite(int)">getReplicationManagerSite</A></B>(int&nbsp;eid)</CODE>
424
425 <BR>
426 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a site known to the replication manager by its eid.</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/ReplicationManagerSite.html" title="class in com.sleepycat.db">ReplicationManagerSite</A></CODE></FONT></TD>
431 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getReplicationManagerSite(java.lang.String, long)">getReplicationManagerSite</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;host,
432 long&nbsp;port)</CODE>
433
434 <BR>
435 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a site in the replication manager by its host and port.</TD>
436 </TR>
437 <TR BGCOLOR="white" CLASS="TableRowColor">
438 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
439 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/ReplicationManagerSiteInfo.html" title="class in com.sleepycat.db">ReplicationManagerSiteInfo</A>[]</CODE></FONT></TD>
440 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getReplicationManagerSiteList()">getReplicationManagerSiteList</A></B>()</CODE>
441
442 <BR>
443 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an array of all the sites known to the replication manager.</TD>
444 </TR>
445 <TR BGCOLOR="white" CLASS="TableRowColor">
446 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
447 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/ReplicationManagerStats.html" title="class in com.sleepycat.db">ReplicationManagerStats</A></CODE></FONT></TD>
448 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getReplicationManagerStats(com.sleepycat.db.StatsConfig)">getReplicationManagerStats</A></B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)</CODE>
449
450 <BR>
451 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database environment's replication manager statistics.</TD>
452 </TR>
453 <TR BGCOLOR="white" CLASS="TableRowColor">
454 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
455 <CODE>&nbsp;int</CODE></FONT></TD>
456 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getReplicationNumSites()">getReplicationNumSites</A></B>()</CODE>
457
458 <BR>
459 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the number of sites in a replication group.</TD>
460 </TR>
461 <TR BGCOLOR="white" CLASS="TableRowColor">
462 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
463 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/ReplicationStats.html" title="class in com.sleepycat.db">ReplicationStats</A></CODE></FONT></TD>
464 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getReplicationStats(com.sleepycat.db.StatsConfig)">getReplicationStats</A></B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)</CODE>
465
466 <BR>
467 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database environment's replication statistics.</TD>
468 </TR>
469 <TR BGCOLOR="white" CLASS="TableRowColor">
470 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
471 <CODE>&nbsp;int</CODE></FONT></TD>
472 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getReplicationTimeout(com.sleepycat.db.ReplicationTimeoutType)">getReplicationTimeout</A></B>(<A HREF="../../../com/sleepycat/db/ReplicationTimeoutType.html" title="class in com.sleepycat.db">ReplicationTimeoutType</A>&nbsp;type)</CODE>
473
474 <BR>
475 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the timeout applied to the specified timeout type.</TD>
476 </TR>
477 <TR BGCOLOR="white" CLASS="TableRowColor">
478 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
479 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/TransactionStats.html" title="class in com.sleepycat.db">TransactionStats</A></CODE></FONT></TD>
480 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getTransactionStats(com.sleepycat.db.StatsConfig)">getTransactionStats</A></B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)</CODE>
481
482 <BR>
483 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database environment's transactional statistics.</TD>
484 </TR>
485 <TR BGCOLOR="white" CLASS="TableRowColor">
486 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
487 <CODE>static&nbsp;int</CODE></FONT></TD>
488 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getVersionFamily()">getVersionFamily</A></B>()</CODE>
489
490 <BR>
491 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the release's Oracle family number.</TD>
492 </TR>
493 <TR BGCOLOR="white" CLASS="TableRowColor">
494 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
495 <CODE>static&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>
496 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getVersionFullString()">getVersionFullString</A></B>()</CODE>
497
498 <BR>
499 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the full release version information, suitable for display.</TD>
500 </TR>
501 <TR BGCOLOR="white" CLASS="TableRowColor">
502 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
503 <CODE>static&nbsp;int</CODE></FONT></TD>
504 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getVersionMajor()">getVersionMajor</A></B>()</CODE>
505
506 <BR>
507 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the release major number.</TD>
508 </TR>
509 <TR BGCOLOR="white" CLASS="TableRowColor">
510 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
511 <CODE>static&nbsp;int</CODE></FONT></TD>
512 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getVersionMinor()">getVersionMinor</A></B>()</CODE>
513
514 <BR>
515 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the release minor number.</TD>
516 </TR>
517 <TR BGCOLOR="white" CLASS="TableRowColor">
518 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
519 <CODE>static&nbsp;int</CODE></FONT></TD>
520 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getVersionPatch()">getVersionPatch</A></B>()</CODE>
521
522 <BR>
523 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the release patch number.</TD>
524 </TR>
525 <TR BGCOLOR="white" CLASS="TableRowColor">
526 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
527 <CODE>static&nbsp;int</CODE></FONT></TD>
528 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getVersionRelease()">getVersionRelease</A></B>()</CODE>
529
530 <BR>
531 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the release's Oracle release number.</TD>
532 </TR>
533 <TR BGCOLOR="white" CLASS="TableRowColor">
534 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
535 <CODE>static&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>
536 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#getVersionString()">getVersionString</A></B>()</CODE>
537
538 <BR>
539 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the release version information, suitable for display.</TD>
540 </TR>
541 <TR BGCOLOR="white" CLASS="TableRowColor">
542 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
543 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/TransactionStatus.html" title="class in com.sleepycat.db">TransactionStatus</A></CODE></FONT></TD>
544 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#isTransactionApplied(byte[], int)">isTransactionApplied</A></B>(byte[]&nbsp;token,
545 int&nbsp;maxwait)</CODE>
546
547 <BR>
548 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return whether the transaction referred to by the commit token "token" has
549 been applied at the local replication environment.</TD>
550 </TR>
551 <TR BGCOLOR="white" CLASS="TableRowColor">
552 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
553 <CODE>&nbsp;void</CODE></FONT></TD>
554 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#lockVector(int, boolean, com.sleepycat.db.LockRequest[])">lockVector</A></B>(int&nbsp;locker,
555 boolean&nbsp;noWait,
556 <A HREF="../../../com/sleepycat/db/LockRequest.html" title="class in com.sleepycat.db">LockRequest</A>[]&nbsp;list)</CODE>
557
558 <BR>
559 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Atomically obtain and release one or more locks from the lock table.</TD>
560 </TR>
561 <TR BGCOLOR="white" CLASS="TableRowColor">
562 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
563 <CODE>&nbsp;void</CODE></FONT></TD>
564 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#logFlush(com.sleepycat.db.LogSequenceNumber)">logFlush</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A>&nbsp;lsn)</CODE>
565
566 <BR>
567 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flush log records to stable storage.</TD>
568 </TR>
569 <TR BGCOLOR="white" CLASS="TableRowColor">
570 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
571 <CODE>&nbsp;void</CODE></FONT></TD>
572 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#logPrint(com.sleepycat.db.Transaction, java.lang.String)">logPrint</A></B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
573 <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;message)</CODE>
574
575 <BR>
576 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append an informational message to the Berkeley DB database environment log files.</TD>
577 </TR>
578 <TR BGCOLOR="white" CLASS="TableRowColor">
579 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
580 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A></CODE></FONT></TD>
581 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#logPut(com.sleepycat.db.DatabaseEntry, boolean)">logPut</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;data,
582 boolean&nbsp;flush)</CODE>
583
584 <BR>
585 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append a record to the log.</TD>
586 </TR>
587 <TR BGCOLOR="white" CLASS="TableRowColor">
588 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
589 <CODE>&nbsp;int</CODE></FONT></TD>
590 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#logVerify(com.sleepycat.db.LogVerifyConfig)">logVerify</A></B>(<A HREF="../../../com/sleepycat/db/LogVerifyConfig.html" title="class in com.sleepycat.db">LogVerifyConfig</A>&nbsp;config)</CODE>
591
592 <BR>
593 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verify integrity of the log records of an environment and write both error and
594 normal messages to the environment's error report destination.</TD>
595 </TR>
596 <TR BGCOLOR="white" CLASS="TableRowColor">
597 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
598 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/ReplicationChannel.html" title="class in com.sleepycat.db">ReplicationChannel</A></CODE></FONT></TD>
599 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#openChannel(int)">openChannel</A></B>(int&nbsp;eid)</CODE>
600
601 <BR>
602 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a channel.</TD>
603 </TR>
604 <TR BGCOLOR="white" CLASS="TableRowColor">
605 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
606 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db">Database</A></CODE></FONT></TD>
607 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)">openDatabase</A></B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
608 <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;fileName,
609 <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;databaseName,
610 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html" title="class in com.sleepycat.db">DatabaseConfig</A>&nbsp;config)</CODE>
611
612 <BR>
613 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open a database.</TD>
614 </TR>
615 <TR BGCOLOR="white" CLASS="TableRowColor">
616 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
617 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/LogCursor.html" title="class in com.sleepycat.db">LogCursor</A></CODE></FONT></TD>
618 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#openLogCursor()">openLogCursor</A></B>()</CODE>
619
620 <BR>
621 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a log cursor.</TD>
622 </TR>
623 <TR BGCOLOR="white" CLASS="TableRowColor">
624 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
625 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/SecondaryDatabase.html" title="class in com.sleepycat.db">SecondaryDatabase</A></CODE></FONT></TD>
626 <TD><CODE><B><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)">openSecondaryDatabase</A></B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
627 <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;fileName,
628 <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;databaseName,
629 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db">Database</A>&nbsp;primaryDatabase,
630 <A HREF="../../../com/sleepycat/db/SecondaryConfig.html" title="class in com.sleepycat.db">SecondaryConfig</A>&nbsp;config)</CODE>
631
632 <BR>
633 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open a database.</TD>
634 </TR>
635 <TR BGCOLOR="white" CLASS="TableRowColor">
636 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
637 <CODE>&nbsp;void</CODE></FONT></TD>
638 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#panic(boolean)">panic</A></B>(boolean&nbsp;onoff)</CODE>
639
640 <BR>
641 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the panic state for the database environment.</TD>
642 </TR>
643 <TR BGCOLOR="white" CLASS="TableRowColor">
644 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
645 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/ReplicationStatus.html" title="class in com.sleepycat.db">ReplicationStatus</A></CODE></FONT></TD>
646 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#processReplicationMessage(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, int)">processReplicationMessage</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;control,
647 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;rec,
648 int&nbsp;envid)</CODE>
649
650 <BR>
651 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process an incoming replication message sent by a member of the
652 replication group to the local database environment.</TD>
653 </TR>
654 <TR BGCOLOR="white" CLASS="TableRowColor">
655 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
656 <CODE>&nbsp;void</CODE></FONT></TD>
657 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#putLock(com.sleepycat.db.Lock)">putLock</A></B>(<A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A>&nbsp;lock)</CODE>
658
659 <BR>
660 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Release a lock.</TD>
661 </TR>
662 <TR BGCOLOR="white" CLASS="TableRowColor">
663 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
664 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/PreparedTransaction.html" title="class in com.sleepycat.db">PreparedTransaction</A>[]</CODE></FONT></TD>
665 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#recover(int, boolean)">recover</A></B>(int&nbsp;count,
666 boolean&nbsp;continued)</CODE>
667
668 <BR>
669 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Environment recovery restores transactions that were prepared, but not yet
670 resolved at the time of the system shut down or crash, to their state prior
671 to the shut down or crash, including any locks previously held.</TD>
672 </TR>
673 <TR BGCOLOR="white" CLASS="TableRowColor">
674 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
675 <CODE>static&nbsp;void</CODE></FONT></TD>
676 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#remove(java.io.File, boolean, com.sleepycat.db.EnvironmentConfig)">remove</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;home,
677 boolean&nbsp;force,
678 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db">EnvironmentConfig</A>&nbsp;config)</CODE>
679
680 <BR>
681 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Destroy a database environment.</TD>
682 </TR>
683 <TR BGCOLOR="white" CLASS="TableRowColor">
684 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
685 <CODE>&nbsp;void</CODE></FONT></TD>
686 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#removeDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String)">removeDatabase</A></B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
687 <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;fileName,
688 <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;databaseName)</CODE>
689
690 <BR>
691 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
692 Remove the database specified by the fileName and databaseName parameters.</TD>
693 </TR>
694 <TR BGCOLOR="white" CLASS="TableRowColor">
695 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
696 <CODE>&nbsp;void</CODE></FONT></TD>
697 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#removeOldLogFiles()">removeOldLogFiles</A></B>()</CODE>
698
699 <BR>
700 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove log files that are no longer needed.</TD>
701 </TR>
702 <TR BGCOLOR="white" CLASS="TableRowColor">
703 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
704 <CODE>&nbsp;void</CODE></FONT></TD>
705 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#renameDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, java.lang.String)">renameDatabase</A></B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
706 <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;fileName,
707 <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;databaseName,
708 <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;newName)</CODE>
709
710 <BR>
711 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
712 Rename a database.</TD>
713 </TR>
714 <TR BGCOLOR="white" CLASS="TableRowColor">
715 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
716 <CODE>&nbsp;void</CODE></FONT></TD>
717 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#replicationManagerStart(int, com.sleepycat.db.ReplicationManagerStartPolicy)">replicationManagerStart</A></B>(int&nbsp;nthreads,
718 <A HREF="../../../com/sleepycat/db/ReplicationManagerStartPolicy.html" title="class in com.sleepycat.db">ReplicationManagerStartPolicy</A>&nbsp;policy)</CODE>
719
720 <BR>
721 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts the replication manager.</TD>
722 </TR>
723 <TR BGCOLOR="white" CLASS="TableRowColor">
724 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
725 <CODE>&nbsp;void</CODE></FONT></TD>
726 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#resetFileID(java.lang.String, boolean)">resetFileID</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;filename,
727 boolean&nbsp;encrypted)</CODE>
728
729 <BR>
730 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allows database files to be copied, and then the copy used in the same
731 database environment as the original.</TD>
732 </TR>
733 <TR BGCOLOR="white" CLASS="TableRowColor">
734 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
735 <CODE>&nbsp;void</CODE></FONT></TD>
736 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#resetLogSequenceNumber(java.lang.String, boolean)">resetLogSequenceNumber</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;filename,
737 boolean&nbsp;encrypted)</CODE>
738
739 <BR>
740 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allows database files to be moved from one transactional database
741 environment to another.</TD>
742 </TR>
743 <TR BGCOLOR="white" CLASS="TableRowColor">
744 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
745 <CODE>&nbsp;void</CODE></FONT></TD>
746 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#setConfig(com.sleepycat.db.EnvironmentConfig)">setConfig</A></B>(<A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db">EnvironmentConfig</A>&nbsp;config)</CODE>
747
748 <BR>
749 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Change the settings in an existing environment handle.</TD>
750 </TR>
751 <TR BGCOLOR="white" CLASS="TableRowColor">
752 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
753 <CODE>&nbsp;void</CODE></FONT></TD>
754 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#setLockerPriority(int, int)">setLockerPriority</A></B>(int&nbsp;id,
755 int&nbsp;priority)</CODE>
756
757 <BR>
758 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assign a deadlock priority to a locker.</TD>
759 </TR>
760 <TR BGCOLOR="white" CLASS="TableRowColor">
761 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
762 <CODE>&nbsp;void</CODE></FONT></TD>
763 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#setReplicationConfig(com.sleepycat.db.ReplicationConfig, boolean)">setReplicationConfig</A></B>(<A HREF="../../../com/sleepycat/db/ReplicationConfig.html" title="class in com.sleepycat.db">ReplicationConfig</A>&nbsp;config,
764 boolean&nbsp;onoff)</CODE>
765
766 <BR>
767 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the replication subsystem.</TD>
768 </TR>
769 <TR BGCOLOR="white" CLASS="TableRowColor">
770 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
771 <CODE>&nbsp;void</CODE></FONT></TD>
772 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#setReplicationManagerMessageDispatch(com.sleepycat.db.ReplicationManagerMessageDispatch, int)">setReplicationManagerMessageDispatch</A></B>(<A HREF="../../../com/sleepycat/db/ReplicationManagerMessageDispatch.html" title="interface in com.sleepycat.db">ReplicationManagerMessageDispatch</A>&nbsp;dispatch,
773 int&nbsp;flags)</CODE>
774
775 <BR>
776 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the message dispatch function.</TD>
777 </TR>
778 <TR BGCOLOR="white" CLASS="TableRowColor">
779 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
780 <CODE>&nbsp;void</CODE></FONT></TD>
781 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#setReplicationTimeout(com.sleepycat.db.ReplicationTimeoutType, int)">setReplicationTimeout</A></B>(<A HREF="../../../com/sleepycat/db/ReplicationTimeoutType.html" title="class in com.sleepycat.db">ReplicationTimeoutType</A>&nbsp;type,
782 int&nbsp;replicationTimeout)</CODE>
783
784 <BR>
785 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the timeout applied to the specified timeout type.</TD>
786 </TR>
787 <TR BGCOLOR="white" CLASS="TableRowColor">
788 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
789 <CODE>&nbsp;void</CODE></FONT></TD>
790 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#startReplication(com.sleepycat.db.DatabaseEntry, boolean)">startReplication</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;cdata,
791 boolean&nbsp;master)</CODE>
792
793 <BR>
794 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment as a client or master in a group
795 of replicated database environments.</TD>
796 </TR>
797 <TR BGCOLOR="white" CLASS="TableRowColor">
798 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
799 <CODE>&nbsp;void</CODE></FONT></TD>
800 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#syncCache(com.sleepycat.db.LogSequenceNumber)">syncCache</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A>&nbsp;logSequenceNumber)</CODE>
801
802 <BR>
803 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ensure that all modified pages in the cache are flushed to their backing files.</TD>
804 </TR>
805 <TR BGCOLOR="white" CLASS="TableRowColor">
806 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
807 <CODE>&nbsp;void</CODE></FONT></TD>
808 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#syncReplication()">syncReplication</A></B>()</CODE>
809
810 <BR>
811 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forces master synchronization to begin for this client.</TD>
812 </TR>
813 <TR BGCOLOR="white" CLASS="TableRowColor">
814 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
815 <CODE>&nbsp;int</CODE></FONT></TD>
816 <TD><CODE><B><A HREF="../../../com/sleepycat/db/Environment.html#trickleCacheWrite(int)">trickleCacheWrite</A></B>(int&nbsp;percent)</CODE>
817
818 <BR>
819 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ensure that a specified percent of the pages in the shared memory
820 pool are clean, by writing dirty pages to their backing files.</TD>
821 </TR>
822 </TABLE>
823 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
824 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
825 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
826 <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>
827 </TR>
828 <TR BGCOLOR="white" CLASS="TableRowColor">
829 <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>
830 </TR>
831 </TABLE>
832 &nbsp;
833 <P>
834
835 <!-- ============ FIELD DETAIL =========== -->
836
837 <A NAME="field_detail"><!-- --></A>
838 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
839 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
840 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
841 <B>Field Detail</B></FONT></TH>
842 </TR>
843 </TABLE>
844
845 <A NAME="EID_MASTER"><!-- --></A><H3>
846 EID_MASTER</H3>
847 <PRE>
848 public static final int <B>EID_MASTER</B></PRE>
849 <DL>
850 <DD>A special identifier for eid in
851 <A HREF="../../../com/sleepycat/db/Environment.html#openChannel(int)"><CODE>Environment.openChannel</CODE></A>
852 to create channel to send messages only to the master site.
853 <P>
854 <DL>
855 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.sleepycat.db.Environment.EID_MASTER">Constant Field Values</A></DL>
856 </DL>
857
858 <!-- ========= CONSTRUCTOR DETAIL ======== -->
859
860 <A NAME="constructor_detail"><!-- --></A>
861 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
862 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
863 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
864 <B>Constructor Detail</B></FONT></TH>
865 </TR>
866 </TABLE>
867
868 <A NAME="Environment(java.io.File, com.sleepycat.db.EnvironmentConfig)"><!-- --></A><H3>
869 Environment</H3>
870 <PRE>
871 public <B>Environment</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;home,
872 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db">EnvironmentConfig</A>&nbsp;config)
873 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A>,
874 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></PRE>
875 <DL>
876 <DD>Create a database environment handle.
877 <p>
878 <P>
879 <DL>
880 <DT><B>Parameters:</B><DD><CODE>home</CODE> - The database environment's home directory.
881 The environment variable <code>DB_HOME</code> may be used as
882 the path of the database home.
883 For more information on <code>envHome</code> and filename
884 resolution in general, see
885 <a href="../../../../programmer_reference/env_naming.html" target="_top">File Naming</a>.
886 <p><DD><CODE>config</CODE> - The database environment attributes. If null, default attributes are used.
887 <p>
888 <p>
889 <DT><B>Throws:</B>
890 <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.
891 <p>
892 <p>
893 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.
894 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></CODE></DL>
895 </DL>
896
897 <!-- ============ METHOD DETAIL ========== -->
898
899 <A NAME="method_detail"><!-- --></A>
900 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
901 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
902 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
903 <B>Method Detail</B></FONT></TH>
904 </TR>
905 </TABLE>
906
907 <A NAME="close()"><!-- --></A><H3>
908 close</H3>
909 <PRE>
910 public void <B>close</B>()
911 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
912 <DL>
913 <DD>Close the database environment, freeing any allocated resources and
914 closing any underlying subsystems.
915 <p>
916 When you call this method, all open database and cursor handles are closed automatically, and should not be reused.
917 <p>
918 The <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle should not be closed while any other
919 handle that refers to it is not yet closed; for example, database
920 environment handles must not be closed while
921 transactions in the environment have not yet been committed
922 or aborted. Specifically, this includes
923 <A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db"><CODE>Transaction</CODE></A>, and <A HREF="../../../com/sleepycat/db/LogCursor.html" title="class in com.sleepycat.db"><CODE>LogCursor</CODE></A>
924 handles.
925 <p>
926 In multiple threads of control, each thread of control opens a database environment and the database handles within it. When you close each database handle using this method, by default, the database is not synchronized. To synchronize all open databases ensure that the last environment
927 object is closed using the Environment.CloseForceSync() method.
928 When the close operation fails, the method returns a non-zero error value for the
929 first instance of such error, and continues to close the rest of the environment objects.
930 <p>
931 Where the environment was initialized with a locking subsystem,
932 closing the environment does not release any locks still held by the
933 closing process, providing functionality for long-lived locks.
934 <p>
935 Where the environment was initialized with a transaction subsystem,
936 closing the environment aborts any unresolved transactions.
937 Applications should not depend on this behavior for transactions
938 involving databases; all such transactions should be explicitly
939 resolved. The problem with depending on this semantic is that
940 aborting an unresolved transaction involving database operations
941 requires a database handle. Because the database handles should
942 have been closed before closing the environment, it will not be
943 possible to abort the transaction, and recovery will have to be run
944 on the database environment before further operations are done.
945 <p>
946 Where log cursors were created, closing the environment does not
947 imply closing those cursors.
948 <p>
949 In multithreaded applications, only a single thread may call this
950 method.
951 <p>
952 After this method has been called, regardless of its return, the
953 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle may not be accessed again.
954 <p>
955 <p>
956 <P>
957 <DD><DL>
958
959 <DT><B>Throws:</B>
960 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
961 </DD>
962 </DL>
963 <HR>
964
965 <A NAME="closeForceSync()"><!-- --></A><H3>
966 closeForceSync</H3>
967 <PRE>
968 public void <B>closeForceSync</B>()
969 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
970 <DL>
971 <DD>Close the database environment, freeing any allocated resources and
972 closing any underlying subsystems.
973 <p>
974 This function has verify similar
975 behavior as Environment.close(), except the following:
976 When each open database handle is closed, the database is synchronized.
977 <P>
978 <DD><DL>
979
980 <DT><B>Throws:</B>
981 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
982 </DD>
983 </DL>
984 <HR>
985
986 <A NAME="remove(java.io.File, boolean, com.sleepycat.db.EnvironmentConfig)"><!-- --></A><H3>
987 remove</H3>
988 <PRE>
989 public static void <B>remove</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;home,
990 boolean&nbsp;force,
991 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db">EnvironmentConfig</A>&nbsp;config)
992 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A>,
993 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></PRE>
994 <DL>
995 <DD>Destroy a database environment.
996 <p>
997 If the environment is not in use, the environment regions, including
998 any backing files, are removed. Any log or database files and the
999 environment directory itself are not removed.
1000 <p>
1001 If there are processes currently using the database environment,
1002 this method will fail without further action (unless the force
1003 argument is true, in which case the environment will be removed,
1004 regardless of any processes still using it).
1005 <p>
1006 The result of attempting to forcibly destroy the environment when
1007 it is in use is unspecified. Processes using an environment often
1008 maintain open file descriptors for shared regions within it. On
1009 UNIX systems, the environment removal will usually succeed, and
1010 processes that have already joined the region will continue to run
1011 in that region without change. However, processes attempting to
1012 join the environment will either fail or create new regions. On
1013 other systems in which the unlink system call will fail if any
1014 process has an open file descriptor for the file (for example
1015 Windows/NT), the region removal will fail.
1016 <p>
1017 Calling this method should not be necessary for most applications
1018 because the environment is cleaned up as part of normal
1019 database recovery procedures. However, applications may want to call
1020 this method as part of application shut down to free up system
1021 resources. For example, if system shared memory was used to back
1022 the database environment, it may be useful to call this method in
1023 order to release system shared memory segments that have been
1024 allocated. Or, on architectures in which mutexes require allocation
1025 of underlying system resources, it may be useful to call
1026 this method in order to release those resources. Alternatively, if
1027 recovery is not required because no database state is maintained
1028 across failures, and no system resources need to be released, it is
1029 possible to clean up an environment by simply removing all the
1030 Berkeley DB files in the database environment's directories.
1031 <p>
1032 In multithreaded applications, only a single thread may call this
1033 method.
1034 <p>
1035 After this method has been called, regardless of its return, the
1036 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle may not be
1037 accessed again.
1038 <p>
1039 <P>
1040 <DD><DL>
1041 <DT><B>Parameters:</B><DD><CODE>home</CODE> - The database environment to be removed.
1042 On Windows platforms, this argument will be interpreted as a UTF-8
1043 string, which is equivalent to ASCII for Latin characters.
1044 <p><DD><CODE>force</CODE> - The environment is removed, regardless of any processes that may
1045 still using it, and no locks are acquired during this process.
1046 (Generally, the force argument is specified only when applications
1047 were unable to shut down cleanly, and there is a risk that an
1048 application may have died holding a Berkeley DB mutex or lock.
1049 <p>
1050 <p>
1051 <DT><B>Throws:</B>
1052 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.
1053 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></CODE></DL>
1054 </DD>
1055 </DL>
1056 <HR>
1057
1058 <A NAME="setConfig(com.sleepycat.db.EnvironmentConfig)"><!-- --></A><H3>
1059 setConfig</H3>
1060 <PRE>
1061 public void <B>setConfig</B>(<A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db">EnvironmentConfig</A>&nbsp;config)
1062 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1063 <DL>
1064 <DD>Change the settings in an existing environment handle.
1065 <p>
1066 <P>
1067 <DD><DL>
1068 <DT><B>Parameters:</B><DD><CODE>config</CODE> - The database environment attributes. If null, default attributes are used.
1069 <p>
1070 <p>
1071 <DT><B>Throws:</B>
1072 <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.
1073 <p>
1074 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1075 </DD>
1076 </DL>
1077 <HR>
1078
1079 <A NAME="getConfig()"><!-- --></A><H3>
1080 getConfig</H3>
1081 <PRE>
1082 public <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db">EnvironmentConfig</A> <B>getConfig</B>()
1083 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1084 <DL>
1085 <DD>Return this object's configuration.
1086 <p>
1087 <P>
1088 <DD><DL>
1089
1090 <DT><B>Returns:</B><DD>This object's configuration.
1091 <p>
1092 <p>
1093 <DT><B>Throws:</B>
1094 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1095 </DD>
1096 </DL>
1097 <HR>
1098
1099 <A NAME="openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><!-- --></A><H3>
1100 openDatabase</H3>
1101 <PRE>
1102 public <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db">Database</A> <B>openDatabase</B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
1103 <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;fileName,
1104 <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;databaseName,
1105 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html" title="class in com.sleepycat.db">DatabaseConfig</A>&nbsp;config)
1106 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A>,
1107 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></PRE>
1108 <DL>
1109 <DD>Open a database.
1110 <p>
1111 The database is represented by the file and database parameters.
1112 <p>
1113 The currently supported database file formats (or <em>access
1114 methods</em>) are Btree, Hash, Queue, and Recno. The Btree format is a
1115 representation of a sorted, balanced tree structure. The Hash format
1116 is an extensible, dynamic hashing scheme. The Queue format supports
1117 fast access to fixed-length records accessed sequentially or by logical
1118 record number. The Recno format supports fixed- or variable-length
1119 records, accessed sequentially or by logical record number, and
1120 optionally backed by a flat text file.
1121 <p>
1122 Storage and retrieval are based on key/data pairs; see <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A>
1123 for more information.
1124 <p>
1125 Opening a database is a relatively expensive operation, and maintaining
1126 a set of open databases will normally be preferable to repeatedly
1127 opening and closing the database for each new query.
1128 <p>
1129 In-memory databases never intended to be preserved on disk may be
1130 created by setting both the fileName and databaseName parameters to
1131 null. Note that in-memory databases can only ever be shared by sharing
1132 the single database handle that created them, in circumstances where
1133 doing so is safe. The environment variable <code>TMPDIR</code> may
1134 be used as a directory in which to create temporary backing files.
1135 <p>
1136 <P>
1137 <DD><DL>
1138 <DT><B>Parameters:</B><DD><CODE>txn</CODE> - For a transactional database, an explicit transaction may be specified, or null
1139 may be specified to use auto-commit. For a non-transactional database, null
1140 must be specified.
1141 Note that transactionally protected operations on a Database handle
1142 require that the Database handle itself be transactionally protected
1143 during its open, either with a non-null transaction handle, or by calling
1144 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setTransactional(boolean)"><CODE>DatabaseConfig.setTransactional</CODE></A> on the configuration object.
1145 <p><DD><CODE>fileName</CODE> - The name of an underlying file that will be used to back the database.
1146 On Windows platforms, this argument will be interpreted as a UTF-8
1147 string, which is equivalent to ASCII for Latin characters.
1148 <p><DD><CODE>databaseName</CODE> - An optional parameter that allows applications to have multiple
1149 databases in a single file. Although no databaseName parameter needs
1150 to be specified, it is an error to attempt to open a second database in
1151 a physical file that was not initially created using a databaseName
1152 parameter. Further, the databaseName parameter is not supported by the
1153 Queue format.
1154 <p><DD><CODE>config</CODE> - The database open attributes. If null, default attributes are used.
1155 <DT><B>Throws:</B>
1156 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE>
1157 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></CODE></DL>
1158 </DD>
1159 </DL>
1160 <HR>
1161
1162 <A NAME="openSecondaryDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.Database, com.sleepycat.db.SecondaryConfig)"><!-- --></A><H3>
1163 openSecondaryDatabase</H3>
1164 <PRE>
1165 public <A HREF="../../../com/sleepycat/db/SecondaryDatabase.html" title="class in com.sleepycat.db">SecondaryDatabase</A> <B>openSecondaryDatabase</B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
1166 <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;fileName,
1167 <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;databaseName,
1168 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db">Database</A>&nbsp;primaryDatabase,
1169 <A HREF="../../../com/sleepycat/db/SecondaryConfig.html" title="class in com.sleepycat.db">SecondaryConfig</A>&nbsp;config)
1170 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A>,
1171 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></PRE>
1172 <DL>
1173 <DD>Open a database.
1174 <p>
1175 The database is represented by the file and database parameters.
1176 <p>
1177 The currently supported database file formats (or <em>access
1178 methods</em>) are Btree, Hash, Queue, and Recno. The Btree format is a
1179 representation of a sorted, balanced tree structure. The Hash format
1180 is an extensible, dynamic hashing scheme. The Queue format supports
1181 fast access to fixed-length records accessed sequentially or by logical
1182 record number. The Recno format supports fixed- or variable-length
1183 records, accessed sequentially or by logical record number, and
1184 optionally backed by a flat text file.
1185 <p>
1186 Storage and retrieval are based on key/data pairs; see <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A>
1187 for more information.
1188 <p>
1189 Opening a database is a relatively expensive operation, and maintaining
1190 a set of open databases will normally be preferable to repeatedly
1191 opening and closing the database for each new query.
1192 <p>
1193 In-memory databases never intended to be preserved on disk may be
1194 created by setting both the fileName and databaseName parameters to
1195 null. Note that in-memory databases can only ever be shared by sharing
1196 the single database handle that created them, in circumstances where
1197 doing so is safe. The environment variable <code>TMPDIR</code> may
1198 be used as a directory in which to create temporary backing files.
1199 <p>
1200 <P>
1201 <DD><DL>
1202 <DT><B>Parameters:</B><DD><CODE>txn</CODE> - For a transactional database, an explicit transaction may be specified, or null
1203 may be specified to use auto-commit. For a non-transactional database, null
1204 must be specified.
1205 Note that transactionally protected operations on a Database handle
1206 require that the Database handle itself be transactionally protected
1207 during its open, either with a non-null transaction handle, or by calling
1208 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setTransactional(boolean)"><CODE>DatabaseConfig.setTransactional</CODE></A> on the configuration object.
1209 <p><DD><CODE>fileName</CODE> - The name of an underlying file that will be used to back the database.
1210 On Windows platforms, this argument will be interpreted as a UTF-8
1211 string, which is equivalent to ASCII for Latin characters.
1212 <p><DD><CODE>databaseName</CODE> - An optional parameter that allows applications to have multiple
1213 databases in a single file. Although no databaseName parameter needs
1214 to be specified, it is an error to attempt to open a second database in
1215 a physical file that was not initially created using a databaseName
1216 parameter. Further, the databaseName parameter is not supported by the
1217 Queue format.
1218 <p><DD><CODE>primaryDatabase</CODE> - a database handle for the primary database that is to be indexed.
1219 <p><DD><CODE>config</CODE> - The secondary database open attributes. If null, default attributes are used.
1220 <DT><B>Throws:</B>
1221 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE>
1222 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></CODE></DL>
1223 </DD>
1224 </DL>
1225 <HR>
1226
1227 <A NAME="removeDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String)"><!-- --></A><H3>
1228 removeDatabase</H3>
1229 <PRE>
1230 public void <B>removeDatabase</B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
1231 <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;fileName,
1232 <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;databaseName)
1233 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A>,
1234 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></PRE>
1235 <DL>
1236 <DD><p>
1237 Remove the database specified by the fileName and databaseName parameters.
1238 <p>
1239 If no database is specified, the underlying file specified is removed, incidentally removing all of the databases it contained.
1240 <p>
1241 Applications should never remove databases with open <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A>
1242 handles, or in the case of removing a file, when any database in the
1243 file has an open handle. For example, some architectures do not permit
1244 the removal of files with open system handles. On these architectures,
1245 attempts to remove databases currently in use by any thread of control
1246 in the system may fail.
1247 <p>
1248 The
1249 environment variable DB_HOME may be used as the path of the database
1250 environment home.
1251 <p>
1252 This method is affected by any database directory specified with
1253 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#addDataDir(java.io.File)"><CODE>EnvironmentConfig.addDataDir</CODE></A>, or by setting the "set_data_dir"
1254 string in the database environment's DB_CONFIG file.
1255 <p>
1256 The <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle may not be accessed
1257 again after this method is called, regardless of this method's success
1258 or failure.
1259 <p>
1260 <P>
1261 <DD><DL>
1262 <DT><B>Parameters:</B><DD><CODE>txn</CODE> - If the operation is part of an application-specified transaction, the txn
1263 parameter is a Transaction object returned from the
1264 <A HREF="../../../com/sleepycat/db/Environment.html#beginTransaction(com.sleepycat.db.Transaction, com.sleepycat.db.TransactionConfig)"><CODE>Environment.beginTransaction</CODE></A> method; if the operation is part of a Berkeley DB
1265 Concurrent Data Store group, the txn parameter is a Transaction object returned
1266 from the <A HREF="../../../com/sleepycat/db/Environment.html#beginCDSGroup()"><CODE>Environment.beginCDSGroup</CODE></A> method; otherwise null.
1267 For a transactional database, an explicit transaction may be specified, or null
1268 may be specified to use auto-commit. For a non-transactional database, null
1269 must be specified.
1270 <p><DD><CODE>fileName</CODE> - The physical file which contains the database to be removed.
1271 On Windows platforms, this argument will be interpreted as a UTF-8
1272 string, which is equivalent to ASCII for Latin characters.
1273 <p><DD><CODE>databaseName</CODE> - The database to be removed.
1274 <p>
1275 <p>
1276 <DT><B>Throws:</B>
1277 <DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a
1278 deadlock.
1279 <p>
1280 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.
1281 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></CODE></DL>
1282 </DD>
1283 </DL>
1284 <HR>
1285
1286 <A NAME="renameDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
1287 renameDatabase</H3>
1288 <PRE>
1289 public void <B>renameDatabase</B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
1290 <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;fileName,
1291 <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;databaseName,
1292 <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;newName)
1293 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A>,
1294 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></PRE>
1295 <DL>
1296 <DD><p>
1297 Rename a database.
1298 <p>
1299 If no database name is specified, the underlying file specified is
1300 renamed, incidentally renaming all of the databases it contains.
1301 <p>
1302 Applications should never rename databases that are currently in use.
1303 If an underlying file is being renamed and logging is currently enabled
1304 in the database environment, no database in the file may be open when
1305 this method is called. In particular, some architectures do not permit
1306 renaming files with open handles. On these architectures, attempts to
1307 rename databases that are currently in use by any thread of control in
1308 the system may fail.
1309 <p>
1310 The
1311 environment variable DB_HOME may be used as the path of the database
1312 environment home.
1313 <p>
1314 This method is affected by any database directory specified with
1315 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#addDataDir(java.io.File)"><CODE>EnvironmentConfig.addDataDir</CODE></A>, or by setting the "set_data_dir"
1316 string in the database environment's DB_CONFIG file.
1317 <p>
1318 The <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle may not be accessed
1319 again after this method is called, regardless of this method's success
1320 or failure.
1321 <p>
1322 <P>
1323 <DD><DL>
1324 <DT><B>Parameters:</B><DD><CODE>txn</CODE> - If the operation is part of an application-specified transaction, the txn
1325 parameter is a Transaction object returned from the
1326 <A HREF="../../../com/sleepycat/db/Environment.html#beginTransaction(com.sleepycat.db.Transaction, com.sleepycat.db.TransactionConfig)"><CODE>Environment.beginTransaction</CODE></A> method; if the operation is part of a Berkeley DB
1327 Concurrent Data Store group, the txn parameter is a Transaction object returned
1328 from the <A HREF="../../../com/sleepycat/db/Environment.html#beginCDSGroup()"><CODE>Environment.beginCDSGroup</CODE></A> method; otherwise null.
1329 For a transactional database, an explicit transaction may be specified, or null
1330 may be specified to use auto-commit. For a non-transactional database, null
1331 must be specified.
1332 <p><DD><CODE>fileName</CODE> - The physical file which contains the database to be renamed.
1333 On Windows platforms, this argument will be interpreted as a UTF-8
1334 string, which is equivalent to ASCII for Latin characters.
1335 <p><DD><CODE>databaseName</CODE> - The database to be renamed.
1336 <p><DD><CODE>newName</CODE> - The new name of the database or file.
1337 <p>
1338 <p>
1339 <DT><B>Throws:</B>
1340 <DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a
1341 deadlock.
1342 <p>
1343 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.
1344 <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io">FileNotFoundException</A></CODE></DL>
1345 </DD>
1346 </DL>
1347 <HR>
1348
1349 <A NAME="getHome()"><!-- --></A><H3>
1350 getHome</H3>
1351 <PRE>
1352 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>getHome</B>()
1353 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1354 <DL>
1355 <DD>Return the database environment home directory. This directory is normally
1356 identified in the <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> constructor.
1357 <p>
1358 <P>
1359 <DD><DL>
1360
1361 <DT><B>Returns:</B><DD>The database environment home directory.
1362 <DT><B>Throws:</B>
1363 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
1364 </DD>
1365 </DL>
1366 <HR>
1367
1368 <A NAME="trickleCacheWrite(int)"><!-- --></A><H3>
1369 trickleCacheWrite</H3>
1370 <PRE>
1371 public int <B>trickleCacheWrite</B>(int&nbsp;percent)
1372 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1373 <DL>
1374 <DD>Ensure that a specified percent of the pages in the shared memory
1375 pool are clean, by writing dirty pages to their backing files.
1376 <p>
1377 The purpose of this method is to enable a memory pool manager to ensure
1378 that a page is always available for reading in new information
1379 without having to wait for a write.
1380 <p>
1381 <P>
1382 <DD><DL>
1383 <DT><B>Parameters:</B><DD><CODE>percent</CODE> - The percent of the pages in the cache that should be clean.
1384 <p>
1385 <DT><B>Returns:</B><DD>The number of pages that were written to reach the specified
1386 percentage.
1387 <p>
1388 <p>
1389 <DT><B>Throws:</B>
1390 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1391 </DD>
1392 </DL>
1393 <HR>
1394
1395 <A NAME="detectDeadlocks(com.sleepycat.db.LockDetectMode)"><!-- --></A><H3>
1396 detectDeadlocks</H3>
1397 <PRE>
1398 public int <B>detectDeadlocks</B>(<A HREF="../../../com/sleepycat/db/LockDetectMode.html" title="class in com.sleepycat.db">LockDetectMode</A>&nbsp;mode)
1399 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1400 <DL>
1401 <DD>Run one iteration of the deadlock detector.
1402 <p>
1403 The deadlock detector traverses the lock table and marks one of the
1404 participating lock requesters for rejection in each deadlock it finds.
1405 <p>
1406 <P>
1407 <DD><DL>
1408 <DT><B>Parameters:</B><DD><CODE>mode</CODE> - Which lock request(s) to reject.
1409 <p>
1410 <DT><B>Returns:</B><DD>The number of lock requests that were rejected.
1411 <p>
1412 <p>
1413 <DT><B>Throws:</B>
1414 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1415 </DD>
1416 </DL>
1417 <HR>
1418
1419 <A NAME="getLock(int, boolean, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockRequestMode)"><!-- --></A><H3>
1420 getLock</H3>
1421 <PRE>
1422 public <A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A> <B>getLock</B>(int&nbsp;locker,
1423 boolean&nbsp;noWait,
1424 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;object,
1425 <A HREF="../../../com/sleepycat/db/LockRequestMode.html" title="class in com.sleepycat.db">LockRequestMode</A>&nbsp;mode)
1426 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1427 <DL>
1428 <DD>Acquire a lock from the lock table returning information about it in the Lock parameter.
1429 <p>
1430 <P>
1431 <DD><DL>
1432 <DT><B>Parameters:</B><DD><CODE>locker</CODE> - An unsigned 32-bit integer quantity representing the entity
1433 requesting the lock.
1434 <p><DD><CODE>mode</CODE> - The lock mode.
1435 <p><DD><CODE>noWait</CODE> - If a lock cannot be granted because the requested lock conflicts
1436 with an existing lock, throw a <A HREF="../../../com/sleepycat/db/LockNotGrantedException.html" title="class in com.sleepycat.db"><CODE>LockNotGrantedException</CODE></A>
1437 immediately instead of waiting for the lock to become available.
1438 <p><DD><CODE>object</CODE> - An untyped byte string that specifies the object to be locked.
1439 Applications using the locking subsystem directly while also doing
1440 locking via the Berkeley DB access methods must take care not to
1441 inadvertently lock objects that happen to be equal to the unique
1442 file IDs used to lock files.
1443 <p>
1444 <p>
1445 <DT><B>Throws:</B>
1446 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1447 </DD>
1448 </DL>
1449 <HR>
1450
1451 <A NAME="putLock(com.sleepycat.db.Lock)"><!-- --></A><H3>
1452 putLock</H3>
1453 <PRE>
1454 public void <B>putLock</B>(<A HREF="../../../com/sleepycat/db/Lock.html" title="class in com.sleepycat.db">Lock</A>&nbsp;lock)
1455 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1456 <DL>
1457 <DD>Release a lock.
1458 <p>
1459 <P>
1460 <DD><DL>
1461 <DT><B>Parameters:</B><DD><CODE>lock</CODE> - The lock to be released.
1462 <p>
1463 <p>
1464 <DT><B>Throws:</B>
1465 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1466 </DD>
1467 </DL>
1468 <HR>
1469
1470 <A NAME="createLockerID()"><!-- --></A><H3>
1471 createLockerID</H3>
1472 <PRE>
1473 public int <B>createLockerID</B>()
1474 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1475 <DL>
1476 <DD>Allocate a locker ID.
1477 <p>
1478 The locker ID is guaranteed to be unique for the database environment.
1479 <p>
1480 Call <A HREF="../../../com/sleepycat/db/Environment.html#freeLockerID(int)"><CODE>Environment.freeLockerID</CODE></A> to return the locker ID to
1481 the environment when it is no longer needed.
1482 <p>
1483 <P>
1484 <DD><DL>
1485
1486 <DT><B>Returns:</B><DD>A locker ID.
1487 <DT><B>Throws:</B>
1488 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
1489 </DD>
1490 </DL>
1491 <HR>
1492
1493 <A NAME="freeLockerID(int)"><!-- --></A><H3>
1494 freeLockerID</H3>
1495 <PRE>
1496 public void <B>freeLockerID</B>(int&nbsp;id)
1497 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1498 <DL>
1499 <DD>Free a locker ID.
1500 <p>
1501 <P>
1502 <DD><DL>
1503 <DT><B>Parameters:</B><DD><CODE>id</CODE> - The locker id to be freed.
1504 <p>
1505 <p>
1506 <DT><B>Throws:</B>
1507 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1508 </DD>
1509 </DL>
1510 <HR>
1511
1512 <A NAME="getLockerPriority(int)"><!-- --></A><H3>
1513 getLockerPriority</H3>
1514 <PRE>
1515 public int <B>getLockerPriority</B>(int&nbsp;id)
1516 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1517 <DL>
1518 <DD>Return the deadlock priority for the given locker.
1519 <p>
1520 <P>
1521 <DD><DL>
1522 <DT><B>Parameters:</B><DD><CODE>id</CODE> - The locker id
1523 <p>
1524 <DT><B>Throws:</B>
1525 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1526 </DD>
1527 </DL>
1528 <HR>
1529
1530 <A NAME="setLockerPriority(int, int)"><!-- --></A><H3>
1531 setLockerPriority</H3>
1532 <PRE>
1533 public void <B>setLockerPriority</B>(int&nbsp;id,
1534 int&nbsp;priority)
1535 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1536 <DL>
1537 <DD>Assign a deadlock priority to a locker. This value is used when resolving deadlocks. The deadlock resolution algorithm will reject a
1538 lock request from a locker with a lower priority before a request from a locker with a higher
1539 priority.
1540 By default, all lockers are created with a priority of 100.
1541 <p>
1542 <P>
1543 <DD><DL>
1544 <DT><B>Parameters:</B><DD><CODE>id</CODE> - The locker id to configure<DD><CODE>priority</CODE> - The priority to assign to the locker.
1545 <p>
1546 <DT><B>Throws:</B>
1547 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs</DL>
1548 </DD>
1549 </DL>
1550 <HR>
1551
1552 <A NAME="lockVector(int, boolean, com.sleepycat.db.LockRequest[])"><!-- --></A><H3>
1553 lockVector</H3>
1554 <PRE>
1555 public void <B>lockVector</B>(int&nbsp;locker,
1556 boolean&nbsp;noWait,
1557 <A HREF="../../../com/sleepycat/db/LockRequest.html" title="class in com.sleepycat.db">LockRequest</A>[]&nbsp;list)
1558 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1559 <DL>
1560 <DD>Atomically obtain and release one or more locks from the lock table.
1561 This method is intended to support acquisition or trading of
1562 multiple locks under one lock table semaphore, as is needed for lock
1563 coupling or in multigranularity locking for lock escalation.
1564 <p>
1565 If any of the requested locks cannot be acquired, or any of the locks to
1566 be released cannot be released, the operations before the failing
1567 operation are guaranteed to have completed successfully, and
1568 the method throws an exception.
1569 <p>
1570 <P>
1571 <DD><DL>
1572 <DT><B>Parameters:</B><DD><CODE>noWait</CODE> - If a lock cannot be granted because the requested lock conflicts
1573 with an existing lock, throw a <A HREF="../../../com/sleepycat/db/LockNotGrantedException.html" title="class in com.sleepycat.db"><CODE>LockNotGrantedException</CODE></A>
1574 immediately instead of waiting for the lock to become available.
1575 The index of the request that was not granted will be returned by
1576 <A HREF="../../../com/sleepycat/db/LockNotGrantedException.html#getIndex()"><CODE>LockNotGrantedException.getIndex</CODE></A>.
1577 <p><DD><CODE>locker</CODE> - An unsigned 32-bit integer quantity representing the entity
1578 requesting the lock.
1579 <p><DD><CODE>list</CODE> - An array of <A HREF="../../../com/sleepycat/db/LockRequest.html" title="class in com.sleepycat.db"><CODE>LockRequest</CODE></A> objects, listing the requested lock
1580 operations.
1581 <p>
1582 <p>
1583 <DT><B>Throws:</B>
1584 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1585 </DD>
1586 </DL>
1587 <HR>
1588
1589 <A NAME="openLogCursor()"><!-- --></A><H3>
1590 openLogCursor</H3>
1591 <PRE>
1592 public <A HREF="../../../com/sleepycat/db/LogCursor.html" title="class in com.sleepycat.db">LogCursor</A> <B>openLogCursor</B>()
1593 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1594 <DL>
1595 <DD>Return a log cursor.
1596 <p>
1597 <P>
1598 <DD><DL>
1599
1600 <DT><B>Returns:</B><DD>A log cursor.
1601 <p>
1602 <p>
1603 <DT><B>Throws:</B>
1604 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1605 </DD>
1606 </DL>
1607 <HR>
1608
1609 <A NAME="getLogFileName(com.sleepycat.db.LogSequenceNumber)"><!-- --></A><H3>
1610 getLogFileName</H3>
1611 <PRE>
1612 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>getLogFileName</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A>&nbsp;lsn)
1613 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1614 <DL>
1615 <DD>Return the name of the log file that contains the log record
1616 specified by a LogSequenceNumber object.
1617 <p>
1618 This mapping of LogSequenceNumber objects to files is needed for
1619 database administration. For example, a transaction manager
1620 typically records the earliest LogSequenceNumber object needed for
1621 restart, and the database administrator may want to archive log
1622 files to tape when they contain only log records before the earliest
1623 one needed for restart.
1624 <p>
1625 <P>
1626 <DD><DL>
1627 <DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The LogSequenceNumber object for which a filename is wanted.
1628 <p>
1629 <DT><B>Returns:</B><DD>The name of the log file that contains the log record specified by a
1630 LogSequenceNumber object.
1631 <p>
1632 <p>
1633 <DT><B>Throws:</B>
1634 <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.
1635 <p>
1636 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1637 </DD>
1638 </DL>
1639 <HR>
1640
1641 <A NAME="logVerify(com.sleepycat.db.LogVerifyConfig)"><!-- --></A><H3>
1642 logVerify</H3>
1643 <PRE>
1644 public int <B>logVerify</B>(<A HREF="../../../com/sleepycat/db/LogVerifyConfig.html" title="class in com.sleepycat.db">LogVerifyConfig</A>&nbsp;config)</PRE>
1645 <DL>
1646 <DD>Verify integrity of the log records of an environment and write both error and
1647 normal messages to the environment's error report destination.
1648 This method does not perform the locking function, even in Berkeley DB environments
1649 that are configured with a locking subsystem.
1650 Because this function does not access any database files, you can call it even
1651 when the environment has other threads of control attached and running
1652 <p>
1653 <P>
1654 <DD><DL>
1655 <DT><B>Parameters:</B><DD><CODE>config</CODE> - The LogVerifyConfig object which contains configurations for the log
1656 verification.
1657 <p>
1658 <DT><B>Returns:</B><DD>If the verification succeeds, return 0; otherwise non-zero.
1659 Error, warning and report messages are written to the environment's
1660 error report destination.</DL>
1661 </DD>
1662 </DL>
1663 <HR>
1664
1665 <A NAME="startReplication(com.sleepycat.db.DatabaseEntry, boolean)"><!-- --></A><H3>
1666 startReplication</H3>
1667 <PRE>
1668 public void <B>startReplication</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;cdata,
1669 boolean&nbsp;master)
1670 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1671 <DL>
1672 <DD>Configure the database environment as a client or master in a group
1673 of replicated database environments. This method is not called by most replication applications.
1674 It should only be called by Base API applications implementing their
1675 own network transport layer, explicitly holding replication group elections and
1676 handling replication messages outside of the Replication Manager framework.
1677 <p>
1678 Replication master
1679 environments are the only database environments where replicated
1680 databases may be modified. Replication client environments are
1681 read-only as long as they are clients. Replication client
1682 environments may be upgraded to be replication master environments
1683 in the case that the current master fails or there is no master
1684 present. If master leases are in use, this method cannot be used to
1685 appoint a master, and should only be used to configure a database
1686 environment as a master as the result of an election.
1687 <p>
1688 The enclosing database environment must already have been configured
1689 to send replication messages by calling
1690 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationTransport(int, com.sleepycat.db.ReplicationTransport)"><CODE>EnvironmentConfig.setReplicationTransport</CODE></A>.
1691 <p>
1692 <P>
1693 <DD><DL>
1694 <DT><B>Parameters:</B><DD><CODE>cdata</CODE> - An opaque data item that is sent over the communication infrastructure
1695 when the client or master comes online. If no such information is
1696 useful, cdata should be null.
1697 <p><DD><CODE>master</CODE> - Configure the environment as a replication master. If false, the
1698 environment will be configured as as a replication client.
1699 <p>
1700 <p>
1701 <DT><B>Throws:</B>
1702 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1703 </DD>
1704 </DL>
1705 <HR>
1706
1707 <A NAME="electReplicationMaster(int, int)"><!-- --></A><H3>
1708 electReplicationMaster</H3>
1709 <PRE>
1710 public void <B>electReplicationMaster</B>(int&nbsp;nsites,
1711 int&nbsp;nvotes)
1712 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1713 <DL>
1714 <DD>Hold an election for the master of a replication group. This method is not called
1715 by most replication applications. It should only be called by Base API applications
1716 implementing their own network transport layer, explicitly holding replication group
1717 elections and handling replication messages outside of the Replication Manager framework.
1718 <p>
1719 If the election is successful, the new master's ID may be the ID of the
1720 previous master, or the ID of the current environment. The application
1721 is responsible for adjusting its usage of the other environments in the
1722 replication group, including directing all database updates to the newly
1723 selected master, in accordance with the results of this election.
1724 <p>
1725 The thread of control that calls this method must not be the thread
1726 of control that processes incoming messages; processing the incoming
1727 messages is necessary to successfully complete an election.
1728 <p>
1729 Before calling this method do the following:
1730 <ul>
1731 <li>open the database environment.
1732 <li>configure the database environment to send replication messages.
1733 <li>configure the database environment as a client or a master.
1734 </ul>
1735 <h3>How Elections are Held</h3>
1736 <p>
1737 Elections are done in two parts: first, replication sites collect information from the
1738 other replication sites they know about, and second, replication sites cast their votes for a new master.
1739 The second phase is triggered by one of two things: either the replication site gets election
1740 information from nsites sites, or the election timeout expires. Once the second phase is triggered,
1741 the replication site will cast a vote for the new master of its choice if, and only if,
1742 the site has election information from at least nvotes sites. If a site receives nvotes votes
1743 for it to become the new master, then it will become the new master.
1744 We recommend nvotes be set to at least:
1745 <p>
1746 (sites participating in the election / 2) + 1
1747 <p>
1748 to ensure there are never more than two masters active at the same time even in the case of a network partition.
1749 When a network partitions, the side of the partition with more than half the environments will elect
1750 a new master and continue, while the environments communicating with fewer than half of the
1751 environments will fail to find a new master, as no site can get nvotes votes.
1752 We recommend nsites be set to:
1753 <p>
1754 number of sites in the replication group - 1
1755 <p>
1756 when choosing a new master after a current master fails. This allows the group to reach a consensus without having to wait for the timeout to expire.
1757 <p>
1758 When choosing a master from among a group of client sites all restarting at the same time, it makes more sense to set nsites to the total number of sites in the group, since there is no known missing site. Furthermore, in order to ensure the best choice from among sites that may take longer to boot than the local site, setting nvotes also to this same total number of sites will guarantee that every site in the group is considered. Alternatively, using the special timeout for full elections allows full participation on restart but allows election of a master if one site does not reboot and rejoin the group in a reasonable amount of time. (See the Elections section in the Berkeley DB Programmer's Reference Guide for more information.)
1759 <p>
1760 Setting nsites to lower values can increase the speed of an election, but can also result in election failure, and is usually not recommended.
1761 <p>
1762 <P>
1763 <DD><DL>
1764 <DT><B>Parameters:</B><DD><CODE>nsites</CODE> - The number of environments that the application believes are in the
1765 replication group. This number is used by Berkeley DB to avoid
1766 having two masters active simultaneously, even in the case of a
1767 network partition. During an election, a new master cannot be
1768 elected unless more than half of nsites agree on the new master.
1769 Thus, in the face of a network partition, the side of the partition
1770 with more than half the environments will elect a new master and
1771 continue, while the environments communicating with fewer than half
1772 the other environments will fail to find a new master.
1773 <p><DD><CODE>nvotes</CODE> - The number of votes required by the application to successfully
1774 elect a new master. It must be a positive integer, no greater than
1775 nsites, or 0 if the election should use a simple majority of the
1776 nsites value as the requirement. A warning is given if half or
1777 fewer votes are required to win an election as that can potentially
1778 lead to multiple masters in the face of a network partition.
1779 <p>
1780 <p>
1781 <DT><B>Throws:</B>
1782 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1783 </DD>
1784 </DL>
1785 <HR>
1786
1787 <A NAME="flushReplication()"><!-- --></A><H3>
1788 flushReplication</H3>
1789 <PRE>
1790 public void <B>flushReplication</B>()
1791 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1792 <DL>
1793 <DD>Internal method: re-push the last log record to all clients, in case they've
1794 lost messages and don't know it.
1795 <p>
1796 This method may not be called before the database environment is opened.
1797 <p>
1798 <p>
1799 <P>
1800 <DD><DL>
1801
1802 <DT><B>Throws:</B>
1803 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1804 </DD>
1805 </DL>
1806 <HR>
1807
1808 <A NAME="processReplicationMessage(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, int)"><!-- --></A><H3>
1809 processReplicationMessage</H3>
1810 <PRE>
1811 public <A HREF="../../../com/sleepycat/db/ReplicationStatus.html" title="class in com.sleepycat.db">ReplicationStatus</A> <B>processReplicationMessage</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;control,
1812 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;rec,
1813 int&nbsp;envid)
1814 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1815 <DL>
1816 <DD>Process an incoming replication message sent by a member of the
1817 replication group to the local database environment. This method is not called
1818 by most replication applications. It should only be called by Base API applications
1819 implementing their own network transport layer, explicitly holding replication
1820 group elections and handling replication messages outside of the Replication Manager framework.
1821 <p>
1822 For implementation reasons, all incoming replication messages must
1823 be processed using the same <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle. It is not
1824 required that a single thread of control process all messages, only
1825 that all threads of control processing messages use the same handle.
1826 <p>
1827 Before calling this method, the enclosing database environment must already
1828 have been opened and must already have been configured to send replication messages.
1829 <p>
1830 <P>
1831 <DD><DL>
1832 <DT><B>Parameters:</B><DD><CODE>control</CODE> - A copy of the control parameter specified by Berkeley DB on the
1833 sending environment.
1834 <p><DD><CODE>envid</CODE> - The local identifier that corresponds to the environment that sent
1835 the message to be processed.
1836 <p><DD><CODE>rec</CODE> - A copy of the rec parameter specified by Berkeley DB on the sending
1837 environment.
1838 <p>
1839 <DT><B>Returns:</B><DD>A <A HREF="../../../com/sleepycat/db/ReplicationStatus.html" title="class in com.sleepycat.db"><CODE>ReplicationStatus</CODE></A> object.
1840 <DT><B>Throws:</B>
1841 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
1842 </DD>
1843 </DL>
1844 <HR>
1845
1846 <A NAME="setReplicationConfig(com.sleepycat.db.ReplicationConfig, boolean)"><!-- --></A><H3>
1847 setReplicationConfig</H3>
1848 <PRE>
1849 public void <B>setReplicationConfig</B>(<A HREF="../../../com/sleepycat/db/ReplicationConfig.html" title="class in com.sleepycat.db">ReplicationConfig</A>&nbsp;config,
1850 boolean&nbsp;onoff)
1851 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1852 <DL>
1853 <DD>Configure the replication subsystem.
1854 <p>
1855 The database environment's replication subsystem may also be set using the environment's
1856 DB_CONFIG file. The syntax of the entry in that file is a single line
1857 with the string "rep_set_config", one or more whitespace characters, and the method configuration parameter as a string; for example,
1858 "rep_set_config REP_CONF_NOWAIT".
1859 Because the DB_CONFIG file is read when the database environment is
1860 opened, it will silently overrule configuration done before that time.
1861 <p>
1862 This method configures a database environment, including all threads
1863 of control accessing the database environment, not only the operations
1864 performed using a specified <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
1865 <p>
1866 This method may be called at any time during the life of the application.
1867 <p>
1868 <P>
1869 <DD><DL>
1870 <DT><B>Parameters:</B><DD><CODE>config</CODE> - A replication feature to be configured.<DD><CODE>onoff</CODE> - If true, the feature is enabled, otherwise it is disabled.
1871 <DT><B>Throws:</B>
1872 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
1873 </DD>
1874 </DL>
1875 <HR>
1876
1877 <A NAME="getReplicationConfig(com.sleepycat.db.ReplicationConfig)"><!-- --></A><H3>
1878 getReplicationConfig</H3>
1879 <PRE>
1880 public boolean <B>getReplicationConfig</B>(<A HREF="../../../com/sleepycat/db/ReplicationConfig.html" title="class in com.sleepycat.db">ReplicationConfig</A>&nbsp;config)
1881 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1882 <DL>
1883 <DD>Get the configuration of the replication subsystem.
1884 This method may be called at any time during the life of the application.
1885 <P>
1886 <DD><DL>
1887
1888 <DT><B>Returns:</B><DD>Whether the specified feature is enabled or disabled.
1889 <DT><B>Throws:</B>
1890 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
1891 </DD>
1892 </DL>
1893 <HR>
1894
1895 <A NAME="getReplicationNumSites()"><!-- --></A><H3>
1896 getReplicationNumSites</H3>
1897 <PRE>
1898 public int <B>getReplicationNumSites</B>()
1899 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1900 <DL>
1901 <DD>Get the number of sites in a replication group.
1902 Applications using the replication manager API may only call this method
1903 after replication has been started.
1904 <P>
1905 <DD><DL>
1906
1907 <DT><B>Returns:</B><DD>The number of sites in the replication group
1908 <DT><B>Throws:</B>
1909 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs</DL>
1910 </DD>
1911 </DL>
1912 <HR>
1913
1914 <A NAME="setReplicationTimeout(com.sleepycat.db.ReplicationTimeoutType, int)"><!-- --></A><H3>
1915 setReplicationTimeout</H3>
1916 <PRE>
1917 public void <B>setReplicationTimeout</B>(<A HREF="../../../com/sleepycat/db/ReplicationTimeoutType.html" title="class in com.sleepycat.db">ReplicationTimeoutType</A>&nbsp;type,
1918 int&nbsp;replicationTimeout)
1919 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1920 <DL>
1921 <DD>Sets the timeout applied to the specified timeout type.
1922 This method may be called at any time during the life of the application.
1923 <p>
1924 The database environment's replication subsystem may also be configured
1925 using the environment's DB_CONFIG file. The syntax of the entry in that
1926 file is a single line with the string "rep_set_timeout", one or more whitespace characters,
1927 and the which parameter specified as a string and the timeout specified as two parts.
1928 Because the DB_CONFIG file is read when the database environment is opened,
1929 it will silently overrule configuration done before that time.
1930 <P>
1931 <DD><DL>
1932 <DT><B>Parameters:</B><DD><CODE>type</CODE> - The type of timeout to set.
1933 <p><DD><CODE>replicationTimeout</CODE> - The time in microseconds of the desired timeout.
1934 <DT><B>Throws:</B>
1935 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
1936 </DD>
1937 </DL>
1938 <HR>
1939
1940 <A NAME="getReplicationTimeout(com.sleepycat.db.ReplicationTimeoutType)"><!-- --></A><H3>
1941 getReplicationTimeout</H3>
1942 <PRE>
1943 public int <B>getReplicationTimeout</B>(<A HREF="../../../com/sleepycat/db/ReplicationTimeoutType.html" title="class in com.sleepycat.db">ReplicationTimeoutType</A>&nbsp;type)
1944 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1945 <DL>
1946 <DD>Gets the timeout applied to the specified timeout type.
1947 <P>
1948 <DD><DL>
1949 <DT><B>Parameters:</B><DD><CODE>type</CODE> - The type of timeout to retrieve.
1950 <p>
1951 <DT><B>Returns:</B><DD>The timeout applied to the specified timout type, in microseconds.
1952 <p>
1953 <p>
1954 <DT><B>Throws:</B>
1955 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1956 </DD>
1957 </DL>
1958 <HR>
1959
1960 <A NAME="syncReplication()"><!-- --></A><H3>
1961 syncReplication</H3>
1962 <PRE>
1963 public void <B>syncReplication</B>()
1964 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1965 <DL>
1966 <DD>Forces master synchronization to begin for this client. This method is the other
1967 half of setting <A HREF="../../../com/sleepycat/db/ReplicationConfig.html#DELAYCLIENT"><CODE>ReplicationConfig.DELAYCLIENT</CODE></A> with
1968 <A HREF="../../../com/sleepycat/db/Environment.html#setReplicationConfig(com.sleepycat.db.ReplicationConfig, boolean)"><CODE>setReplicationConfig(com.sleepycat.db.ReplicationConfig, boolean)</CODE></A>.
1969 <p>
1970 When a new master is elected and the application has configured delayed
1971 synchronization, the application must choose when to perform
1972 synchronization by using this method. Otherwise the client will remain
1973 unsynchronized and will ignore all new incoming log messages.
1974 This method may be called any time after the client application learns
1975 that the new master has been established.
1976 <p>
1977 Before calling this method, the enclosing database environment must
1978 already have been opened and must already have been configured to send replication messages.
1979 <p>
1980 <p>
1981 <P>
1982 <DD><DL>
1983
1984 <DT><B>Throws:</B>
1985 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1986 </DD>
1987 </DL>
1988 <HR>
1989
1990 <A NAME="replicationManagerStart(int, com.sleepycat.db.ReplicationManagerStartPolicy)"><!-- --></A><H3>
1991 replicationManagerStart</H3>
1992 <PRE>
1993 public void <B>replicationManagerStart</B>(int&nbsp;nthreads,
1994 <A HREF="../../../com/sleepycat/db/ReplicationManagerStartPolicy.html" title="class in com.sleepycat.db">ReplicationManagerStartPolicy</A>&nbsp;policy)
1995 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
1996 <DL>
1997 <DD>Starts the replication manager.
1998 <p>
1999 The replication manager is implemented inside the Berkeley DB library,
2000 it is designed to manage a replication group. This includes network
2001 transport, all replication message processing and acknowledgment, and
2002 group elections.
2003 <p>
2004 For more information on building replication manager applications,
2005 please see the "Replication Manager Getting Started Guide" included in
2006 the Berkeley DB documentation.
2007 <p>
2008 This method may not be called before the database environment is opened.
2009 <P>
2010 <DD><DL>
2011 <DT><B>Parameters:</B><DD><CODE>nthreads</CODE> - Specify the number of threads of control created and dedicated to
2012 processing replication messages. In addition to these message processing
2013 threads, the replication manager creates and manages a few of its own
2014 threads of control.
2015 <p><DD><CODE>policy</CODE> - The policy defines the startup characteristics of a replication group.
2016 See <A HREF="../../../com/sleepycat/db/ReplicationManagerStartPolicy.html" title="class in com.sleepycat.db"><CODE>ReplicationManagerStartPolicy</CODE></A> for more information.
2017 <DT><B>Throws:</B>
2018 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2019 </DD>
2020 </DL>
2021 <HR>
2022
2023 <A NAME="getReplicationManagerLocalSite()"><!-- --></A><H3>
2024 getReplicationManagerLocalSite</H3>
2025 <PRE>
2026 public <A HREF="../../../com/sleepycat/db/ReplicationManagerSite.html" title="class in com.sleepycat.db">ReplicationManagerSite</A> <B>getReplicationManagerLocalSite</B>()
2027 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2028 <DL>
2029 <DD>Return a handle for the local replication site.
2030 <P>
2031 <DD><DL>
2032
2033 <DT><B>Throws:</B>
2034 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2035 </DD>
2036 </DL>
2037 <HR>
2038
2039 <A NAME="getReplicationManagerSiteList()"><!-- --></A><H3>
2040 getReplicationManagerSiteList</H3>
2041 <PRE>
2042 public <A HREF="../../../com/sleepycat/db/ReplicationManagerSiteInfo.html" title="class in com.sleepycat.db">ReplicationManagerSiteInfo</A>[] <B>getReplicationManagerSiteList</B>()
2043 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2044 <DL>
2045 <DD>Return an array of all the sites known to the replication manager.
2046 This method may only be called after replication has been started
2047 using the <A HREF="../../../com/sleepycat/db/Environment.html#replicationManagerStart(int, com.sleepycat.db.ReplicationManagerStartPolicy)"><CODE>replicationManagerStart</CODE></A> method.
2048 <P>
2049 <DD><DL>
2050
2051 <DT><B>Throws:</B>
2052 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2053 </DD>
2054 </DL>
2055 <HR>
2056
2057 <A NAME="getReplicationManagerSite(int)"><!-- --></A><H3>
2058 getReplicationManagerSite</H3>
2059 <PRE>
2060 public <A HREF="../../../com/sleepycat/db/ReplicationManagerSite.html" title="class in com.sleepycat.db">ReplicationManagerSite</A> <B>getReplicationManagerSite</B>(int&nbsp;eid)
2061 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2062 <DL>
2063 <DD>Return a site known to the replication manager by its eid.
2064 <p>
2065 <P>
2066 <DD><DL>
2067 <DT><B>Parameters:</B><DD><CODE>eid</CODE> -
2068 <DT><B>Throws:</B>
2069 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2070 </DD>
2071 </DL>
2072 <HR>
2073
2074 <A NAME="getReplicationManagerSite(java.lang.String, long)"><!-- --></A><H3>
2075 getReplicationManagerSite</H3>
2076 <PRE>
2077 public <A HREF="../../../com/sleepycat/db/ReplicationManagerSite.html" title="class in com.sleepycat.db">ReplicationManagerSite</A> <B>getReplicationManagerSite</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;host,
2078 long&nbsp;port)
2079 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2080 <DL>
2081 <DD>Return a site in the replication manager by its host and port.
2082 <p>
2083 <P>
2084 <DD><DL>
2085 <DT><B>Parameters:</B><DD><CODE>host</CODE> - <DD><CODE>port</CODE> -
2086 <DT><B>Throws:</B>
2087 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2088 </DD>
2089 </DL>
2090 <HR>
2091
2092 <A NAME="openChannel(int)"><!-- --></A><H3>
2093 openChannel</H3>
2094 <PRE>
2095 public <A HREF="../../../com/sleepycat/db/ReplicationChannel.html" title="class in com.sleepycat.db">ReplicationChannel</A> <B>openChannel</B>(int&nbsp;eid)
2096 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2097 <DL>
2098 <DD>Create a channel.
2099 <p>
2100 <P>
2101 <DD><DL>
2102 <DT><B>Parameters:</B><DD><CODE>eid</CODE> -
2103 <DT><B>Throws:</B>
2104 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2105 </DD>
2106 </DL>
2107 <HR>
2108
2109 <A NAME="setReplicationManagerMessageDispatch(com.sleepycat.db.ReplicationManagerMessageDispatch, int)"><!-- --></A><H3>
2110 setReplicationManagerMessageDispatch</H3>
2111 <PRE>
2112 public void <B>setReplicationManagerMessageDispatch</B>(<A HREF="../../../com/sleepycat/db/ReplicationManagerMessageDispatch.html" title="interface in com.sleepycat.db">ReplicationManagerMessageDispatch</A>&nbsp;dispatch,
2113 int&nbsp;flags)
2114 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2115 <DL>
2116 <DD>Set the message dispatch function.
2117 <p>
2118 <P>
2119 <DD><DL>
2120 <DT><B>Parameters:</B><DD><CODE>dispatch</CODE> - Application-specific function used to handle messages sent over Replication
2121 Manager message channels.<DD><CODE>flags</CODE> - This flag is DB_REPMGR_NEED_RESPONSE if the message requires a response.
2122 Otherwise, it is 0.
2123 <DT><B>Throws:</B>
2124 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2125 </DD>
2126 </DL>
2127 <HR>
2128
2129 <A NAME="getCacheStats(com.sleepycat.db.StatsConfig)"><!-- --></A><H3>
2130 getCacheStats</H3>
2131 <PRE>
2132 public <A HREF="../../../com/sleepycat/db/CacheStats.html" title="class in com.sleepycat.db">CacheStats</A> <B>getCacheStats</B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)
2133 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2134 <DL>
2135 <DD>Returns the memory pool (that is, the buffer cache) subsystem statistics.
2136 <p>
2137 <P>
2138 <DD><DL>
2139
2140 <DT><B>Returns:</B><DD>the memory pool (that is, the buffer cache) subsystem statistics.
2141 <DT><B>Throws:</B>
2142 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2143 </DD>
2144 </DL>
2145 <HR>
2146
2147 <A NAME="getCacheFileStats(com.sleepycat.db.StatsConfig)"><!-- --></A><H3>
2148 getCacheFileStats</H3>
2149 <PRE>
2150 public <A HREF="../../../com/sleepycat/db/CacheFileStats.html" title="class in com.sleepycat.db">CacheFileStats</A>[] <B>getCacheFileStats</B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)
2151 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2152 <DL>
2153 <DD>Return statistics for individual files in the cache.
2154 <p>
2155 <P>
2156 <DD><DL>
2157
2158 <DT><B>Returns:</B><DD>statistics for individual files in the cache.
2159 <DT><B>Throws:</B>
2160 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2161 </DD>
2162 </DL>
2163 <HR>
2164
2165 <A NAME="getLogStats(com.sleepycat.db.StatsConfig)"><!-- --></A><H3>
2166 getLogStats</H3>
2167 <PRE>
2168 public <A HREF="../../../com/sleepycat/db/LogStats.html" title="class in com.sleepycat.db">LogStats</A> <B>getLogStats</B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)
2169 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2170 <DL>
2171 <DD>Return the database environment's logging statistics.
2172 <p>
2173 <P>
2174 <DD><DL>
2175 <DT><B>Parameters:</B><DD><CODE>config</CODE> - The statistics attributes. If null, default attributes are used.
2176 <p>
2177 <DT><B>Returns:</B><DD>The database environment's logging statistics.
2178 <p>
2179 <p>
2180 <DT><B>Throws:</B>
2181 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2182 </DD>
2183 </DL>
2184 <HR>
2185
2186 <A NAME="getReplicationStats(com.sleepycat.db.StatsConfig)"><!-- --></A><H3>
2187 getReplicationStats</H3>
2188 <PRE>
2189 public <A HREF="../../../com/sleepycat/db/ReplicationStats.html" title="class in com.sleepycat.db">ReplicationStats</A> <B>getReplicationStats</B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)
2190 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2191 <DL>
2192 <DD>Return the database environment's replication statistics.
2193 <p>
2194 <P>
2195 <DD><DL>
2196 <DT><B>Parameters:</B><DD><CODE>config</CODE> - The statistics attributes. If null, default attributes are used.
2197 <p>
2198 <DT><B>Returns:</B><DD>The database environment's replication statistics.
2199 <p>
2200 <p>
2201 <DT><B>Throws:</B>
2202 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2203 </DD>
2204 </DL>
2205 <HR>
2206
2207 <A NAME="getReplicationManagerStats(com.sleepycat.db.StatsConfig)"><!-- --></A><H3>
2208 getReplicationManagerStats</H3>
2209 <PRE>
2210 public <A HREF="../../../com/sleepycat/db/ReplicationManagerStats.html" title="class in com.sleepycat.db">ReplicationManagerStats</A> <B>getReplicationManagerStats</B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)
2211 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2212 <DL>
2213 <DD>Return the database environment's replication manager statistics.
2214 <p>
2215 <P>
2216 <DD><DL>
2217 <DT><B>Parameters:</B><DD><CODE>config</CODE> - The statistics attributes. If null, default attributes are used.
2218 <p>
2219 <DT><B>Returns:</B><DD>The database environment's replication manager statistics.
2220 <p>
2221 <p>
2222 <DT><B>Throws:</B>
2223 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2224 </DD>
2225 </DL>
2226 <HR>
2227
2228 <A NAME="getLockStats(com.sleepycat.db.StatsConfig)"><!-- --></A><H3>
2229 getLockStats</H3>
2230 <PRE>
2231 public <A HREF="../../../com/sleepycat/db/LockStats.html" title="class in com.sleepycat.db">LockStats</A> <B>getLockStats</B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)
2232 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2233 <DL>
2234 <DD>Return the database environment's locking statistics.
2235 <p>
2236 <P>
2237 <DD><DL>
2238 <DT><B>Parameters:</B><DD><CODE>config</CODE> - The locking statistics attributes. If null, default attributes are used.
2239 <p>
2240 <DT><B>Returns:</B><DD>The database environment's locking statistics.
2241 <p>
2242 <p>
2243 <DT><B>Throws:</B>
2244 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2245 </DD>
2246 </DL>
2247 <HR>
2248
2249 <A NAME="getMutexStats(com.sleepycat.db.StatsConfig)"><!-- --></A><H3>
2250 getMutexStats</H3>
2251 <PRE>
2252 public <A HREF="../../../com/sleepycat/db/MutexStats.html" title="class in com.sleepycat.db">MutexStats</A> <B>getMutexStats</B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)
2253 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2254 <DL>
2255 <DD>Return the database environment's mutex statistics.
2256 <p>
2257 <P>
2258 <DD><DL>
2259 <DT><B>Parameters:</B><DD><CODE>config</CODE> - The statistics attributes. If null, default attributes are used.
2260 <p>
2261 <DT><B>Returns:</B><DD>The database environment's mutex statistics.
2262 <p>
2263 <p>
2264 <DT><B>Throws:</B>
2265 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2266 </DD>
2267 </DL>
2268 <HR>
2269
2270 <A NAME="getTransactionStats(com.sleepycat.db.StatsConfig)"><!-- --></A><H3>
2271 getTransactionStats</H3>
2272 <PRE>
2273 public <A HREF="../../../com/sleepycat/db/TransactionStats.html" title="class in com.sleepycat.db">TransactionStats</A> <B>getTransactionStats</B>(<A HREF="../../../com/sleepycat/db/StatsConfig.html" title="class in com.sleepycat.db">StatsConfig</A>&nbsp;config)
2274 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2275 <DL>
2276 <DD>Return the database environment's transactional statistics.
2277 <p>
2278 <P>
2279 <DD><DL>
2280 <DT><B>Parameters:</B><DD><CODE>config</CODE> - The transactional statistics attributes. If null, default attributes are used.
2281 <p>
2282 <DT><B>Returns:</B><DD>The database environment's transactional statistics.
2283 <p>
2284 <p>
2285 <DT><B>Throws:</B>
2286 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2287 </DD>
2288 </DL>
2289 <HR>
2290
2291 <A NAME="beginCDSGroup()"><!-- --></A><H3>
2292 beginCDSGroup</H3>
2293 <PRE>
2294 public <A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A> <B>beginCDSGroup</B>()
2295 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2296 <DL>
2297 <DD>Allocate a locker ID in an environment configured for Berkeley DB
2298 Concurrent Data Store applications. Returns a <A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db"><CODE>Transaction</CODE></A> object
2299 that uniquely identifies the locker ID. Calling the <A HREF="../../../com/sleepycat/db/Transaction.html#commit()"><CODE>Transaction.commit()</CODE></A> method will discard the allocated locker ID.
2300 <p>
2301 See
2302 <a href="../../../../programmer_reference/cam.html#cam_intro" target="_top">Berkeley DB Concurrent Data Store applications</a>
2303 for more information about when this is required.
2304 This method may be called at any time during the life of the application.
2305 <p>
2306 <P>
2307 <DD><DL>
2308
2309 <DT><B>Returns:</B><DD>A transaction handle that wraps a CDS locker ID.
2310 <DT><B>Throws:</B>
2311 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2312 </DD>
2313 </DL>
2314 <HR>
2315
2316 <A NAME="beginTransaction(com.sleepycat.db.Transaction, com.sleepycat.db.TransactionConfig)"><!-- --></A><H3>
2317 beginTransaction</H3>
2318 <PRE>
2319 public <A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A> <B>beginTransaction</B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;parent,
2320 <A HREF="../../../com/sleepycat/db/TransactionConfig.html" title="class in com.sleepycat.db">TransactionConfig</A>&nbsp;config)
2321 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2322 <DL>
2323 <DD>Create a new transaction in the database environment.
2324 <p>
2325 Transactions may only span threads if they do so serially; that is,
2326 each transaction must be active in only a single thread of control
2327 at a time.
2328 <p>
2329 This restriction holds for parents of nested transactions as well;
2330 no two children may be concurrently active in more than one thread
2331 of control at any one time.
2332 <p>
2333 Cursors may not span transactions; that is, each cursor must be opened
2334 and closed within a single transaction.
2335 <p>
2336 A parent transaction may not issue any Berkeley DB operations --
2337 except for <A HREF="../../../com/sleepycat/db/Environment.html#beginTransaction(com.sleepycat.db.Transaction, com.sleepycat.db.TransactionConfig)"><CODE>Environment.beginTransaction</CODE></A>,
2338 <A HREF="../../../com/sleepycat/db/Transaction.html#abort()"><CODE>Transaction.abort</CODE></A> and <A HREF="../../../com/sleepycat/db/Transaction.html#commit()"><CODE>Transaction.commit</CODE></A> --
2339 while it has active child transactions (child transactions that have
2340 not yet been committed or aborted).
2341 <p>
2342 <P>
2343 <DD><DL>
2344 <DT><B>Parameters:</B><DD><CODE>parent</CODE> - If the parent parameter is non-null, the new transaction will be a
2345 nested transaction, with the transaction indicated by parent as its
2346 parent. Transactions may be nested to any level. In the presence
2347 of distributed transactions and two-phase commit, only the parental
2348 transaction, that is a transaction without a parent specified,
2349 should be passed as an parameter to <A HREF="../../../com/sleepycat/db/Transaction.html#prepare(byte[])"><CODE>Transaction.prepare</CODE></A>.
2350 <p><DD><CODE>config</CODE> - The transaction attributes. If null, default attributes are used.
2351 <p>
2352 <DT><B>Returns:</B><DD>The newly created transaction's handle.
2353 <p>
2354 <DT><B>Throws:</B>
2355 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2356 </DD>
2357 </DL>
2358 <HR>
2359
2360 <A NAME="checkpoint(com.sleepycat.db.CheckpointConfig)"><!-- --></A><H3>
2361 checkpoint</H3>
2362 <PRE>
2363 public void <B>checkpoint</B>(<A HREF="../../../com/sleepycat/db/CheckpointConfig.html" title="class in com.sleepycat.db">CheckpointConfig</A>&nbsp;config)
2364 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2365 <DL>
2366 <DD>Synchronously checkpoint the database environment.
2367 <p>
2368 <p>
2369 <P>
2370 <DD><DL>
2371 <DT><B>Parameters:</B><DD><CODE>config</CODE> - The checkpoint attributes. If null, default attributes are used.
2372 <p>
2373 <DT><B>Throws:</B>
2374 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2375 </DD>
2376 </DL>
2377 <HR>
2378
2379 <A NAME="logFlush(com.sleepycat.db.LogSequenceNumber)"><!-- --></A><H3>
2380 logFlush</H3>
2381 <PRE>
2382 public void <B>logFlush</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A>&nbsp;lsn)
2383 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2384 <DL>
2385 <DD>Flush log records to stable storage.
2386 <p>
2387 <P>
2388 <DD><DL>
2389 <DT><B>Parameters:</B><DD><CODE>lsn</CODE> - All log records with LogSequenceNumber values less than or equal to
2390 the lsn parameter are written to stable storage. If lsn is null,
2391 all records in the log are flushed.
2392 <p>
2393 <p>
2394 <DT><B>Throws:</B>
2395 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2396 </DD>
2397 </DL>
2398 <HR>
2399
2400 <A NAME="logPut(com.sleepycat.db.DatabaseEntry, boolean)"><!-- --></A><H3>
2401 logPut</H3>
2402 <PRE>
2403 public <A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> <B>logPut</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;data,
2404 boolean&nbsp;flush)
2405 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2406 <DL>
2407 <DD>Append a record to the log.
2408 <p>
2409 <P>
2410 <DD><DL>
2411 <DT><B>Parameters:</B><DD><CODE>data</CODE> - The record to append to the log.
2412 <p>
2413 The caller is responsible for providing any necessary structure to
2414 data. (For example, in a write-ahead logging protocol, the
2415 application must understand what part of data is an operation code,
2416 what part is redo information, and what part is undo information.
2417 In addition, most transaction managers will store in data the
2418 LogSequenceNumber of the previous log record for the same
2419 transaction, to support chaining back through the transaction's log
2420 records during undo.)
2421 <p><DD><CODE>flush</CODE> - The log is forced to disk after this record is written, guaranteeing
2422 that all records with LogSequenceNumber values less than or equal
2423 to the one being "put" are on disk before this method returns.
2424 <p>
2425 <DT><B>Returns:</B><DD>The LogSequenceNumber of the put record.
2426 <p>
2427 <p>
2428 <DT><B>Throws:</B>
2429 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2430 </DD>
2431 </DL>
2432 <HR>
2433
2434 <A NAME="logPrint(com.sleepycat.db.Transaction, java.lang.String)"><!-- --></A><H3>
2435 logPrint</H3>
2436 <PRE>
2437 public void <B>logPrint</B>(<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db">Transaction</A>&nbsp;txn,
2438 <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;message)
2439 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2440 <DL>
2441 <DD>Append an informational message to the Berkeley DB database environment log files.
2442 <p>
2443 This method allows applications to include information in
2444 the database environment log files, for later review using the
2445 <a href="../../../../api_reference/C/db_printlog.html" target="_top">db_printlog</a>
2446 utility. This method is intended for debugging and performance tuning.
2447 <p>
2448 <P>
2449 <DD><DL>
2450 <DT><B>Parameters:</B><DD><CODE>txn</CODE> - If the logged message refers to an application-specified transaction,
2451 the <code>txn</code> parameter is a transaction handle, otherwise
2452 <code>null</code>.
2453 <p>
2454 <p>
2455 <DT><B>Throws:</B>
2456 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2457 </DD>
2458 </DL>
2459 <HR>
2460
2461 <A NAME="getArchiveLogFiles(boolean)"><!-- --></A><H3>
2462 getArchiveLogFiles</H3>
2463 <PRE>
2464 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>getArchiveLogFiles</B>(boolean&nbsp;includeInUse)
2465 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2466 <DL>
2467 <DD>Return an array of log files.
2468 <p>
2469 When Replication Manager is in use, log archiving is performed in a
2470 replication group-aware manner such that the log file status of other sites
2471 in the group is considered to determine if a log file is in use.
2472 <p>
2473 Log cursor handles (returned by the
2474 <A HREF="../../../com/sleepycat/db/Environment.html#openLogCursor()"><CODE>openLogCursor() method</CODE></A> may
2475 have open file descriptors for log files in the database environment. Also,
2476 the Berkeley DB interfaces to the database environment logging subsystem (for
2477 example, <A HREF="../../../com/sleepycat/db/Environment.html#logPut(com.sleepycat.db.DatabaseEntry, boolean)"><CODE>logPut</CODE></A> and
2478 <A HREF="../../../com/sleepycat/db/Transaction.html#abort()"><CODE>Transaction.abort</CODE></A> may allocate log
2479 cursors and have open file descriptors for log files as well. On operating
2480 systems where filesystem related system calls (for example, rename and unlink
2481 on Windows/NT) can fail if a process has an open file descriptor for the
2482 affected file, attempting to move or remove returned log files may fail. All
2483 Berkeley DB internal use of log cursors operates on active log files only and
2484 furthermore, is short-lived in nature. So, an application seeing such a
2485 failure should be restructured to close any open log cursors it may have, and
2486 otherwise to retry the operation until it succeeds. (Although the latter is
2487 not likely to be necessary; it is hard to imagine a reason to move or rename
2488 a log file in which transactions are being logged or aborted.)
2489 <p>
2490 See
2491 <a href="../../../../api_reference/C/db_archive.html" target="_top">db_archive</a>
2492 for more information on database archival procedures.
2493 <p>
2494 <P>
2495 <DD><DL>
2496 <DT><B>Parameters:</B><DD><CODE>includeInUse</CODE> - if true, all log files, regardless of whether or not they
2497 are in use, are returned. Otherwise, the log files that are no longer in use
2498 (for example, that are no longer involved in active transactions), and that
2499 may safely be archived for catastrophic recovery and then removed from the
2500 system.
2501 <p>
2502 <DT><B>Returns:</B><DD>An array of log files
2503 <DT><B>Throws:</B>
2504 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2505 </DD>
2506 </DL>
2507 <HR>
2508
2509 <A NAME="getArchiveDatabases()"><!-- --></A><H3>
2510 getArchiveDatabases</H3>
2511 <PRE>
2512 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>getArchiveDatabases</B>()
2513 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2514 <DL>
2515 <DD>Return the database files that need to be archived in order to recover the
2516 database from catastrophic failure. If any of the database files have not
2517 been accessed during the lifetime of the current log files, they will not be
2518 returned. It is also possible that some of the files referred to by the log
2519 have since been deleted from the system.
2520 <p>
2521 When Replication Manager is in use, log archiving is performed in a
2522 replication group-aware manner such that the log file status of other sites
2523 in the group is considered to determine if a log file is in use.
2524 <p>
2525 See
2526 <a href="../../../../api_reference/C/db_archive.html" target="_top">db_archive</a>
2527 for more information on database archival procedures.
2528 <p>
2529 <P>
2530 <DD><DL>
2531
2532 <DT><B>Returns:</B><DD>An array of database files
2533 <DT><B>Throws:</B>
2534 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2535 </DD>
2536 </DL>
2537 <HR>
2538
2539 <A NAME="removeOldLogFiles()"><!-- --></A><H3>
2540 removeOldLogFiles</H3>
2541 <PRE>
2542 public void <B>removeOldLogFiles</B>()
2543 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2544 <DL>
2545 <DD>Remove log files that are no longer needed.
2546 <p>
2547 Automatic log file removal is likely to make catastrophic recovery
2548 impossible.
2549 <p>
2550 When Replication Manager is in use, log archiving is performed in a
2551 replication group-aware manner such that the log file status of other sites
2552 in the group is considered to determine if a log file is in use.
2553 <p>
2554 <p>
2555 <P>
2556 <DD><DL>
2557
2558 <DT><B>Throws:</B>
2559 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2560 </DD>
2561 </DL>
2562 <HR>
2563
2564 <A NAME="recover(int, boolean)"><!-- --></A><H3>
2565 recover</H3>
2566 <PRE>
2567 public <A HREF="../../../com/sleepycat/db/PreparedTransaction.html" title="class in com.sleepycat.db">PreparedTransaction</A>[] <B>recover</B>(int&nbsp;count,
2568 boolean&nbsp;continued)
2569 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2570 <DL>
2571 <DD>Environment recovery restores transactions that were prepared, but not yet
2572 resolved at the time of the system shut down or crash, to their state prior
2573 to the shut down or crash, including any locks previously held. This method
2574 returns a list of those prepared transactions.
2575 <p>
2576 This method should only be called after the environment has been recovered.
2577 <p>
2578 Multiple threads of control may call this method, but only one thread of
2579 control may resolve each returned transaction, that is, only one thread of
2580 control may call
2581 <A HREF="../../../com/sleepycat/db/Transaction.html#commit()"><CODE>Transaction.commit()</CODE></A> or
2582 <A HREF="../../../com/sleepycat/db/Transaction.html#abort()"><CODE>Transaction.abort()</CODE></A> each returned
2583 transaction. Callers must call
2584 <A HREF="../../../com/sleepycat/db/Transaction.html#discard()"><CODE>Transaction.discard()</CODE></A> to discard
2585 each transaction they do not resolve.
2586 <p>
2587 <P>
2588 <DD><DL>
2589
2590 <DT><B>Returns:</B><DD>a list of <A HREF="../../../com/sleepycat/db/PreparedTransaction.html" title="class in com.sleepycat.db"><CODE>transactions</CODE></A>
2591 that must be resolved by the application (committed, aborted or discarded).
2592 <DT><B>Throws:</B>
2593 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2594 </DD>
2595 </DL>
2596 <HR>
2597
2598 <A NAME="resetFileID(java.lang.String, boolean)"><!-- --></A><H3>
2599 resetFileID</H3>
2600 <PRE>
2601 public void <B>resetFileID</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;filename,
2602 boolean&nbsp;encrypted)
2603 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2604 <DL>
2605 <DD>Allows database files to be copied, and then the copy used in the same
2606 database environment as the original.
2607 <p>
2608 All databases contain an ID string used to identify the database in the
2609 database environment cache. If a physical database file is copied, and
2610 used in the same environment as another file with the same ID strings,
2611 corruption can occur. This method creates new ID strings for all of
2612 the databases in the physical file.
2613 <p>
2614 This method modifies the physical file, in-place.
2615 Applications should not reset IDs in files that are currently in use.
2616 <p>
2617 This method may be called at any time during the life of the application.
2618 <p>
2619 <P>
2620 <DD><DL>
2621 <DT><B>Parameters:</B><DD><CODE>filename</CODE> - The name of the physical file in which the LSNs are to be cleared.<DD><CODE>encrypted</CODE> - Whether the file contains encrypted databases.
2622 <p>
2623 <DT><B>Throws:</B>
2624 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2625 </DD>
2626 </DL>
2627 <HR>
2628
2629 <A NAME="resetLogSequenceNumber(java.lang.String, boolean)"><!-- --></A><H3>
2630 resetLogSequenceNumber</H3>
2631 <PRE>
2632 public void <B>resetLogSequenceNumber</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;filename,
2633 boolean&nbsp;encrypted)
2634 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2635 <DL>
2636 <DD>Allows database files to be moved from one transactional database
2637 environment to another.
2638 <p>
2639 Database pages in transactional database environments contain references
2640 to the environment's log files (that is, log sequence numbers, or LSNs).
2641 Copying or moving a database file from one database environment to
2642 another, and then modifying it, can result in data corruption if the
2643 LSNs are not first cleared.
2644 <p>
2645 Note that LSNs should be reset before moving or copying the database
2646 file into a new database environment, rather than moving or copying the
2647 database file and then resetting the LSNs. Berkeley DB has consistency checks
2648 that may be triggered if an application calls this method
2649 on a database in a new environment when the database LSNs still reflect
2650 the old environment.
2651 <p>
2652 This method modifies the physical file, in-place.
2653 Applications should not reset LSNs in files that are currently in use.
2654 <p>
2655 This method may be called at any time during the life of the application.
2656 <p>
2657 <P>
2658 <DD><DL>
2659 <DT><B>Parameters:</B><DD><CODE>filename</CODE> - The name of the physical file in which the LSNs are to be cleared.<DD><CODE>encrypted</CODE> - Whether the file contains encrypted databases.
2660 <p>
2661 <DT><B>Throws:</B>
2662 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
2663 </DD>
2664 </DL>
2665 <HR>
2666
2667 <A NAME="panic(boolean)"><!-- --></A><H3>
2668 panic</H3>
2669 <PRE>
2670 public void <B>panic</B>(boolean&nbsp;onoff)
2671 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2672 <DL>
2673 <DD>Set the panic state for the database environment.
2674 Database environments in a panic state normally refuse all attempts to
2675 call library functions, throwing a
2676 <A HREF="../../../com/sleepycat/db/RunRecoveryException.html" title="class in com.sleepycat.db"><CODE>RunRecoveryException</CODE></A>.
2677 <p>
2678 This method configures a database environment, including all threads of
2679 control accessing the database environment, not only the operations
2680 performed using a specified
2681 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle.
2682 <p>
2683 This method may be called at any time during the life of the application.
2684 <p>
2685 <P>
2686 <DD><DL>
2687 <DT><B>Parameters:</B><DD><CODE>onoff</CODE> - If true, set the panic state for the database environment.
2688 <DT><B>Throws:</B>
2689 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2690 </DD>
2691 </DL>
2692 <HR>
2693
2694 <A NAME="backup(java.lang.String, com.sleepycat.db.BackupOptions)"><!-- --></A><H3>
2695 backup</H3>
2696 <PRE>
2697 public void <B>backup</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;target,
2698 <A HREF="../../../com/sleepycat/db/BackupOptions.html" title="class in com.sleepycat.db">BackupOptions</A>&nbsp;opt)
2699 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2700 <DL>
2701 <DD>Perform a hot back up of the open environment.
2702 <p>
2703 All files used by the environment are backed up, so long as the normal
2704 rules for file placement are followed. For information on how files
2705 are normally placed relative to the environment directory, see the
2706 <a href="../../../../programmer_reference/env_naming.html" target="_top">
2707 Berkeley DB File Naming
2708 </a> section in the <i>Berkeley DB Reference Guide</i>.
2709 <p>
2710 By default, data directories and the log directory specified relative
2711 to the home directory will be recreated relative to the target
2712 directory. If absolute path names are used, then
2713 use the <A HREF="../../../com/sleepycat/db/BackupOptions.html#setSingleDir(boolean)"><CODE>BackupOptions.setSingleDir</CODE></A>
2714 method.
2715 <p>
2716 This method provides the same functionality as the
2717 <a href="../../../../api_reference/C/db_hotbackup.html" target="_top">db_hotbackup</a>
2718 utility. However, this method does not perform the housekeeping
2719 actions performed by that utility. In particular, you may
2720 want to run a checkpoint before calling this method. To run a
2721 checkpoint, use the
2722 <A HREF="../../../com/sleepycat/db/Environment.html#checkpoint(com.sleepycat.db.CheckpointConfig)"><CODE>Environment.checkpoint</CODE></A>
2723 method. For more information on checkpoints, see the
2724 <a href="../../../../programmer_reference/transapp_checkpoint.html" target="_top">Checkpoint</a>
2725 section in the Berkeley DB Reference Guide.
2726 <p>
2727 To back up a single database file within the environment, use the
2728 <A HREF="../../../com/sleepycat/db/Environment.html#backupDatabase(java.lang.String, java.lang.String, boolean)"><CODE>Environment.backupDatabase</CODE></A>
2729 method.
2730 <p>
2731 In addition to the configuration options available using the
2732 <A HREF="../../../com/sleepycat/db/BackupOptions.html" title="class in com.sleepycat.db"><CODE>BackupOptions</CODE></A>
2733 class, additional tuning modifications can be made using the
2734 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupReadCount(int)"><CODE>EnvironmentConfig.setBackupReadCount</CODE></A>,
2735 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupReadSleep(int)"><CODE>EnvironmentConfig.setBackupReadSleep</CODE></A>,
2736 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupSize(int)"><CODE>EnvironmentConfig.setBackupSize</CODE></A>, and
2737 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupWriteDirect(boolean)"><CODE>EnvironmentConfig.setBackupWriteDirect</CODE></A>
2738 methods. Alternatively, you can write your own custom hot back up facility using the
2739 <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db"><CODE>BackupHandler</CODE></A> interface.
2740 <p>
2741 This method may only be called after the environment has been opened.
2742 <p>
2743 <P>
2744 <DD><DL>
2745 <DT><B>Parameters:</B><DD><CODE>target</CODE> - Identifies the directory in which the back up will be placed. Any
2746 subdirectories required to contain the back up must be placed relative
2747 to this directory. Note that if a
2748 <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db"><CODE>BackupHandler</CODE></A> is configured for the
2749 environment, then the
2750 value specified to this parameter is passed on to the
2751 <A HREF="../../../com/sleepycat/db/BackupHandler.html#open(java.lang.String, java.lang.String)"><CODE>BackupHandler.open</CODE></A>
2752 method.
2753 If this parameter is null, then the target must be specified
2754 to the
2755 <A HREF="../../../com/sleepycat/db/BackupHandler.html#open(java.lang.String, java.lang.String)"><CODE>BackupHandler.open</CODE></A>
2756 method.
2757 <p>
2758 This directory, and any required subdirectories, will be created for
2759 you if you specify true for the
2760 <A HREF="../../../com/sleepycat/db/BackupOptions.html#setAllowCreate(boolean)"><CODE>BackupOptions.setAllowCreate</CODE></A>
2761 method. Otherwise, if the target does not exist, this method
2762 throws a
2763 <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db"><CODE>DatabaseException</CODE></A> exception.
2764 <p><DD><CODE>opt</CODE> - The <A HREF="../../../com/sleepycat/db/BackupOptions.html" title="class in com.sleepycat.db"><CODE>BackupOptions</CODE></A> instance used to
2765 configure the hot back up.
2766 <p>
2767 <DT><B>Throws:</B>
2768 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs at any point during the back up.</DL>
2769 </DD>
2770 </DL>
2771 <HR>
2772
2773 <A NAME="backupDatabase(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>
2774 backupDatabase</H3>
2775 <PRE>
2776 public void <B>backupDatabase</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;dbfile,
2777 <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;target,
2778 boolean&nbsp;exclusiveCreate)
2779 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2780 <DL>
2781 <DD>Perform a hot back up of a single database file contained within the environment.
2782 <p>
2783 To back up the entire environment, use the
2784 <A HREF="../../../com/sleepycat/db/Environment.html#backup(java.lang.String, com.sleepycat.db.BackupOptions)"><CODE>Environment.backup</CODE></A>
2785 method.
2786 <p>
2787 You can make some tuning modifications to the backup process using the
2788 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupReadCount(int)"><CODE>EnvironmentConfig.setBackupReadCount</CODE></A>,
2789 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupReadSleep(int)"><CODE>EnvironmentConfig.setBackupReadSleep</CODE></A>,
2790 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupSize(int)"><CODE>EnvironmentConfig.setBackupSize</CODE></A>, and
2791 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupWriteDirect(boolean)"><CODE>EnvironmentConfig.setBackupWriteDirect</CODE></A>
2792 methods. Alternatively, you can write your own custom hot back up facility using the
2793 <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db"><CODE>BackupHandler</CODE></A> interface.
2794 <p>
2795 This method may only be called after the environment has been opened.
2796 <p>
2797 <P>
2798 <DD><DL>
2799 <DT><B>Parameters:</B><DD><CODE>dbfile</CODE> - The database file that you want to back up.
2800 <p><DD><CODE>target</CODE> - Identifies the directory in which the back up will be placed.
2801 The target must exist; otherwise this method throws a
2802 <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db"><CODE>DatabaseException</CODE></A> exception.
2803 Note that if a
2804 <A HREF="../../../com/sleepycat/db/BackupHandler.html" title="interface in com.sleepycat.db"><CODE>BackupHandler</CODE></A> is configured for the
2805 environment, then the
2806 value specified to this parameter is passed on to the
2807 <A HREF="../../../com/sleepycat/db/BackupHandler.html#open(java.lang.String, java.lang.String)"><CODE>BackupHandler.open</CODE></A>
2808 method.
2809 If this parameter is null, then the target must be specified
2810 to the
2811 <A HREF="../../../com/sleepycat/db/BackupHandler.html#open(java.lang.String, java.lang.String)"><CODE>BackupHandler.open</CODE></A>
2812 method.
2813 <p><DD><CODE>exclusiveCreate</CODE> - If true, then if the target file exists, this method throws a
2814 <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db"><CODE>DatabaseException</CODE></A> exception.
2815 <p>
2816 <DT><B>Throws:</B>
2817 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs at any point during the back up.</DL>
2818 </DD>
2819 </DL>
2820 <HR>
2821
2822 <A NAME="getVersionString()"><!-- --></A><H3>
2823 getVersionString</H3>
2824 <PRE>
2825 public static <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>getVersionString</B>()</PRE>
2826 <DL>
2827 <DD>Return the release version information, suitable for display.
2828 <p>
2829 This method may be called at any time during the life of the application.
2830 <p>
2831 <P>
2832 <DD><DL>
2833
2834 <DT><B>Returns:</B><DD>The release version information, suitable for display.</DL>
2835 </DD>
2836 </DL>
2837 <HR>
2838
2839 <A NAME="getVersionFullString()"><!-- --></A><H3>
2840 getVersionFullString</H3>
2841 <PRE>
2842 public static <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>getVersionFullString</B>()</PRE>
2843 <DL>
2844 <DD>Return the full release version information, suitable for display.
2845 <p>
2846 This method may be called at any time during the life of the application.
2847 <p>
2848 <P>
2849 <DD><DL>
2850
2851 <DT><B>Returns:</B><DD>The full release version information, suitable for display.</DL>
2852 </DD>
2853 </DL>
2854 <HR>
2855
2856 <A NAME="getVersionFamily()"><!-- --></A><H3>
2857 getVersionFamily</H3>
2858 <PRE>
2859 public static int <B>getVersionFamily</B>()</PRE>
2860 <DL>
2861 <DD>Return the release's Oracle family number.
2862 <p>
2863 This method may be called at any time during the life of the application.
2864 <p>
2865 <P>
2866 <DD><DL>
2867
2868 <DT><B>Returns:</B><DD>The release's Oracle family number.</DL>
2869 </DD>
2870 </DL>
2871 <HR>
2872
2873 <A NAME="getVersionRelease()"><!-- --></A><H3>
2874 getVersionRelease</H3>
2875 <PRE>
2876 public static int <B>getVersionRelease</B>()</PRE>
2877 <DL>
2878 <DD>Return the release's Oracle release number.
2879 <p>
2880 This method may be called at any time during the life of the application.
2881 <p>
2882 <P>
2883 <DD><DL>
2884
2885 <DT><B>Returns:</B><DD>The release's Oracle release number.</DL>
2886 </DD>
2887 </DL>
2888 <HR>
2889
2890 <A NAME="getVersionMajor()"><!-- --></A><H3>
2891 getVersionMajor</H3>
2892 <PRE>
2893 public static int <B>getVersionMajor</B>()</PRE>
2894 <DL>
2895 <DD>Return the release major number.
2896 <p>
2897 This method may be called at any time during the life of the application.
2898 <p>
2899 <P>
2900 <DD><DL>
2901
2902 <DT><B>Returns:</B><DD>The release major number.</DL>
2903 </DD>
2904 </DL>
2905 <HR>
2906
2907 <A NAME="syncCache(com.sleepycat.db.LogSequenceNumber)"><!-- --></A><H3>
2908 syncCache</H3>
2909 <PRE>
2910 public void <B>syncCache</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A>&nbsp;logSequenceNumber)
2911 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2912 <DL>
2913 <DD>Ensure that all modified pages in the cache are flushed to their backing files.
2914 <p>
2915 Pages in the cache that cannot be immediately written back to disk (for example
2916 pages that are currently in use by another thread of control) are waited for
2917 and written to disk as soon as it is possible to do so.
2918 <p>
2919 <P>
2920 <DD><DL>
2921 <DT><B>Parameters:</B><DD><CODE>logSequenceNumber</CODE> - The purpose of the logSequenceNumber parameter is to enable a transaction
2922 manager to ensure, as part of a checkpoint, that all pages modified by a
2923 certain time have been written to disk.
2924 <p>
2925 All modified pages with a log sequence number less than the logSequenceNumber
2926 parameter are written to disk. If logSequenceNumber is null, all modified
2927 pages in the cache are written to disk.
2928 <DT><B>Throws:</B>
2929 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2930 </DD>
2931 </DL>
2932 <HR>
2933
2934 <A NAME="isTransactionApplied(byte[], int)"><!-- --></A><H3>
2935 isTransactionApplied</H3>
2936 <PRE>
2937 public <A HREF="../../../com/sleepycat/db/TransactionStatus.html" title="class in com.sleepycat.db">TransactionStatus</A> <B>isTransactionApplied</B>(byte[]&nbsp;token,
2938 int&nbsp;maxwait)
2939 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE>
2940 <DL>
2941 <DD>Return whether the transaction referred to by the commit token "token" has
2942 been applied at the local replication environment.
2943 <p>
2944 This method may not be called before the database environment is opened.
2945 <p>
2946 <P>
2947 <DD><DL>
2948 <DT><B>Parameters:</B><DD><CODE>maxwait</CODE> - The maximum time to wait for the transaction to arrive by replication,
2949 expressed in microseconds. To check the status of the transaction
2950 without waiting, the timeout may be specified as 0.
2951 <p>
2952 <DT><B>Returns:</B><DD>TransactionStatus indicating the status of the applicaton of the transaction.
2953 <DT><B>Throws:</B>
2954 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL>
2955 </DD>
2956 </DL>
2957 <HR>
2958
2959 <A NAME="getVersionMinor()"><!-- --></A><H3>
2960 getVersionMinor</H3>
2961 <PRE>
2962 public static int <B>getVersionMinor</B>()</PRE>
2963 <DL>
2964 <DD>Return the release minor number.
2965 <p>
2966 This method may be called at any time during the life of the application.
2967 <p>
2968 <P>
2969 <DD><DL>
2970
2971 <DT><B>Returns:</B><DD>The release minor number.</DL>
2972 </DD>
2973 </DL>
2974 <HR>
2975
2976 <A NAME="getVersionPatch()"><!-- --></A><H3>
2977 getVersionPatch</H3>
2978 <PRE>
2979 public static int <B>getVersionPatch</B>()</PRE>
2980 <DL>
2981 <DD>Return the release patch number.
2982 <p>
2983 This method may be called at any time during the life of the application.
2984 <p>
2985 <P>
2986 <DD><DL>
2987
2988 <DT><B>Returns:</B><DD>The release patch number.</DL>
2989 </DD>
2990 </DL>
2991 <!-- ========= END OF CLASS DATA ========= -->
2992 <HR>
2993
2994
2995 <!-- ======= START OF BOTTOM NAVBAR ====== -->
2996 <A NAME="navbar_bottom"><!-- --></A>
2997 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
2998 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
2999 <TR>
3000 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
3001 <A NAME="navbar_bottom_firstrow"><!-- --></A>
3002 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
3003 <TR ALIGN="center" VALIGN="top">
3004 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
3005 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
3006 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
3007 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Environment.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
3008 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
3009 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
3010 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
3011 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
3012 </TR>
3013 </TABLE>
3014 </TD>
3015 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
3016 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
3017 </TD>
3018 </TR>
3019
3020 <TR>
3021 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
3022 &nbsp;<A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
3023 &nbsp;<A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
3024 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
3025 <A HREF="../../../index.html?com/sleepycat/db/Environment.html" target="_top"><B>FRAMES</B></A> &nbsp;
3026 &nbsp;<A HREF="Environment.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
3027 &nbsp;<SCRIPT type="text/javascript">
3028 <!--
3029 if(window==top) {
3030 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
3031 }
3032 //-->
3033 </SCRIPT>
3034 <NOSCRIPT>
3035 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
3036 </NOSCRIPT>
3037
3038
3039 </FONT></TD>
3040 </TR>
3041 <TR>
3042 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
3043 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>
3044 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
3045 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>
3046 </TR>
3047 </TABLE>
3048 <A NAME="skip-navbar_bottom"></A>
3049 <!-- ======== END OF BOTTOM NAVBAR ======= -->
3050
3051 <HR>
3052 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
3053 </BODY>
3054 </HTML>