Enum ServerChangeStatus

    • Enum Constant Detail

      • NO_LEADER

        public static final ServerChangeStatus NO_LEADER
        No leader exists to process the request.
      • TIMEOUT

        public static final ServerChangeStatus TIMEOUT
        For an AddServer request, the leader timed out trying to install a snapshot on the new server.
      • ALREADY_EXISTS

        public static final ServerChangeStatus ALREADY_EXISTS
        For an AddServer request, the server to add already exists.
      • DOES_NOT_EXIST

        public static final ServerChangeStatus DOES_NOT_EXIST
        For a RemoveServer request, the server to remove does not exist.
      • PRIOR_REQUEST_CONSENSUS_TIMEOUT

        public static final ServerChangeStatus PRIOR_REQUEST_CONSENSUS_TIMEOUT
        The leader could not process the request due to a prior request that timed out while trying to achieve replication consensus.
      • NOT_SUPPORTED

        public static final ServerChangeStatus NOT_SUPPORTED
        An unsupported request, for example removing the leader in a single node cluster.
      • INVALID_REQUEST

        public static final ServerChangeStatus INVALID_REQUEST
        Some part of the request is invalid.
    • Method Detail

      • values

        public static ServerChangeStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ServerChangeStatus c : ServerChangeStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ServerChangeStatus valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null