public class QuorumOracleMaj extends QuorumMaj
| Constructor and Description |
|---|
QuorumOracleMaj(Map<Long,QuorumPeer.QuorumServer> allMembers,
String oraclePath) |
QuorumOracleMaj(Properties props,
String oraclePath) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
askOracle() |
boolean |
containsQuorum(Set<Long> ackSet)
Verifies if a set is a majority.
|
boolean |
equals(Object o) |
boolean |
getNeedOracle() |
String |
getOraclePath() |
int |
hashCode() |
boolean |
overrideQuorumDecision(List<LearnerHandler> forwardingFollowers) |
boolean |
revalidateOutstandingProp(Leader self,
ArrayList<Leader.Proposal> outstandingProposal,
long lastCommitted) |
boolean |
revalidateVoteset(SyncedLearnerTracker voteSet,
boolean timeout) |
boolean |
updateNeedOracle(List<LearnerHandler> forwardingFollowers) |
getAllMembers, getObservingMembers, getVersion, getVotingMembers, getWeight, setVersion, toStringpublic QuorumOracleMaj(Map<Long,QuorumPeer.QuorumServer> allMembers, String oraclePath)
public QuorumOracleMaj(Properties props, String oraclePath) throws QuorumPeerConfig.ConfigException
QuorumPeerConfig.ConfigExceptionpublic boolean updateNeedOracle(List<LearnerHandler> forwardingFollowers)
public boolean askOracle()
public boolean getNeedOracle()
public String getOraclePath()
public boolean overrideQuorumDecision(List<LearnerHandler> forwardingFollowers)
public boolean revalidateOutstandingProp(Leader self, ArrayList<Leader.Proposal> outstandingProposal, long lastCommitted)
public boolean revalidateVoteset(SyncedLearnerTracker voteSet, boolean timeout)
public boolean containsQuorum(Set<Long> ackSet)
QuorumMajcontainsQuorum in interface QuorumVerifiercontainsQuorum in class QuorumMajpublic boolean equals(Object o)
equals in interface QuorumVerifierequals in class QuorumMajCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.