Enum NoOpCheckpointStatsTracker
java.lang.Object
java.lang.Enum<NoOpCheckpointStatsTracker>
org.apache.flink.runtime.checkpoint.NoOpCheckpointStatsTracker
- All Implemented Interfaces:
Serializable,Comparable<NoOpCheckpointStatsTracker>,CheckpointStatsTracker
public enum NoOpCheckpointStatsTracker
extends Enum<NoOpCheckpointStatsTracker>
implements CheckpointStatsTracker
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionCreates a new snapshot of the available stats.getPendingCheckpointStats(long checkpointId) voidCallback when a checkpoint completes.voidvoidCallback when a checkpoint failure without in progress checkpoint.voidreportIncompleteStats(long checkpointId, ExecutionAttemptID attemptId, CheckpointMetrics metrics) voidreportInitializationMetrics(ExecutionAttemptID executionAttemptId, SubTaskInitializationMetrics initializationMetrics) voidreportInitializationStarted(Set<ExecutionAttemptID> toInitialize, long initializationStartTs) reportPendingCheckpoint(long checkpointId, long triggerTimestamp, CheckpointProperties props, Map<JobVertexID, Integer> vertexToDop) Creates a new pending checkpoint tracker.voidreportRestoredCheckpoint(long checkpointID, CheckpointProperties properties, String externalPath, long stateSize) static NoOpCheckpointStatsTrackerReturns the enum constant of this type with the specified name.static NoOpCheckpointStatsTracker[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
reportRestoredCheckpoint
public void reportRestoredCheckpoint(long checkpointID, CheckpointProperties properties, String externalPath, long stateSize) - Specified by:
reportRestoredCheckpointin interfaceCheckpointStatsTracker
-
reportCompletedCheckpoint
Description copied from interface:CheckpointStatsTrackerCallback when a checkpoint completes.- Specified by:
reportCompletedCheckpointin interfaceCheckpointStatsTracker- Parameters:
completed- The completed checkpoint stats.
-
getPendingCheckpointStats
- Specified by:
getPendingCheckpointStatsin interfaceCheckpointStatsTracker
-
reportIncompleteStats
public void reportIncompleteStats(long checkpointId, ExecutionAttemptID attemptId, CheckpointMetrics metrics) - Specified by:
reportIncompleteStatsin interfaceCheckpointStatsTracker
-
reportInitializationStarted
public void reportInitializationStarted(Set<ExecutionAttemptID> toInitialize, long initializationStartTs) - Specified by:
reportInitializationStartedin interfaceCheckpointStatsTracker
-
reportInitializationMetrics
public void reportInitializationMetrics(ExecutionAttemptID executionAttemptId, SubTaskInitializationMetrics initializationMetrics) - Specified by:
reportInitializationMetricsin interfaceCheckpointStatsTracker
-
reportPendingCheckpoint
@Nullable public PendingCheckpointStats reportPendingCheckpoint(long checkpointId, long triggerTimestamp, CheckpointProperties props, Map<JobVertexID, Integer> vertexToDop) Description copied from interface:CheckpointStatsTrackerCreates a new pending checkpoint tracker.- Specified by:
reportPendingCheckpointin interfaceCheckpointStatsTracker- Parameters:
checkpointId- ID of the checkpoint.triggerTimestamp- Trigger timestamp of the checkpoint.props- The checkpoint properties.vertexToDop- mapping ofJobVertexIDto DOP- Returns:
- Tracker for statistics gathering or
nullif no stats were tracked.
-
reportFailedCheckpoint
- Specified by:
reportFailedCheckpointin interfaceCheckpointStatsTracker
-
reportFailedCheckpointsWithoutInProgress
public void reportFailedCheckpointsWithoutInProgress()Description copied from interface:CheckpointStatsTrackerCallback when a checkpoint failure without in progress checkpoint. For example, it should be callback when triggering checkpoint failure before creating PendingCheckpoint.- Specified by:
reportFailedCheckpointsWithoutInProgressin interfaceCheckpointStatsTracker
-
createSnapshot
Description copied from interface:CheckpointStatsTrackerCreates a new snapshot of the available stats.- Specified by:
createSnapshotin interfaceCheckpointStatsTracker- Returns:
- The latest statistics snapshot.
-