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.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CheckpointOptions.AlignmentType
How a checkpoint should be aligned.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
NO_ALIGNED_CHECKPOINT_TIME_OUT |
| 构造器和说明 |
|---|
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–2022 The Apache Software Foundation. All rights reserved.