Package com.linkedin.venice.status
Enum PushJobDetailsStatus
- java.lang.Object
-
- java.lang.Enum<PushJobDetailsStatus>
-
- com.linkedin.venice.status.PushJobDetailsStatus
-
- All Implemented Interfaces:
VeniceEnumValue
,java.io.Serializable
,java.lang.Comparable<PushJobDetailsStatus>
public enum PushJobDetailsStatus extends java.lang.Enum<PushJobDetailsStatus> implements VeniceEnumValue
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETED
DATA_WRITER_COMPLETED
END_OF_INCREMENTAL_PUSH_RECEIVED
END_OF_PUSH_RECEIVED
ERROR
KILLED
NOT_CREATED
START_OF_INCREMENTAL_PUSH_RECEIVED
STARTED
TOPIC_CREATED
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static boolean
isFailed(PushJobDetailsStatus status)
static boolean
isSucceeded(PushJobDetailsStatus status)
static boolean
isTerminal(int status)
static PushJobDetailsStatus
valueOf(int value)
Returns the enum constant of this type with the specified name.static PushJobDetailsStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PushJobDetailsStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTED
public static final PushJobDetailsStatus STARTED
-
COMPLETED
public static final PushJobDetailsStatus COMPLETED
-
ERROR
public static final PushJobDetailsStatus ERROR
-
NOT_CREATED
public static final PushJobDetailsStatus NOT_CREATED
-
UNKNOWN
public static final PushJobDetailsStatus UNKNOWN
-
TOPIC_CREATED
public static final PushJobDetailsStatus TOPIC_CREATED
-
DATA_WRITER_COMPLETED
public static final PushJobDetailsStatus DATA_WRITER_COMPLETED
-
KILLED
public static final PushJobDetailsStatus KILLED
-
END_OF_PUSH_RECEIVED
public static final PushJobDetailsStatus END_OF_PUSH_RECEIVED
-
START_OF_INCREMENTAL_PUSH_RECEIVED
public static final PushJobDetailsStatus START_OF_INCREMENTAL_PUSH_RECEIVED
-
END_OF_INCREMENTAL_PUSH_RECEIVED
public static final PushJobDetailsStatus END_OF_INCREMENTAL_PUSH_RECEIVED
-
-
Method Detail
-
values
public static PushJobDetailsStatus[] 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 (PushJobDetailsStatus c : PushJobDetailsStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PushJobDetailsStatus 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
-
getValue
public int getValue()
- Specified by:
getValue
in interfaceVeniceEnumValue
-
isTerminal
public static boolean isTerminal(int status)
-
isSucceeded
public static boolean isSucceeded(PushJobDetailsStatus status)
-
isFailed
public static boolean isFailed(PushJobDetailsStatus status)
-
valueOf
public static PushJobDetailsStatus 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
-
-