Package org.apache.iotdb.commons.enums
Enum RegionMigrateState
- java.lang.Object
-
- java.lang.Enum<RegionMigrateState>
-
- org.apache.iotdb.commons.enums.RegionMigrateState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RegionMigrateState>
public enum RegionMigrateState extends java.lang.Enum<RegionMigrateState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATA_COPY_FAILEDDATA_COPY_SUCCEEDDATA_COPYINGLEADER_CHANGINGOFFLINEONLINE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()static RegionMigrateStategetStateByCode(int code)get RegionMigrateState by codestatic RegionMigrateStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RegionMigrateState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONLINE
public static final RegionMigrateState ONLINE
-
LEADER_CHANGING
public static final RegionMigrateState LEADER_CHANGING
-
DATA_COPYING
public static final RegionMigrateState DATA_COPYING
-
DATA_COPY_SUCCEED
public static final RegionMigrateState DATA_COPY_SUCCEED
-
DATA_COPY_FAILED
public static final RegionMigrateState DATA_COPY_FAILED
-
OFFLINE
public static final RegionMigrateState OFFLINE
-
-
Method Detail
-
values
public static RegionMigrateState[] 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 (RegionMigrateState c : RegionMigrateState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RegionMigrateState 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 RegionMigrateState getStateByCode(int code)
get RegionMigrateState by code- Parameters:
code- code- Returns:
- RegionMigrateState
-
-