Interface Quorum
-
- All Known Implementing Classes:
SharedNothingBackupQuorum
public interface QuorumA quorum can be registered with theQuorumManagerto receive notifications about the state of a cluster. It can then use theQuorumManagerfor the quorum within a cluster to vote on a specific outcome.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()called if the quorum manager is stopping so we can clean upStringgetName()the name of the Quorum.voidnodeDown(Topology topology, long eventUID, String nodeID)called by the quorum when a node in the quorum goes downvoidnodeUp(Topology topology)called by the quorum when a node in the quorum goes upvoidsetQuorumManager(QuorumManager quorumManager)called by the quorum manager when a quorum is registered
-
-
-
Method Detail
-
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
-
-