Class QuorumVoteServerConnect

java.lang.Object
org.apache.activemq.artemis.core.server.cluster.quorum.QuorumVote<ServerConnectVote,Boolean>
org.apache.activemq.artemis.core.server.cluster.quorum.QuorumVoteServerConnect

public class QuorumVoteServerConnect extends QuorumVote<ServerConnectVote,Boolean>
A Quorum Vote for deciding if a replicated backup should become live.
  • Field Details

    • PRIMARY_FAILOVER_VOTE

      public static final SimpleString PRIMARY_FAILOVER_VOTE
      NOTE: The following String is used to identify the targetNode implementation at other servers. Renaming such string would cause incompatibility changes.
    • OLD_PRIMARY_FAILOVER_VOTE

      public static final SimpleString OLD_PRIMARY_FAILOVER_VOTE
  • Constructor Details

    • QuorumVoteServerConnect

      public QuorumVoteServerConnect(int size, String targetNodeId, boolean requestToStayActive, String connector)
      active nodes | remaining nodes | majority | votes needed 1 | 0 | 0 | 0 2 | 1 | 1 | 1 3 | 2 | 2.5 | 2 4 | 3 | 3 | 3 5 | 4 | 3.5 | 3 6 | 5 | 4 | 4 n | n-1 | n/2 + 1 | n/2 + 1 rounded
    • QuorumVoteServerConnect

      public QuorumVoteServerConnect(int size, String targetNodeId)
  • Method Details