Enum Class Common.RaftNodeState

java.lang.Object
java.lang.Enum<Common.RaftNodeState>
io.dingodb.common.Common.RaftNodeState
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Common.RaftNodeState>, Constable
Enclosing class:
Common

public static enum Common.RaftNodeState extends Enum<Common.RaftNodeState> implements com.google.protobuf.ProtocolMessageEnum
 RaftNodeStatus
 raft node's status
 equal to braft state in raft.h
 
Protobuf enum dingodb.pb.common.RaftNodeState
  • Enum Constant Details

  • Field Details

    • STATE_NONE_VALUE

      public static final int STATE_NONE_VALUE
       this is just a placeholder
       
      STATE_NONE = 0;
      See Also:
    • STATE_LEADER_VALUE

      public static final int STATE_LEADER_VALUE
      STATE_LEADER = 1;
      See Also:
    • STATE_TRANSFERRING_VALUE

      public static final int STATE_TRANSFERRING_VALUE
      STATE_TRANSFERRING = 2;
      See Also:
    • STATE_CANDIDATE_VALUE

      public static final int STATE_CANDIDATE_VALUE
      STATE_CANDIDATE = 3;
      See Also:
    • STATE_FOLLOWER_VALUE

      public static final int STATE_FOLLOWER_VALUE
      STATE_FOLLOWER = 4;
      See Also:
    • STATE_ERROR_VALUE

      public static final int STATE_ERROR_VALUE
      STATE_ERROR = 5;
      See Also:
    • STATE_UNINITIALIZED_VALUE

      public static final int STATE_UNINITIALIZED_VALUE
      STATE_UNINITIALIZED = 6;
      See Also:
    • STATE_SHUTTING_VALUE

      public static final int STATE_SHUTTING_VALUE
      STATE_SHUTTING = 7;
      See Also:
    • STATE_SHUTDOWN_VALUE

      public static final int STATE_SHUTDOWN_VALUE
      STATE_SHUTDOWN = 8;
      See Also:
    • STATE_END_VALUE

      public static final int STATE_END_VALUE
      STATE_END = 9;
      See Also:
  • Method Details

    • values

      public static Common.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 Common.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
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Common.RaftNodeState valueOf(int value)
      Deprecated.
      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:
      value - 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
    • forNumber

      public static Common.RaftNodeState forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Common.RaftNodeState> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Common.RaftNodeState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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:
      desc - 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