ExternalizedCheckpointRetention
.@Deprecated @PublicEvolving public static enum CheckpointConfig.ExternalizedCheckpointCleanup extends Enum<CheckpointConfig.ExternalizedCheckpointCleanup> implements DescribedEnum
Enum Constant and Description |
---|
DELETE_ON_CANCELLATION
Deprecated.
Delete externalized checkpoints on job cancellation.
|
NO_EXTERNALIZED_CHECKPOINTS
Deprecated.
Externalized checkpoints are disabled completely.
|
RETAIN_ON_CANCELLATION
Deprecated.
Retain externalized checkpoints on job cancellation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
deleteOnCancellation()
Deprecated.
Returns whether persistent checkpoints shall be discarded on cancellation of the job.
|
InlineElement |
getDescription()
Deprecated.
Returns the description for the enum constant.
|
static CheckpointConfig.ExternalizedCheckpointCleanup |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static CheckpointConfig.ExternalizedCheckpointCleanup[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CheckpointConfig.ExternalizedCheckpointCleanup DELETE_ON_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
.
public static final CheckpointConfig.ExternalizedCheckpointCleanup RETAIN_ON_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
.
public static final CheckpointConfig.ExternalizedCheckpointCleanup NO_EXTERNALIZED_CHECKPOINTS
public static CheckpointConfig.ExternalizedCheckpointCleanup[] values()
for (CheckpointConfig.ExternalizedCheckpointCleanup c : CheckpointConfig.ExternalizedCheckpointCleanup.values()) System.out.println(c);
public static CheckpointConfig.ExternalizedCheckpointCleanup valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean deleteOnCancellation()
true
if persistent checkpoints shall be discarded on cancellation of
the job.@Internal public InlineElement getDescription()
DescribedEnum
If you want to include links or code blocks, use TextElement.wrap(InlineElement...)
to wrap multiple inline elements into a single one.
getDescription
in interface DescribedEnum
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.