com.sleepycat.je.recovery
Class RollbackTracker.Scanner
java.lang.Object
com.sleepycat.je.recovery.RollbackTracker.Scanner
- Direct Known Subclasses:
- RollbackTracker.BackwardScanner, RollbackTracker.UnderConstructionScanner
- Enclosing class:
- RollbackTracker
abstract class RollbackTracker.Scanner
- extends Object
A Scanner is to process LNs during a recovery pass. It determines
whether this log entry is within the rollback period, and should be
accordingly undone or ignored. It serves as a sort of cursor or iterator
that works with the rollback tracker.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
target
RollbackTracker.RollbackPeriod target
RollbackTracker.Scanner
RollbackTracker.Scanner()
positionAndCheck
abstract boolean positionAndCheck(long lsn,
long txnId)
- Return true if this transactional log entry is something that should
be rolled back in this rollback period. The Scanner's position can
be changed by this call. Update the target field if necessary.
rollback
public void rollback(Long txnId,
LNFileReader reader,
RecoveryUtilizationTracker tracker)
- Rollback the filereader's current LN_TX. This assumes that the the
caller has ascertained that the LN is contained within this rollback
period.
needsRollback
boolean needsRollback()
Copyright (c) 2004-2012 Oracle. All rights reserved.