public class Replica extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Replica.ConsistencyTracker
Tracks the consistency of this replica wrt the Master.
|
static class |
Replica.HardRecoveryElectionException
Indicates that an election is needed before the hard recovery can
proceed.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRunReplicaLoopInternalWork() |
Replica.ConsistencyTracker |
getConsistencyTracker() |
DbCache |
getDbCache() |
long |
getMasterTxnEndVLSN()
Returns the last commit VLSN at the master, as known at the replica.
|
StatGroup |
getProtocolStats(StatsConfig config) |
StatGroup |
getReplayStats(StatsConfig config)
Returns the replay statistics associated with the Replica.
|
ReplicaFeederSyncup.TestHook<Object> |
getReplicaFeederSyncupHook() |
ReplicaOutputThread |
getReplicaOutputThread()
For test use only.
|
int |
getTestDelayMs() |
StatGroup |
getTrackerStats(StatsConfig config) |
VLSN |
getTxnEndVLSN() |
Replay |
replay() |
void |
resetStats() |
void |
setDontProcessStream()
For unit testing only!
|
static void |
setInitialReplayHook(TestHook<BinaryProtocol.Message> hook)
Sets a test hook for installation into Replica class instances to be
created in the future.
|
void |
setReplicaFeederSyncupHook(ReplicaFeederSyncup.TestHook<Object> syncupHook)
Set a test hook which is executed when the ReplicaFeederSyncup
finishes.
|
void |
setTestDelayMs(int testDelayMs)
For unit testing only!
|
void |
shutdown()
Shutdown the Replica, free any threads that may have been waiting for
the replica to reach some degree of consistency.
|
public void shutdown()
public void setTestDelayMs(int testDelayMs)
public int getTestDelayMs()
public void setDontProcessStream()
public VLSN getTxnEndVLSN()
public Replay replay()
public DbCache getDbCache()
public Replica.ConsistencyTracker getConsistencyTracker()
public long getMasterTxnEndVLSN()
public ReplicaOutputThread getReplicaOutputThread()
protected void doRunReplicaLoopInternalWork()
throws Exception
Exceptionpublic StatGroup getReplayStats(StatsConfig config)
public StatGroup getProtocolStats(StatsConfig config)
public StatGroup getTrackerStats(StatsConfig config)
public void resetStats()
public static void setInitialReplayHook(TestHook<BinaryProtocol.Message> hook)
ReplicatedEnvironment handle constructor
returns, so that a test may influence the replay of the sync-up
transaction backlog.public void setReplicaFeederSyncupHook(ReplicaFeederSyncup.TestHook<Object> syncupHook)
public ReplicaFeederSyncup.TestHook<Object> getReplicaFeederSyncupHook()
Copyright © 2024. All rights reserved.