public final class FeederManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FEEDER_SERVICE |
long |
pollTimeoutMs |
| Modifier and Type | Method and Description |
|---|---|
int |
activeAckArbiterCount() |
int |
activeAckReplicaCount() |
Set<String> |
activeAckReplicas(boolean includeArbiters)
Returns the set of active replicas and arbiters, that are currently
active with this feeder and are supplying acknowledgments.
|
int |
activeReplicaCount()
The numbers of Replicas currently "active" with this feeder.
|
Set<String> |
activeReplicas()
Returns the set of Replicas that are currently active with this feeder.
|
Map<String,Feeder> |
activeReplicasMap() |
String |
dumpState(boolean acksOnly) |
Feeder |
getArbiterFeeder() |
Feeder |
getFeeder(String nodeName)
Returns the Feeder associated with the node, if such a feeder is
currently active.
|
StatGroup |
getFeederManagerStats(StatsConfig config)
Returns the statistics associated with the FeederManager.
|
int |
getNumCurrentAckFeeders(VLSN commitVLSN)
Returns a count of the number of feeders whose replicas are counted in
durability decisions and have acknowledged txn-end VLSNs >=
the commitVLSN argument.
|
StatGroup |
getProtocolStats(StatsConfig config) |
int |
getTestDelayMs() |
Feeder |
putFeeder(String nodeName,
Feeder feeder) |
void |
resetStats() |
static void |
setDelayCBVLSNUpdateHook(TestHook<NameIdPair> hook)
Set a test hook, parameterized by feeder's Name/ID pair, that delays
CBVLSN updates if it throws an IllegalStateException.
|
void |
setTestDelayMs(int testDelayMs) |
void |
shutdownFeeder(RepNodeImpl node)
Shuts down a specific feeder.
|
void |
updateDTVLSN(long heartbeatVLSN)
Update the Master's DTVLSN if we can conclude based upon the state of
the replicas that the DTVLSN needs to be advanced.
|
public final long pollTimeoutMs
public static final String FEEDER_SERVICE
public StatGroup getFeederManagerStats(StatsConfig config)
public StatGroup getProtocolStats(StatsConfig config)
public void resetStats()
public int getTestDelayMs()
public void setTestDelayMs(int testDelayMs)
public Feeder getFeeder(String nodeName)
public Feeder getArbiterFeeder()
public int activeReplicaCount()
public int activeAckReplicaCount()
public int activeAckArbiterCount()
public Set<String> activeReplicas()
public Set<String> activeAckReplicas(boolean includeArbiters)
includeArbiters - include active arbiters in the list of returned
node names if true; exclude arbiters otherwise.public void shutdownFeeder(RepNodeImpl node)
public String dumpState(boolean acksOnly)
public int getNumCurrentAckFeeders(VLSN commitVLSN)
commitVLSN - the commitVLSN being checkedpublic void updateDTVLSN(long heartbeatVLSN)
public static void setDelayCBVLSNUpdateHook(TestHook<NameIdPair> hook)
Copyright © 2024. All rights reserved.