Package org.apache.flink.configuration
Enum ExternalizedCheckpointRetention
- java.lang.Object
-
- java.lang.Enum<ExternalizedCheckpointRetention>
-
- org.apache.flink.configuration.ExternalizedCheckpointRetention
-
- All Implemented Interfaces:
Serializable
,Comparable<ExternalizedCheckpointRetention>
,DescribedEnum
@PublicEvolving public enum ExternalizedCheckpointRetention extends Enum<ExternalizedCheckpointRetention> implements DescribedEnum
Cleanup behaviour for externalized checkpoints when the job is cancelled.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETE_ON_CANCELLATION
Delete externalized checkpoints on job cancellation.NO_EXTERNALIZED_CHECKPOINTS
Externalized checkpoints are disabled completely.RETAIN_ON_CANCELLATION
Retain externalized checkpoints on job cancellation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deleteOnCancellation()
Returns whether persistent checkpoints shall be discarded on cancellation of the job.InlineElement
getDescription()
Returns the description for the enum constant.static ExternalizedCheckpointRetention
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExternalizedCheckpointRetention[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DELETE_ON_CANCELLATION
public static final ExternalizedCheckpointRetention DELETE_ON_CANCELLATION
Delete externalized checkpoints on job cancellation.All checkpoint state will be deleted when you cancel the owning job, both the meta data and actual program state. Therefore, you cannot resume from externalized checkpoints after the job has been cancelled.
Note that checkpoint state is always kept if the job terminates with state
JobStatus.FAILED
.
-
RETAIN_ON_CANCELLATION
public static final ExternalizedCheckpointRetention RETAIN_ON_CANCELLATION
Retain externalized checkpoints on job cancellation.All checkpoint state is kept when you cancel the owning job. You have to manually delete both the checkpoint meta data and actual program state after cancelling the job.
Note that checkpoint state is always kept if the job terminates with state
JobStatus.FAILED
.
-
NO_EXTERNALIZED_CHECKPOINTS
public static final ExternalizedCheckpointRetention NO_EXTERNALIZED_CHECKPOINTS
Externalized checkpoints are disabled completely.
-
-
Method Detail
-
values
public static ExternalizedCheckpointRetention[] 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 (ExternalizedCheckpointRetention c : ExternalizedCheckpointRetention.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExternalizedCheckpointRetention valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
deleteOnCancellation
public boolean deleteOnCancellation()
Returns whether persistent checkpoints shall be discarded on cancellation of the job.- Returns:
true
if persistent checkpoints shall be discarded on cancellation of the job.
-
getDescription
@Internal public InlineElement getDescription()
Description copied from interface:DescribedEnum
Returns the description for the enum constant.If you want to include links or code blocks, use
TextElement.wrap(InlineElement...)
to wrap multiple inline elements into a single one.- Specified by:
getDescription
in interfaceDescribedEnum
-
-