Enum IngestionCommandType
- java.lang.Object
-
- java.lang.Enum<IngestionCommandType>
-
- com.linkedin.venice.ingestion.protocol.enums.IngestionCommandType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IngestionCommandType>
public enum IngestionCommandType extends java.lang.Enum<IngestionCommandType>
IngestionCommandType is an Enum class for specifying different commands for ingestion isolation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IS_PARTITION_CONSUMING
KILL_CONSUMPTION
OPEN_STORAGE_ENGINE
REMOVE_PARTITION
REMOVE_STORAGE_ENGINE
RESET_PARTITION
SHUTDOWN_INGESTION_TASK
START_CONSUMPTION
STOP_CONSUMPTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static IngestionCommandType
valueOf(int value)
Returns the enum constant of this type with the specified name.static IngestionCommandType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IngestionCommandType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START_CONSUMPTION
public static final IngestionCommandType START_CONSUMPTION
-
STOP_CONSUMPTION
public static final IngestionCommandType STOP_CONSUMPTION
-
KILL_CONSUMPTION
public static final IngestionCommandType KILL_CONSUMPTION
-
IS_PARTITION_CONSUMING
public static final IngestionCommandType IS_PARTITION_CONSUMING
-
REMOVE_STORAGE_ENGINE
public static final IngestionCommandType REMOVE_STORAGE_ENGINE
-
REMOVE_PARTITION
public static final IngestionCommandType REMOVE_PARTITION
-
OPEN_STORAGE_ENGINE
public static final IngestionCommandType OPEN_STORAGE_ENGINE
-
RESET_PARTITION
public static final IngestionCommandType RESET_PARTITION
-
SHUTDOWN_INGESTION_TASK
public static final IngestionCommandType SHUTDOWN_INGESTION_TASK
-
-
Method Detail
-
values
public static IngestionCommandType[] 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 (IngestionCommandType c : IngestionCommandType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IngestionCommandType 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
-
valueOf
public static IngestionCommandType valueOf(int value)
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:
value
- 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
-
getValue
public int getValue()
-
-