public class ActorGatewayCheckpointResponder extends Object implements CheckpointResponder
ActorGateway
to forward the messages.Constructor and Description |
---|
ActorGatewayCheckpointResponder(ActorGateway actorGateway) |
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeCheckpoint(JobID jobID,
ExecutionAttemptID executionAttemptID,
long checkpointId,
CheckpointMetrics checkpointMetrics,
TaskStateSnapshot checkpointStateHandles)
Acknowledges the given checkpoint.
|
void |
declineCheckpoint(JobID jobID,
ExecutionAttemptID executionAttemptID,
long checkpointId,
Throwable reason)
Declines the given checkpoint.
|
public ActorGatewayCheckpointResponder(ActorGateway actorGateway)
public void acknowledgeCheckpoint(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, CheckpointMetrics checkpointMetrics, TaskStateSnapshot checkpointStateHandles)
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 checkpointcheckpointStateHandles
- State handles for the checkpointpublic void declineCheckpoint(JobID jobID, ExecutionAttemptID executionAttemptID, long checkpointId, Throwable reason)
CheckpointResponder
declineCheckpoint
in interface CheckpointResponder
jobID
- Job ID of the running jobexecutionAttemptID
- Execution attempt ID of the running taskcheckpointId
- The ID of the declined checkpointreason
- The optional cause why the checkpoint was declinedCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.