All Known Implementing Classes:
SharedNothingBackupQuorum

public interface Quorum
A quorum can be registered with the QuorumManager to receive notifications about the state of a cluster. It can then use the QuorumManager for the quorum within a cluster to vote on a specific outcome.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    called if the quorum manager is stopping so we can clean up
    the name of the Quorum. this should be unique and is used to locate the correct quorum to use for voting
    void
    nodeDown(Topology topology, long eventUID, String nodeID)
    called by the quorum when a node in the quorum goes down
    void
    nodeUp(Topology topology)
    called by the quorum when a node in the quorum goes up
    void
    called by the quorum manager when a quorum is registered
  • Method Details

    • getName

      String getName()
      the name of the Quorum. this should be unique and is used to locate the correct quorum to use for voting
    • setQuorumManager

      void setQuorumManager(QuorumManager quorumManager)
      called by the quorum manager when a quorum is registered
    • nodeDown

      void nodeDown(Topology topology, long eventUID, String nodeID)
      called by the quorum when a node in the quorum goes down
    • nodeUp

      void nodeUp(Topology topology)
      called by the quorum when a node in the quorum goes up
    • close

      void close()
      called if the quorum manager is stopping so we can clean up