Class RpcCheckpointResponder
- java.lang.Object
-
- org.apache.flink.runtime.taskexecutor.rpc.RpcCheckpointResponder
-
- All Implemented Interfaces:
CheckpointResponder
public class RpcCheckpointResponder extends Object implements CheckpointResponder
-
-
Constructor Summary
Constructors Constructor Description RpcCheckpointResponder(CheckpointCoordinatorGateway checkpointCoordinatorGateway)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acknowledgeCheckpoint(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, CheckpointMetrics checkpointMetrics, TaskStateSnapshot subtaskState)
Acknowledges the given checkpoint.void
declineCheckpoint(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, CheckpointException checkpointException)
Declines the given checkpoint.void
reportCheckpointMetrics(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, CheckpointMetrics checkpointMetrics)
Report metrics for the given checkpoint.void
reportInitializationMetrics(JobID jobId, ExecutionAttemptID executionAttemptId, SubTaskInitializationMetrics initializationMetrics)
-
-
-
Constructor Detail
-
RpcCheckpointResponder
public RpcCheckpointResponder(CheckpointCoordinatorGateway checkpointCoordinatorGateway)
-
-
Method Detail
-
acknowledgeCheckpoint
public void acknowledgeCheckpoint(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, CheckpointMetrics checkpointMetrics, TaskStateSnapshot subtaskState)
Description copied from interface:CheckpointResponder
Acknowledges the given checkpoint.- Specified by:
acknowledgeCheckpoint
in interfaceCheckpointResponder
- Parameters:
jobID
- Job ID of the running jobexecutionAttemptID
- Execution attempt ID of the running taskcheckpointId
- Meta data for this checkpointcheckpointMetrics
- Metrics of this checkpointsubtaskState
- State handles for the checkpoint
-
reportCheckpointMetrics
public void reportCheckpointMetrics(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, CheckpointMetrics checkpointMetrics)
Description copied from interface:CheckpointResponder
Report metrics for the given checkpoint. Can be used upon receiving abortion notification.- Specified by:
reportCheckpointMetrics
in interfaceCheckpointResponder
- Parameters:
jobID
- Job ID of the running jobexecutionAttemptID
- Execution attempt ID of the running taskcheckpointId
- Meta data for this checkpointcheckpointMetrics
- Metrics of this checkpoint
-
declineCheckpoint
public void declineCheckpoint(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, CheckpointException checkpointException)
Description copied from interface:CheckpointResponder
Declines the given checkpoint.- Specified by:
declineCheckpoint
in interfaceCheckpointResponder
- Parameters:
jobID
- Job ID of the running jobexecutionAttemptID
- Execution attempt ID of the running taskcheckpointId
- The ID of the declined checkpointcheckpointException
- The exception why the checkpoint was declined
-
reportInitializationMetrics
public void reportInitializationMetrics(JobID jobId, ExecutionAttemptID executionAttemptId, SubTaskInitializationMetrics initializationMetrics)
- Specified by:
reportInitializationMetrics
in interfaceCheckpointResponder
-
-