@PublicEvolving public static enum CheckpointConfig.ExternalizedCheckpointCleanup extends Enum<CheckpointConfig.ExternalizedCheckpointCleanup>
Enum Constant and Description |
---|
DELETE_ON_CANCELLATION
Delete externalized checkpoints on job cancellation.
|
RETAIN_ON_CANCELLATION
Retain externalized checkpoints on job cancellation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
deleteOnCancellation()
Returns whether persistent checkpoints shall be discarded on
cancellation of the job.
|
static CheckpointConfig.ExternalizedCheckpointCleanup |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CheckpointConfig.ExternalizedCheckpointCleanup[] |
values()
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 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.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.