public class RpcCheckpointResponder extends Object implements CheckpointResponder
Constructor and Description |
---|
RpcCheckpointResponder(CheckpointCoordinatorGateway checkpointCoordinatorGateway) |
Modifier and Type | Method and 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,
Throwable cause)
Declines the given checkpoint.
|
public RpcCheckpointResponder(CheckpointCoordinatorGateway checkpointCoordinatorGateway)
public void acknowledgeCheckpoint(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, CheckpointMetrics checkpointMetrics, TaskStateSnapshot subtaskState)
CheckpointResponder
acknowledgeCheckpoint
in interface CheckpointResponder
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 checkpointpublic void declineCheckpoint(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, Throwable cause)
CheckpointResponder
declineCheckpoint
in interface CheckpointResponder
jobID
- Job ID of the running jobexecutionAttemptID
- Execution attempt ID of the running taskcheckpointId
- The ID of the declined checkpointcause
- The optional cause why the checkpoint was declinedCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.