public interface BatchJobRecoveryHandler
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(BatchJobRecoveryContext batchJobRecoveryContext)
Initializes the recovery handler with the batch job recovery context.
|
boolean |
isRecovering()
Determines whether the job is recovering.
|
boolean |
needRecover()
Determines whether the job needs to undergo recovery.
|
void |
onExecutionFinished(ExecutionVertexID executionVertexId)
Records the execution vertex finished event for use during future batch job recovery.
|
void |
onExecutionJobVertexInitialization(JobVertexID jobVertexId,
int parallelism,
Map<IntermediateDataSetID,JobVertexInputInfo> jobVertexInputInfos)
Records the job vertex initialization event for use during future batch job recovery.
|
void |
onExecutionVertexReset(Collection<ExecutionVertexID> vertices)
Handles the reset event for a collection of execution vertices and records the event for use
during future batch job recovery.
|
void |
startRecovering()
Starts the recovery process.
|
void |
stop(boolean cleanUp)
Stops the job recovery handler and optionally clean up.
|
void initialize(BatchJobRecoveryContext batchJobRecoveryContext)
void startRecovering()
void stop(boolean cleanUp)
cleanUp - whether to clean up.boolean needRecover()
boolean isRecovering()
void onExecutionVertexReset(Collection<ExecutionVertexID> vertices)
vertices - a collection of execution vertex IDs that have been reset.void onExecutionJobVertexInitialization(JobVertexID jobVertexId, int parallelism, Map<IntermediateDataSetID,JobVertexInputInfo> jobVertexInputInfos)
jobVertexId - the id of the job vertex being initialized.parallelism - the parallelism of the job vertex.jobVertexInputInfos - a map of intermediate dataset IDs to job vertex input info.void onExecutionFinished(ExecutionVertexID executionVertexId)
executionVertexId - the id of the execution vertex is finished.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.