com.sleepycat.je.recovery
Class RecoveryManager
java.lang.Object
com.sleepycat.je.recovery.RecoveryManager
public class RecoveryManager
- extends Object
Method Summary |
static void |
abortUndo(Logger logger,
Level traceLevel,
DatabaseImpl db,
TreeLocation location,
LN lnFromLog,
byte[] mainKey,
byte[] dupKey,
long logLsn,
long abortLsn,
boolean abortKnownDeleted)
|
RecoveryInfo |
recover(boolean readOnly)
Look for an existing log and use it to create an in memory structure for
accessing existing databases. |
static void |
rollbackUndo(Logger logger,
Level traceLevel,
UndoReader undo,
TxnChain.RevertInfo revertTo,
TreeLocation location,
long undoLsn)
|
static void |
traceRootDeletion(Logger logger,
DatabaseImpl database)
Log trace information about root deletions, called by INCompressor and
recovery. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecoveryManager
public RecoveryManager(EnvironmentImpl env)
throws DatabaseException
- Make a recovery manager
- Throws:
DatabaseException
recover
public RecoveryInfo recover(boolean readOnly)
throws DatabaseException
- Look for an existing log and use it to create an in memory structure for
accessing existing databases. The file manager and logging system are
only available after recovery.
- Returns:
- RecoveryInfo statistics about the recovery process.
- Throws:
DatabaseException
abortUndo
public static void abortUndo(Logger logger,
Level traceLevel,
DatabaseImpl db,
TreeLocation location,
LN lnFromLog,
byte[] mainKey,
byte[] dupKey,
long logLsn,
long abortLsn,
boolean abortKnownDeleted)
rollbackUndo
public static void rollbackUndo(Logger logger,
Level traceLevel,
UndoReader undo,
TxnChain.RevertInfo revertTo,
TreeLocation location,
long undoLsn)
traceRootDeletion
public static void traceRootDeletion(Logger logger,
DatabaseImpl database)
- Log trace information about root deletions, called by INCompressor and
recovery.
Copyright (c) 2004-2010 Oracle. All rights reserved.