Interface QuorumVerifier
-
- All Known Implementing Classes:
QuorumHierarchical
,QuorumMaj
public interface QuorumVerifier
All 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 boolean
containsQuorum(Set<Long> set)
boolean
equals(Object o)
Map<Long,QuorumPeer.QuorumServer>
getAllMembers()
Map<Long,QuorumPeer.QuorumServer>
getObservingMembers()
long
getVersion()
Map<Long,QuorumPeer.QuorumServer>
getVotingMembers()
long
getWeight(long id)
void
setVersion(long ver)
String
toString()
-
-
-
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()
-
-