public class CheckpointOptions extends Object implements Serializable
barriers
may have different options.
The CheckpointProperties
are related and cover properties that are only relevant at
the CheckpointCoordinator
. These options are relevant at the AbstractInvokable
instances running on task managers.
Modifier and Type | Class and Description |
---|---|
static class |
CheckpointOptions.AlignmentType
How a checkpoint should be aligned.
|
Modifier and Type | Field and Description |
---|---|
static long |
NO_ALIGNED_CHECKPOINT_TIME_OUT |
Constructor and Description |
---|
CheckpointOptions(SnapshotType checkpointType,
CheckpointStorageLocationReference targetLocation) |
CheckpointOptions(SnapshotType checkpointType,
CheckpointStorageLocationReference targetLocation,
CheckpointOptions.AlignmentType alignmentType,
long alignedCheckpointTimeout) |
public static final long NO_ALIGNED_CHECKPOINT_TIME_OUT
@VisibleForTesting public CheckpointOptions(SnapshotType checkpointType, CheckpointStorageLocationReference targetLocation)
public CheckpointOptions(SnapshotType checkpointType, CheckpointStorageLocationReference targetLocation, CheckpointOptions.AlignmentType alignmentType, long alignedCheckpointTimeout)
public static CheckpointOptions notExactlyOnce(SnapshotType type, CheckpointStorageLocationReference location)
public static CheckpointOptions alignedNoTimeout(SnapshotType type, CheckpointStorageLocationReference location)
public static CheckpointOptions unaligned(SnapshotType type, CheckpointStorageLocationReference location)
public static CheckpointOptions alignedWithTimeout(SnapshotType type, CheckpointStorageLocationReference location, long alignedCheckpointTimeout)
public static CheckpointOptions forConfig(SnapshotType checkpointType, CheckpointStorageLocationReference locationReference, boolean isExactlyOnceMode, boolean isUnalignedEnabled, long alignedCheckpointTimeout)
public boolean needsAlignment()
public long getAlignedCheckpointTimeout()
public CheckpointOptions.AlignmentType getAlignment()
public boolean isTimeoutable()
public SnapshotType getCheckpointType()
public CheckpointStorageLocationReference getTargetLocation()
public boolean isExactlyOnceMode()
public boolean isUnalignedCheckpoint()
public boolean needsChannelState()
public CheckpointOptions withUnalignedSupported()
public CheckpointOptions withUnalignedUnsupported()
@VisibleForTesting public static CheckpointOptions forCheckpointWithDefaultLocation()
public CheckpointOptions toUnaligned()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.