public enum DeactivatedCheckpointCompletedCheckpointStore extends Enum<DeactivatedCheckpointCompletedCheckpointStore> implements CompletedCheckpointStore
CompletedCheckpointStore if checkpointing has been enabled.
Consequently, no component should use methods other than CompletedCheckpointStore.shutdown(org.apache.flink.api.common.JobStatus, org.apache.flink.runtime.checkpoint.CheckpointsCleaner).| Enum Constant and Description |
|---|
INSTANCE |
LOG| Modifier and Type | Method and Description |
|---|---|
void |
addCheckpoint(CompletedCheckpoint checkpoint,
CheckpointsCleaner checkpointsCleaner,
Runnable postCleanup)
Adds a
CompletedCheckpoint instance to the list of completed checkpoints. |
List<CompletedCheckpoint> |
getAllCheckpoints()
Returns all
CompletedCheckpoint instances. |
int |
getMaxNumberOfRetainedCheckpoints()
Returns the max number of retained checkpoints.
|
int |
getNumberOfRetainedCheckpoints()
Returns the current number of retained checkpoints.
|
boolean |
requiresExternalizedCheckpoints()
This method returns whether the completed checkpoint store requires checkpoints to be
externalized.
|
void |
shutdown(org.apache.flink.api.common.JobStatus jobStatus,
CheckpointsCleaner checkpointsCleaner)
Shuts down the store.
|
static DeactivatedCheckpointCompletedCheckpointStore |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeactivatedCheckpointCompletedCheckpointStore[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetLatestCheckpoint, getLatestCheckpointIdpublic static final DeactivatedCheckpointCompletedCheckpointStore INSTANCE
public static DeactivatedCheckpointCompletedCheckpointStore[] values()
for (DeactivatedCheckpointCompletedCheckpointStore c : DeactivatedCheckpointCompletedCheckpointStore.values()) System.out.println(c);
public static DeactivatedCheckpointCompletedCheckpointStore 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 void addCheckpoint(CompletedCheckpoint checkpoint, CheckpointsCleaner checkpointsCleaner, Runnable postCleanup) throws Exception
CompletedCheckpointStoreCompletedCheckpoint instance to the list of completed checkpoints.
Only a bounded number of checkpoints is kept. When exceeding the maximum number of retained checkpoints, the oldest one will be discarded.
addCheckpoint in interface CompletedCheckpointStoreExceptionpublic void shutdown(org.apache.flink.api.common.JobStatus jobStatus,
CheckpointsCleaner checkpointsCleaner)
throws Exception
CompletedCheckpointStoreThe job status is forwarded and used to decide whether state should actually be discarded or kept.
shutdown in interface CompletedCheckpointStorejobStatus - Job state on shut downcheckpointsCleaner - that will cleanup completed checkpoints if neededExceptionpublic List<CompletedCheckpoint> getAllCheckpoints() throws Exception
CompletedCheckpointStoreCompletedCheckpoint instances.
Returns an empty list if no checkpoint has been added yet.
getAllCheckpoints in interface CompletedCheckpointStoreExceptionpublic int getNumberOfRetainedCheckpoints()
CompletedCheckpointStoregetNumberOfRetainedCheckpoints in interface CompletedCheckpointStorepublic int getMaxNumberOfRetainedCheckpoints()
CompletedCheckpointStoregetMaxNumberOfRetainedCheckpoints in interface CompletedCheckpointStorepublic boolean requiresExternalizedCheckpoints()
CompletedCheckpointStorerequiresExternalizedCheckpoints in interface CompletedCheckpointStoreCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.