QuorumVerifier (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and 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)

    - #### containsQuorum

          boolean containsQuorum(Set<Long> set)

    - #### 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()

    - #### equals

          boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### toString

          String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.