@PublicEvolving public enum ExternalizedCheckpointRetention extends Enum<ExternalizedCheckpointRetention> implements 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.
|
InlineElement |
getDescription()
Returns the description for the enum constant.
|
static ExternalizedCheckpointRetention |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ExternalizedCheckpointRetention[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ExternalizedCheckpointRetention 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 ExternalizedCheckpointRetention 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 ExternalizedCheckpointRetention NO_EXTERNALIZED_CHECKPOINTS
public static ExternalizedCheckpointRetention[] values()
for (ExternalizedCheckpointRetention c : ExternalizedCheckpointRetention.values()) System.out.println(c);
public static ExternalizedCheckpointRetention valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public 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
在接口中 DescribedEnum
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.