public class Replay extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Replay.TxnInfo
Simple helper class to package a Txn vlsn and its associated commit
time.
|
| Constructor and Description |
|---|
Replay(RepImpl repImpl,
NameIdPair nameIdPair) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortOldTxns()
When mastership changes, all inflight replay transactions are aborted.
|
void |
close()
Release all transactions, database handles, etc held by the replay
unit.
|
String |
dumpState() |
SimpleTxnMap<ReplayTxn> |
getActiveTxns() |
Replay.TxnInfo |
getLastReplayedTxn() |
VLSN |
getLastReplayedVLSN() |
BlockingQueue<Long> |
getOutputQueue() |
ReplayTxn |
getReplayTxn(long txnId,
boolean registerTxnImmediately)
Obtain a ReplayTxn to represent the incoming operation.
|
StatGroup |
getStats(StatsConfig config)
Returns a copy of the statistics associated with Replay
|
void |
preRecoveryCheckpointInit(RecoveryInfo recoveryInfo)
Actions that must be taken before the recovery checkpoint, whether
the environment is read/write or read/only.
|
void |
replayEntry(long startNs,
BaseProtocol.Entry entry)
Apply the operation represented by this log entry on this replica node.
|
void |
reset()
Reinitialize for replay from a new feeder
|
void |
resetStats() |
void |
rollback(VLSN matchpointVLSN,
long matchpointLsn)
Go through all active txns and rollback up to but not including the log
entry represented by the matchpoint VLSN.
|
public Replay(RepImpl repImpl, NameIdPair nameIdPair)
public BlockingQueue<Long> getOutputQueue()
public void reset()
public void preRecoveryCheckpointInit(RecoveryInfo recoveryInfo)
public Replay.TxnInfo getLastReplayedTxn()
public VLSN getLastReplayedVLSN()
public void abortOldTxns()
throws DatabaseException
DatabaseExceptionpublic void replayEntry(long startNs,
BaseProtocol.Entry entry)
throws DatabaseException,
IOException,
InterruptedException,
MasterStatus.MasterSyncException
public ReplayTxn getReplayTxn(long txnId, boolean registerTxnImmediately) throws DatabaseException
DatabaseExceptionpublic void rollback(VLSN matchpointVLSN, long matchpointLsn)
public void close()
public StatGroup getStats(StatsConfig config)
public void resetStats()
public SimpleTxnMap<ReplayTxn> getActiveTxns()
public String dumpState()
Copyright © 2024. All rights reserved.