@Public public class CheckpointConfig extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_CONCURRENT_CHECKPOINTS
The default limit of concurrently happening checkpoints: one
|
static long |
DEFAULT_MIN_PAUSE_BETWEEN_CHECKPOINTS
The default minimum pause to be made between checkpoints: none
|
static CheckpointingMode |
DEFAULT_MODE
The default checkpoint mode: exactly once
|
static long |
DEFAULT_TIMEOUT
The default timeout of a checkpoint attempt: 10 minutes
|
Constructor and Description |
---|
CheckpointConfig() |
Modifier and Type | Method and Description |
---|---|
CheckpointingMode |
getCheckpointingMode()
Gets the checkpointing mode (exactly-once vs.
|
long |
getCheckpointInterval()
Gets the interval in which checkpoints are periodically scheduled.
|
long |
getCheckpointTimeout()
Gets the maximum time that a checkpoint may take before being discarded.
|
int |
getMaxConcurrentCheckpoints()
Gets the maximum number of checkpoint attempts that may be in progress at the same time.
|
long |
getMinPauseBetweenCheckpoints()
Gets the minimal pause between checkpointing attempts.
|
boolean |
isCheckpointingEnabled()
Checks whether checkpointing is enabled.
|
boolean |
isForceCheckpointing()
Deprecated.
This will be removed once iterations properly participate in checkpointing.
|
void |
setCheckpointingMode(CheckpointingMode checkpointingMode)
Sets the checkpointing mode (exactly-once vs.
|
void |
setCheckpointInterval(long checkpointInterval)
Sets the interval in which checkpoints are periodically scheduled.
|
void |
setCheckpointTimeout(long checkpointTimeout)
Sets the maximum time that a checkpoint may take before being discarded.
|
void |
setForceCheckpointing(boolean forceCheckpointing)
Deprecated.
This will be removed once iterations properly participate in checkpointing.
|
void |
setMaxConcurrentCheckpoints(int maxConcurrentCheckpoints)
Sets the maximum number of checkpoint attempts that may be in progress at the same time.
|
public static final CheckpointingMode DEFAULT_MODE
public static final long DEFAULT_TIMEOUT
public static final long DEFAULT_MIN_PAUSE_BETWEEN_CHECKPOINTS
public static final int DEFAULT_MAX_CONCURRENT_CHECKPOINTS
public boolean isCheckpointingEnabled()
public CheckpointingMode getCheckpointingMode()
public void setCheckpointingMode(CheckpointingMode checkpointingMode)
checkpointingMode
- The checkpointing mode.public long getCheckpointInterval()
This setting defines the base interval. Checkpoint triggering may be delayed by the settings
getMaxConcurrentCheckpoints()
and getMinPauseBetweenCheckpoints()
.
public void setCheckpointInterval(long checkpointInterval)
This setting defines the base interval. Checkpoint triggering may be delayed by the settings
setMaxConcurrentCheckpoints(int)
and #setMinPauseBetweenCheckpoints(long)
.
checkpointInterval
- The checkpoint interval, in milliseconds.public long getCheckpointTimeout()
public void setCheckpointTimeout(long checkpointTimeout)
checkpointTimeout
- The checkpoint timeout, in milliseconds.public long getMinPauseBetweenCheckpoints()
getMaxConcurrentCheckpoints()
).public int getMaxConcurrentCheckpoints()
public void setMaxConcurrentCheckpoints(int maxConcurrentCheckpoints)
maxConcurrentCheckpoints
- The maximum number of concurrent checkpoint attempts.@Deprecated @PublicEvolving public boolean isForceCheckpointing()
@Deprecated @PublicEvolving public void setForceCheckpointing(boolean forceCheckpointing)
forceCheckpointing
- The flag to force checkpointing.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.