public class CheckpointOptions extends Object implements Serializable
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.
Constructor and Description |
---|
CheckpointOptions(CheckpointType checkpointType,
CheckpointStorageLocationReference targetLocation) |
CheckpointOptions(CheckpointType checkpointType,
CheckpointStorageLocationReference targetLocation,
boolean isExactlyOnceMode,
boolean isUnalignedCheckpoint) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static CheckpointOptions |
forCheckpointWithDefaultLocation() |
static CheckpointOptions |
forCheckpointWithDefaultLocation(boolean isExactlyOnceMode,
boolean isUnalignedCheckpoint) |
CheckpointType |
getCheckpointType()
Returns the type of checkpoint to perform.
|
CheckpointStorageLocationReference |
getTargetLocation()
Returns the target location for the checkpoint.
|
int |
hashCode() |
boolean |
isExactlyOnceMode() |
boolean |
isUnalignedCheckpoint() |
boolean |
needsAlignment() |
String |
toString() |
@VisibleForTesting public CheckpointOptions(CheckpointType checkpointType, CheckpointStorageLocationReference targetLocation)
public CheckpointOptions(CheckpointType checkpointType, CheckpointStorageLocationReference targetLocation, boolean isExactlyOnceMode, boolean isUnalignedCheckpoint)
public boolean needsAlignment()
public CheckpointType getCheckpointType()
public CheckpointStorageLocationReference getTargetLocation()
public boolean isExactlyOnceMode()
public boolean isUnalignedCheckpoint()
@VisibleForTesting public static CheckpointOptions forCheckpointWithDefaultLocation()
public static CheckpointOptions forCheckpointWithDefaultLocation(boolean isExactlyOnceMode, boolean isUnalignedCheckpoint)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.