Enum CheckpointStatsStatus
- All Implemented Interfaces:
Serializable,Comparable<CheckpointStatsStatus>
Status of the tracked checkpoint.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCheckpoint that has successfully completed.Checkpoint that failed.Checkpoint that is still in progress. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the checkpoint has completed successfully.booleanisFailed()Returns whether the checkpoint has failed.booleanReturns whether the checkpoint is in progress.static CheckpointStatsStatusReturns the enum constant of this type with the specified name.static CheckpointStatsStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IN_PROGRESS
Checkpoint that is still in progress. -
COMPLETED
Checkpoint that has successfully completed. -
FAILED
Checkpoint that failed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isInProgress
public boolean isInProgress()Returns whether the checkpoint is in progress.- Returns:
trueif checkpoint is in progress,falseotherwise.
-
isCompleted
public boolean isCompleted()Returns whether the checkpoint has completed successfully.- Returns:
trueif checkpoint has completed,falseotherwise.
-
isFailed
public boolean isFailed()Returns whether the checkpoint has failed.- Returns:
trueif checkpoint has failed,falseotherwise.
-