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 Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckpointStatsSnapshot
createSnapshot()
Creates a new snapshot of the available stats.PendingCheckpointStats
getPendingCheckpointStats(long checkpointId)
void
reportCompletedCheckpoint(CompletedCheckpointStats completed)
Callback when a checkpoint completes.void
reportFailedCheckpoint(FailedCheckpointStats failed)
void
reportFailedCheckpointsWithoutInProgress()
Callback when a checkpoint failure without in progress checkpoint.void
reportIncompleteStats(long checkpointId, ExecutionAttemptID attemptId, CheckpointMetrics metrics)
void
reportInitializationMetrics(ExecutionAttemptID executionAttemptId, SubTaskInitializationMetrics initializationMetrics)
void
reportInitializationStarted(Set<ExecutionAttemptID> toInitialize, long initializationStartTs)
PendingCheckpointStats
reportPendingCheckpoint(long checkpointId, long triggerTimestamp, CheckpointProperties props, Map<JobVertexID,Integer> vertexToDop)
Creates a new pending checkpoint tracker.void
reportRestoredCheckpoint(long checkpointID, CheckpointProperties properties, String externalPath, long stateSize)
static NoOpCheckpointStatsTracker
valueOf(String name)
Returns 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 Detail
-
INSTANCE
public static final NoOpCheckpointStatsTracker INSTANCE
-
-
Method Detail
-
values
public static NoOpCheckpointStatsTracker[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NoOpCheckpointStatsTracker c : NoOpCheckpointStatsTracker.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoOpCheckpointStatsTracker valueOf(String name)
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:
reportRestoredCheckpoint
in interfaceCheckpointStatsTracker
-
reportCompletedCheckpoint
public void reportCompletedCheckpoint(CompletedCheckpointStats completed)
Description copied from interface:CheckpointStatsTracker
Callback when a checkpoint completes.- Specified by:
reportCompletedCheckpoint
in interfaceCheckpointStatsTracker
- Parameters:
completed
- The completed checkpoint stats.
-
getPendingCheckpointStats
@Nullable public PendingCheckpointStats getPendingCheckpointStats(long checkpointId)
- Specified by:
getPendingCheckpointStats
in interfaceCheckpointStatsTracker
-
reportIncompleteStats
public void reportIncompleteStats(long checkpointId, ExecutionAttemptID attemptId, CheckpointMetrics metrics)
- Specified by:
reportIncompleteStats
in interfaceCheckpointStatsTracker
-
reportInitializationStarted
public void reportInitializationStarted(Set<ExecutionAttemptID> toInitialize, long initializationStartTs)
- Specified by:
reportInitializationStarted
in interfaceCheckpointStatsTracker
-
reportInitializationMetrics
public void reportInitializationMetrics(ExecutionAttemptID executionAttemptId, SubTaskInitializationMetrics initializationMetrics)
- Specified by:
reportInitializationMetrics
in interfaceCheckpointStatsTracker
-
reportPendingCheckpoint
@Nullable public PendingCheckpointStats reportPendingCheckpoint(long checkpointId, long triggerTimestamp, CheckpointProperties props, Map<JobVertexID,Integer> vertexToDop)
Description copied from interface:CheckpointStatsTracker
Creates a new pending checkpoint tracker.- Specified by:
reportPendingCheckpoint
in interfaceCheckpointStatsTracker
- Parameters:
checkpointId
- ID of the checkpoint.triggerTimestamp
- Trigger timestamp of the checkpoint.props
- The checkpoint properties.vertexToDop
- mapping ofJobVertexID
to DOP- Returns:
- Tracker for statistics gathering or
null
if no stats were tracked.
-
reportFailedCheckpoint
public void reportFailedCheckpoint(FailedCheckpointStats failed)
- Specified by:
reportFailedCheckpoint
in interfaceCheckpointStatsTracker
-
reportFailedCheckpointsWithoutInProgress
public void reportFailedCheckpointsWithoutInProgress()
Description copied from interface:CheckpointStatsTracker
Callback when a checkpoint failure without in progress checkpoint. For example, it should be callback when triggering checkpoint failure before creating PendingCheckpoint.- Specified by:
reportFailedCheckpointsWithoutInProgress
in interfaceCheckpointStatsTracker
-
createSnapshot
public CheckpointStatsSnapshot createSnapshot()
Description copied from interface:CheckpointStatsTracker
Creates a new snapshot of the available stats.- Specified by:
createSnapshot
in interfaceCheckpointStatsTracker
- Returns:
- The latest statistics snapshot.
-
-