Class CheckpointOptions
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.CheckpointOptions
-
- All Implemented Interfaces:
Serializable
public class CheckpointOptions extends Object implements Serializable
Options for performing the checkpoint. Note that differentbarriers
may have different options.The
CheckpointProperties
are related and cover properties that are only relevant at theCheckpointCoordinator
. These options are relevant at theAbstractInvokable
instances running on task managers.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CheckpointOptions.AlignmentType
How a checkpoint should be aligned.
-
Field Summary
Fields Modifier and Type Field Description static long
NO_ALIGNED_CHECKPOINT_TIME_OUT
-
Constructor Summary
Constructors Constructor Description CheckpointOptions(SnapshotType checkpointType, CheckpointStorageLocationReference targetLocation)
CheckpointOptions(SnapshotType checkpointType, CheckpointStorageLocationReference targetLocation, CheckpointOptions.AlignmentType alignmentType, long alignedCheckpointTimeout)
-
Method Summary
-
-
-
Field Detail
-
NO_ALIGNED_CHECKPOINT_TIME_OUT
public static final long NO_ALIGNED_CHECKPOINT_TIME_OUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CheckpointOptions
@VisibleForTesting public CheckpointOptions(SnapshotType checkpointType, CheckpointStorageLocationReference targetLocation)
-
CheckpointOptions
public CheckpointOptions(SnapshotType checkpointType, CheckpointStorageLocationReference targetLocation, CheckpointOptions.AlignmentType alignmentType, long alignedCheckpointTimeout)
-
-
Method Detail
-
notExactlyOnce
public static CheckpointOptions notExactlyOnce(SnapshotType type, CheckpointStorageLocationReference location)
-
alignedNoTimeout
public static CheckpointOptions alignedNoTimeout(SnapshotType type, CheckpointStorageLocationReference location)
-
unaligned
public static CheckpointOptions unaligned(SnapshotType type, CheckpointStorageLocationReference location)
-
alignedWithTimeout
public static CheckpointOptions alignedWithTimeout(SnapshotType type, CheckpointStorageLocationReference location, long alignedCheckpointTimeout)
-
forConfig
public static CheckpointOptions forConfig(SnapshotType checkpointType, CheckpointStorageLocationReference locationReference, boolean isExactlyOnceMode, boolean isUnalignedEnabled, long alignedCheckpointTimeout)
-
needsAlignment
public boolean needsAlignment()
-
getAlignedCheckpointTimeout
public long getAlignedCheckpointTimeout()
-
getAlignment
public CheckpointOptions.AlignmentType getAlignment()
-
isTimeoutable
public boolean isTimeoutable()
-
getCheckpointType
public SnapshotType getCheckpointType()
Returns the type of checkpoint to perform.
-
getTargetLocation
public CheckpointStorageLocationReference getTargetLocation()
Returns the target location for the checkpoint.
-
isExactlyOnceMode
public boolean isExactlyOnceMode()
-
isUnalignedCheckpoint
public boolean isUnalignedCheckpoint()
-
needsChannelState
public boolean needsChannelState()
-
withUnalignedSupported
public CheckpointOptions withUnalignedSupported()
-
withUnalignedUnsupported
public CheckpointOptions withUnalignedUnsupported()
-
forCheckpointWithDefaultLocation
@VisibleForTesting public static CheckpointOptions forCheckpointWithDefaultLocation()
-
toUnaligned
public CheckpointOptions toUnaligned()
-
-