Enum Class RaftNodeState

java.lang.Object
java.lang.Enum<RaftNodeState>
io.dingodb.sdk.service.entity.common.RaftNodeState
All Implemented Interfaces:
Numeric, Serializable, Comparable<RaftNodeState>, Constable

public enum RaftNodeState extends Enum<RaftNodeState> implements Numeric
  • Enum Constant Details

    • UNRECOGNIZED

      public static final RaftNodeState UNRECOGNIZED
    • STATE_NONE

      public static final RaftNodeState STATE_NONE
    • STATE_LEADER

      public static final RaftNodeState STATE_LEADER
    • STATE_TRANSFERRING

      public static final RaftNodeState STATE_TRANSFERRING
    • STATE_CANDIDATE

      public static final RaftNodeState STATE_CANDIDATE
    • STATE_FOLLOWER

      public static final RaftNodeState STATE_FOLLOWER
    • STATE_ERROR

      public static final RaftNodeState STATE_ERROR
    • STATE_UNINITIALIZED

      public static final RaftNodeState STATE_UNINITIALIZED
    • STATE_SHUTTING

      public static final RaftNodeState STATE_SHUTTING
    • STATE_SHUTDOWN

      public static final RaftNodeState STATE_SHUTDOWN
    • STATE_END

      public static final RaftNodeState STATE_END
  • Field Details

    • number

      public final Integer number
  • Method Details

    • values

      public static RaftNodeState[] 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 RaftNodeState 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
    • number

      public int number()
      Specified by:
      number in interface Numeric
    • forNumber

      public static RaftNodeState forNumber(int number)