org.apache.zookeeper.server.quorum.flexible
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
 boolean containsQuorum(java.util.HashSet<java.lang.Long> set)
           
 long getWeight(long id)
           
 

Method Detail

getWeight

long getWeight(long id)

containsQuorum

boolean containsQuorum(java.util.HashSet<java.lang.Long> set)


Copyright © 2012 The Apache Software Foundation