Interface Quorum
- 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 TypeMethodDescriptionvoidclose()called if the quorum manager is stopping so we can clean upgetName()the name of the Quorum. this should be unique and is used to locate the correct quorum to use for votingvoidcalled by the quorum when a node in the quorum goes downvoidcalled by the quorum when a node in the quorum goes upvoidsetQuorumManager(QuorumManager quorumManager) 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
called by the quorum manager when a quorum is registered -
nodeDown
called by the quorum when a node in the quorum goes down -
nodeUp
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
-