Interface QuorumVerifier
-
- All Known Implementing Classes:
QuorumHierarchical,QuorumMaj
public interface QuorumVerifierAll quorum validators have to implement a method called containsQuorum, which verifies if a HashSet of server identifiers constitutes a quorum.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsQuorum(Set<Long> set)booleanequals(Object o)Map<Long,QuorumPeer.QuorumServer>getAllMembers()Map<Long,QuorumPeer.QuorumServer>getObservingMembers()longgetVersion()Map<Long,QuorumPeer.QuorumServer>getVotingMembers()longgetWeight(long id)voidsetVersion(long ver)StringtoString()
-
-
-
Method Detail
-
getWeight
long getWeight(long id)
-
getVersion
long getVersion()
-
setVersion
void setVersion(long ver)
-
getAllMembers
Map<Long,QuorumPeer.QuorumServer> getAllMembers()
-
getVotingMembers
Map<Long,QuorumPeer.QuorumServer> getVotingMembers()
-
getObservingMembers
Map<Long,QuorumPeer.QuorumServer> getObservingMembers()
-
-