@PublicEvolving public static enum CheckpointConfig.ExternalizedCheckpointCleanup extends Enum<CheckpointConfig.ExternalizedCheckpointCleanup> implements org.apache.flink.configuration.DescribedEnum
枚举常量和说明 |
---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
deleteOnCancellation()
Returns whether persistent checkpoints shall be discarded on cancellation of the job.
|
org.apache.flink.configuration.description.InlineElement |
getDescription() |
static CheckpointConfig.ExternalizedCheckpointCleanup |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CheckpointConfig.ExternalizedCheckpointCleanup[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public boolean deleteOnCancellation()
true
if persistent checkpoints shall be discarded on cancellation of
the job.@Internal public org.apache.flink.configuration.description.InlineElement getDescription()
getDescription
在接口中 org.apache.flink.configuration.DescribedEnum
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.