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(HashSet<Long> set)
           
 long getWeight(long id)
           
 

Method Detail

getWeight

long getWeight(long id)

containsQuorum

boolean containsQuorum(HashSet<Long> set)


Copyright © 2011 The Apache Software Foundation