Package org.apache.iotdb.commons.enums
Enum DataNodeRemoveState
- java.lang.Object
-
- java.lang.Enum<DataNodeRemoveState>
-
- org.apache.iotdb.commons.enums.DataNodeRemoveState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DataNodeRemoveState>
public enum DataNodeRemoveState extends java.lang.Enum<DataNodeRemoveState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NORMALREGION_MIGRATE_FAILEDREGION_MIGRATE_SUCCEEDREGION_MIGRATINGREMOVE_FAILEDREMOVE_STARTSTOP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()static DataNodeRemoveStategetStateByCode(int code)get DataNodeRemoveState by codestatic DataNodeRemoveStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DataNodeRemoveState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final DataNodeRemoveState NORMAL
-
REMOVE_START
public static final DataNodeRemoveState REMOVE_START
-
REGION_MIGRATING
public static final DataNodeRemoveState REGION_MIGRATING
-
REGION_MIGRATE_SUCCEED
public static final DataNodeRemoveState REGION_MIGRATE_SUCCEED
-
REGION_MIGRATE_FAILED
public static final DataNodeRemoveState REGION_MIGRATE_FAILED
-
REMOVE_FAILED
public static final DataNodeRemoveState REMOVE_FAILED
-
STOP
public static final DataNodeRemoveState STOP
-
-
Method Detail
-
values
public static DataNodeRemoveState[] 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 (DataNodeRemoveState c : DataNodeRemoveState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataNodeRemoveState valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getCode
public int getCode()
-
getStateByCode
public static DataNodeRemoveState getStateByCode(int code)
get DataNodeRemoveState by code- Parameters:
code- code- Returns:
- DataNodeRemoveState
-
-