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, toString
public QuorumOracleMaj(Map<Long,QuorumPeer.QuorumServer> allMembers, String oraclePath)
public QuorumOracleMaj(Properties props, String oraclePath) throws QuorumPeerConfig.ConfigException
QuorumPeerConfig.ConfigException
public 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)
QuorumMaj
containsQuorum
in interface QuorumVerifier
containsQuorum
in class QuorumMaj
public boolean equals(Object o)
equals
in interface QuorumVerifier
equals
in class QuorumMaj
Copyright © 2008–2023 The Apache Software Foundation. All rights reserved.