Class CheckpointOptions
java.lang.Object
org.apache.flink.runtime.checkpoint.CheckpointOptions
- All Implemented Interfaces:
Serializable
Options for performing the checkpoint. Note that different
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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow a checkpoint should be aligned. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCheckpointOptions(SnapshotType checkpointType, CheckpointStorageLocationReference targetLocation) CheckpointOptions(SnapshotType checkpointType, CheckpointStorageLocationReference targetLocation, CheckpointOptions.AlignmentType alignmentType, long alignedCheckpointTimeout) -
Method Summary
Modifier and TypeMethodDescriptionstatic CheckpointOptionsalignedNoTimeout(SnapshotType type, CheckpointStorageLocationReference location) static CheckpointOptionsalignedWithTimeout(SnapshotType type, CheckpointStorageLocationReference location, long alignedCheckpointTimeout) booleanstatic CheckpointOptionsstatic CheckpointOptionsforConfig(SnapshotType checkpointType, CheckpointStorageLocationReference locationReference, boolean isExactlyOnceMode, boolean isUnalignedEnabled, long alignedCheckpointTimeout) longReturns the type of checkpoint to perform.Returns the target location for the checkpoint.inthashCode()booleanbooleanbooleanbooleanbooleanstatic CheckpointOptionsnotExactlyOnce(SnapshotType type, CheckpointStorageLocationReference location) toString()static CheckpointOptionsunaligned(SnapshotType type, CheckpointStorageLocationReference location)
-
Field Details
-
NO_ALIGNED_CHECKPOINT_TIME_OUT
public static final long NO_ALIGNED_CHECKPOINT_TIME_OUT- See Also:
-
-
Constructor Details
-
CheckpointOptions
@VisibleForTesting public CheckpointOptions(SnapshotType checkpointType, CheckpointStorageLocationReference targetLocation) -
CheckpointOptions
public CheckpointOptions(SnapshotType checkpointType, CheckpointStorageLocationReference targetLocation, CheckpointOptions.AlignmentType alignmentType, long alignedCheckpointTimeout)
-
-
Method Details
-
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
-
isTimeoutable
public boolean isTimeoutable() -
getCheckpointType
Returns the type of checkpoint to perform. -
getTargetLocation
Returns the target location for the checkpoint. -
isExactlyOnceMode
public boolean isExactlyOnceMode() -
isUnalignedCheckpoint
public boolean isUnalignedCheckpoint() -
needsChannelState
public boolean needsChannelState() -
withUnalignedSupported
-
withUnalignedUnsupported
-
hashCode
public int hashCode() -
equals
-
toString
-
forCheckpointWithDefaultLocation
-
toUnaligned
-