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