com.sleepycat.je.rep.stream
Class MatchpointSearchResults

java.lang.Object
  extended by com.sleepycat.je.rep.stream.MatchpointSearchResults

public class MatchpointSearchResults
extends Object

Holds information seen by the ReplicaSyncupReader when scanning a replica's log for a matchpoint.


Nested Class Summary
static class MatchpointSearchResults.PassedTxnInfo
           
 
Constructor Summary
MatchpointSearchResults(EnvironmentImpl envImpl)
           
 
Method Summary
 String dumpPassedTxns()
          Display the saved transaction information.
 MatchpointSearchResults.PassedTxnInfo getEarliestPassedTxn()
           
 long getMatchpointLSN()
           
 int getNumPassedCommits()
           
(package private)  boolean getPassedCheckpointEnd()
           
 String getRollbackMsg()
          If 1 or more commits was passed, construct a message that can be used by RollbackException and RollbackProhibitedException.
(package private)  void notePassedCheckpointEnd()
          If we see a checkpoint end record, see if it is a barrier to rolling back, and advance the file reader position.
(package private)  void notePassedCommits(Timestamp commitTime, long txnId, VLSN vlsn, long lsn)
          The reader saw a transaction commit.
(package private)  void setMatchpoint(long match)
          At the end of the search for a matchpoint, set the matchpointLSN and adjust the debugging list of passed transactions.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatchpointSearchResults

MatchpointSearchResults(EnvironmentImpl envImpl)
Method Detail

notePassedCheckpointEnd

void notePassedCheckpointEnd()
If we see a checkpoint end record, see if it is a barrier to rolling back, and advance the file reader position.


setMatchpoint

void setMatchpoint(long match)
At the end of the search for a matchpoint, set the matchpointLSN and adjust the debugging list of passed transactions. The matchpoint entry is just before the truncation point, and does not get truncated.


notePassedCommits

void notePassedCommits(Timestamp commitTime,
                       long txnId,
                       VLSN vlsn,
                       long lsn)
The reader saw a transaction commit. Record that information.


getPassedCheckpointEnd

boolean getPassedCheckpointEnd()

getMatchpointLSN

public long getMatchpointLSN()

getNumPassedCommits

public int getNumPassedCommits()

getEarliestPassedTxn

public MatchpointSearchResults.PassedTxnInfo getEarliestPassedTxn()

dumpPassedTxns

public String dumpPassedTxns()
Display the saved transaction information.


toString

public String toString()
Overrides:
toString in class Object

getRollbackMsg

public String getRollbackMsg()
If 1 or more commits was passed, construct a message that can be used by RollbackException and RollbackProhibitedException.



Copyright (c) 2004-2010 Oracle. All rights reserved.