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,
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,
SubTaskInitializationMetrics initializationMetrics) |
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 reportCheckpointMetrics(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, CheckpointMetrics checkpointMetrics)
CheckpointResponder
reportCheckpointMetrics
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 checkpointpublic void declineCheckpoint(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, CheckpointException checkpointException)
CheckpointResponder
declineCheckpoint
in interface CheckpointResponder
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 declinedpublic void reportInitializationMetrics(JobID jobId, SubTaskInitializationMetrics initializationMetrics)
reportInitializationMetrics
in interface CheckpointResponder
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.