Enum Class ServerChangeStatus

java.lang.Object
java.lang.Enum<ServerChangeStatus>
org.opendaylight.controller.cluster.raft.messages.ServerChangeStatus
All Implemented Interfaces:
Serializable, Comparable<ServerChangeStatus>, Constable

public enum ServerChangeStatus extends Enum<ServerChangeStatus>
Enumerates server configuration change status reply codes.
Author:
Thomas Pantelis
  • Enum Constant Details

    • OK

      public static final ServerChangeStatus OK
      Request successfully completed.
    • 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 Details

    • values

      public static ServerChangeStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ServerChangeStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null