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_03) on Mon Apr 12 16:25:47 EDT 2010 --> 6<TITLE> 7RecoveryOperation (Oracle - Berkeley DB Java API) 8</TITLE> 9 10<META NAME="date" CONTENT="2010-04-12"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 if (location.href.indexOf('is-external=true') == -1) { 18 parent.document.title="RecoveryOperation (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> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RecoveryOperation.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 4.8.30</font></EM> 53</TD> 54</TR> 55 56<TR> 57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 58 <A HREF="../../../com/sleepycat/db/RecordNumberAppender.html" title="interface in com.sleepycat.db"><B>PREV CLASS</B></A> 59 <A HREF="../../../com/sleepycat/db/ReplicationConfig.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/RecoveryOperation.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="RecoveryOperation.html" target="_top"><B>NO FRAMES</B></A> 63 <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: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> 80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 81DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <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"> 91com.sleepycat.db</FONT> 92<BR> 93Class RecoveryOperation</H2> 94<PRE> 95<A HREF="http://java.sun.com/j2se/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.RecoveryOperation</B> 97</PRE> 98<HR> 99<DL> 100<DT><PRE>public final class <B>RecoveryOperation</B><DT>extends <A HREF="http://java.sun.com/j2se/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> 104The recovery operation being performed when <A HREF="../../../com/sleepycat/db/LogRecordHandler.html#handleLogRecord(com.sleepycat.db.Environment, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.RecoveryOperation)"><CODE>LogRecordHandler.handleLogRecord</CODE></A> is called. 105<P> 106 107<P> 108<HR> 109 110<P> 111<!-- =========== FIELD SUMMARY =========== --> 112 113<A NAME="field_summary"><!-- --></A> 114<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 115<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 116<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 117<B>Field Summary</B></FONT></TH> 118</TR> 119<TR BGCOLOR="white" CLASS="TableRowColor"> 120<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 121<CODE>static <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A></CODE></FONT></TD> 122<TD><CODE><B><A HREF="../../../com/sleepycat/db/RecoveryOperation.html#ABORT">ABORT</A></B></CODE> 123 124<BR> 125 The log is being read backward during a transaction abort; undo the 126 operation described by the log record.</TD> 127</TR> 128<TR BGCOLOR="white" CLASS="TableRowColor"> 129<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 130<CODE>static <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A></CODE></FONT></TD> 131<TD><CODE><B><A HREF="../../../com/sleepycat/db/RecoveryOperation.html#APPLY">APPLY</A></B></CODE> 132 133<BR> 134 The log is being applied on a replica site; redo the operation 135 described by the log record.</TD> 136</TR> 137<TR BGCOLOR="white" CLASS="TableRowColor"> 138<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 139<CODE>static <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A></CODE></FONT></TD> 140<TD><CODE><B><A HREF="../../../com/sleepycat/db/RecoveryOperation.html#BACKWARD_ROLL">BACKWARD_ROLL</A></B></CODE> 141 142<BR> 143 The log is being read backward to determine which transactions have 144 been committed and to abort those operations that were not; undo the 145 operation described by the log record.</TD> 146</TR> 147<TR BGCOLOR="white" CLASS="TableRowColor"> 148<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 149<CODE>static <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A></CODE></FONT></TD> 150<TD><CODE><B><A HREF="../../../com/sleepycat/db/RecoveryOperation.html#FORWARD_ROLL">FORWARD_ROLL</A></B></CODE> 151 152<BR> 153 The log is being played forward; redo the operation described by the log 154 record.</TD> 155</TR> 156<TR BGCOLOR="white" CLASS="TableRowColor"> 157<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 158<CODE>static <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A></CODE></FONT></TD> 159<TD><CODE><B><A HREF="../../../com/sleepycat/db/RecoveryOperation.html#PRINT">PRINT</A></B></CODE> 160 161<BR> 162 The log is being printed for debugging purposes; print the contents of 163 this log record in the desired format.</TD> 164</TR> 165</TABLE> 166 167<!-- ========== METHOD SUMMARY =========== --> 168 169<A NAME="method_summary"><!-- --></A> 170<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 171<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 172<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 173<B>Method Summary</B></FONT></TH> 174</TR> 175<TR BGCOLOR="white" CLASS="TableRowColor"> 176<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 177<CODE>static <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A></CODE></FONT></TD> 178<TD><CODE><B><A HREF="../../../com/sleepycat/db/RecoveryOperation.html#fromFlag(int)">fromFlag</A></B>(int flag)</CODE> 179 180<BR> 181 Internal: this is public only so it can be called from an internal 182 package.</TD> 183</TR> 184<TR BGCOLOR="white" CLASS="TableRowColor"> 185<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 186<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> 187<TD><CODE><B><A HREF="../../../com/sleepycat/db/RecoveryOperation.html#toString()">toString</A></B>()</CODE> 188 189<BR> 190 </TD> 191</TR> 192</TABLE> 193 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 194<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 195<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 196<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> 197</TR> 198<TR BGCOLOR="white" CLASS="TableRowColor"> 199<TD><CODE><A HREF="http://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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://java.sun.com/j2se/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> 200</TR> 201</TABLE> 202 203<P> 204 205<!-- ============ FIELD DETAIL =========== --> 206 207<A NAME="field_detail"><!-- --></A> 208<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 209<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 210<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 211<B>Field Detail</B></FONT></TH> 212</TR> 213</TABLE> 214 215<A NAME="BACKWARD_ROLL"><!-- --></A><H3> 216BACKWARD_ROLL</H3> 217<PRE> 218public static final <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A> <B>BACKWARD_ROLL</B></PRE> 219<DL> 220<DD>The log is being read backward to determine which transactions have 221 been committed and to abort those operations that were not; undo the 222 operation described by the log record. 223<P> 224<DL> 225</DL> 226</DL> 227<HR> 228 229<A NAME="FORWARD_ROLL"><!-- --></A><H3> 230FORWARD_ROLL</H3> 231<PRE> 232public static final <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A> <B>FORWARD_ROLL</B></PRE> 233<DL> 234<DD>The log is being played forward; redo the operation described by the log 235 record. 236 <p> 237 The FORWARD_ROLL and APPLY operations frequently imply the same actions, 238 redoing changes that appear in the log record, although if a recovery 239 function is to be used on a replication client where reads may be taking 240 place concurrently with the processing of incoming messages, APPLY 241 operations should also perform appropriate locking. 242<P> 243<DL> 244</DL> 245</DL> 246<HR> 247 248<A NAME="ABORT"><!-- --></A><H3> 249ABORT</H3> 250<PRE> 251public static final <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A> <B>ABORT</B></PRE> 252<DL> 253<DD>The log is being read backward during a transaction abort; undo the 254 operation described by the log record. 255<P> 256<DL> 257</DL> 258</DL> 259<HR> 260 261<A NAME="APPLY"><!-- --></A><H3> 262APPLY</H3> 263<PRE> 264public static final <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A> <B>APPLY</B></PRE> 265<DL> 266<DD>The log is being applied on a replica site; redo the operation 267 described by the log record. 268 <p> 269 The FORWARD_ROLL and APPLY operations frequently imply the same actions, 270 redoing changes that appear in the log record, although if a recovery 271 function is to be used on a replication client where reads may be taking 272 place concurrently with the processing of incoming messages, APPLY 273 operations should also perform appropriate locking. 274<P> 275<DL> 276</DL> 277</DL> 278<HR> 279 280<A NAME="PRINT"><!-- --></A><H3> 281PRINT</H3> 282<PRE> 283public static final <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A> <B>PRINT</B></PRE> 284<DL> 285<DD>The log is being printed for debugging purposes; print the contents of 286 this log record in the desired format. 287<P> 288<DL> 289</DL> 290</DL> 291 292<!-- ============ METHOD DETAIL ========== --> 293 294<A NAME="method_detail"><!-- --></A> 295<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 296<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 297<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 298<B>Method Detail</B></FONT></TH> 299</TR> 300</TABLE> 301 302<A NAME="toString()"><!-- --></A><H3> 303toString</H3> 304<PRE> 305public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE> 306<DL> 307<DD> 308<P> 309<DD><DL> 310<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> 311</DD> 312<DD><DL> 313</DL> 314</DD> 315</DL> 316<HR> 317 318<A NAME="fromFlag(int)"><!-- --></A><H3> 319fromFlag</H3> 320<PRE> 321public static <A HREF="../../../com/sleepycat/db/RecoveryOperation.html" title="class in com.sleepycat.db">RecoveryOperation</A> <B>fromFlag</B>(int flag)</PRE> 322<DL> 323<DD>Internal: this is public only so it can be called from an internal 324 package. 325<P> 326<DD><DL> 327<DT><B>Parameters:</B><DD><CODE>flag</CODE> - the internal flag value to be wrapped in a RecoveryException object</DL> 328</DD> 329</DL> 330<!-- ========= END OF CLASS DATA ========= --> 331<HR> 332 333 334<!-- ======= START OF BOTTOM NAVBAR ====== --> 335<A NAME="navbar_bottom"><!-- --></A> 336<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 337<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 338<TR> 339<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 340<A NAME="navbar_bottom_firstrow"><!-- --></A> 341<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 342 <TR ALIGN="center" VALIGN="top"> 343 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 344 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 345 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 346 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RecoveryOperation.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 347 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 348 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 349 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 350 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 351 </TR> 352</TABLE> 353</TD> 354<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 355<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM> 356</TD> 357</TR> 358 359<TR> 360<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 361 <A HREF="../../../com/sleepycat/db/RecordNumberAppender.html" title="interface in com.sleepycat.db"><B>PREV CLASS</B></A> 362 <A HREF="../../../com/sleepycat/db/ReplicationConfig.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 363<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 364 <A HREF="../../../index.html?com/sleepycat/db/RecoveryOperation.html" target="_top"><B>FRAMES</B></A> 365 <A HREF="RecoveryOperation.html" target="_top"><B>NO FRAMES</B></A> 366 <SCRIPT type="text/javascript"> 367 <!-- 368 if(window==top) { 369 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 370 } 371 //--> 372</SCRIPT> 373<NOSCRIPT> 374 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 375</NOSCRIPT> 376 377 378</FONT></TD> 379</TR> 380<TR> 381<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 382 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> 383<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 384DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> 385</TR> 386</TABLE> 387<A NAME="skip-navbar_bottom"></A> 388<!-- ======== END OF BOTTOM NAVBAR ======= --> 389 390<HR> 391<font size=1>Copyright (c) 1996-2009 Oracle. All rights reserved.</font> 392</BODY> 393</HTML> 394