Class DummyBatchJobRecoveryHandler
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.adaptivebatch.DummyBatchJobRecoveryHandler
-
- All Implemented Interfaces:
BatchJobRecoveryHandler
public class DummyBatchJobRecoveryHandler extends Object implements BatchJobRecoveryHandler
A dummy implementation of theBatchJobRecoveryHandler.
-
-
Constructor Summary
Constructors Constructor Description DummyBatchJobRecoveryHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(BatchJobRecoveryContext batchJobRecoveryContext)Initializes the recovery handler with the batch job recovery context.booleanisRecovering()Determines whether the job is recovering.booleanneedRecover()Determines whether the job needs to undergo recovery.voidonExecutionFinished(ExecutionVertexID executionVertexId)Records the execution vertex finished event for use during future batch job recovery.voidonExecutionJobVertexInitialization(JobVertexID jobVertexId, int parallelism, Map<IntermediateDataSetID,JobVertexInputInfo> jobVertexInputInfos)Records the job vertex initialization event for use during future batch job recovery.voidonExecutionVertexReset(Collection<ExecutionVertexID> vertices)Handles the reset event for a collection of execution vertices and records the event for use during future batch job recovery.voidstartRecovering()Starts the recovery process.voidstop(boolean cleanUp)Stops the job recovery handler and optionally clean up.
-
-
-
Method Detail
-
initialize
public void initialize(BatchJobRecoveryContext batchJobRecoveryContext)
Description copied from interface:BatchJobRecoveryHandlerInitializes the recovery handler with the batch job recovery context.- Specified by:
initializein interfaceBatchJobRecoveryHandler
-
startRecovering
public void startRecovering()
Description copied from interface:BatchJobRecoveryHandlerStarts the recovery process.- Specified by:
startRecoveringin interfaceBatchJobRecoveryHandler
-
stop
public void stop(boolean cleanUp)
Description copied from interface:BatchJobRecoveryHandlerStops the job recovery handler and optionally clean up.- Specified by:
stopin interfaceBatchJobRecoveryHandler- Parameters:
cleanUp- whether to clean up.
-
needRecover
public boolean needRecover()
Description copied from interface:BatchJobRecoveryHandlerDetermines whether the job needs to undergo recovery.- Specified by:
needRecoverin interfaceBatchJobRecoveryHandler
-
isRecovering
public boolean isRecovering()
Description copied from interface:BatchJobRecoveryHandlerDetermines whether the job is recovering.- Specified by:
isRecoveringin interfaceBatchJobRecoveryHandler
-
onExecutionVertexReset
public void onExecutionVertexReset(Collection<ExecutionVertexID> vertices)
Description copied from interface:BatchJobRecoveryHandlerHandles the reset event for a collection of execution vertices and records the event for use during future batch job recovery.- Specified by:
onExecutionVertexResetin interfaceBatchJobRecoveryHandler- Parameters:
vertices- a collection of execution vertex IDs that have been reset.
-
onExecutionJobVertexInitialization
public void onExecutionJobVertexInitialization(JobVertexID jobVertexId, int parallelism, Map<IntermediateDataSetID,JobVertexInputInfo> jobVertexInputInfos)
Description copied from interface:BatchJobRecoveryHandlerRecords the job vertex initialization event for use during future batch job recovery.- Specified by:
onExecutionJobVertexInitializationin interfaceBatchJobRecoveryHandler- Parameters:
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.
-
onExecutionFinished
public void onExecutionFinished(ExecutionVertexID executionVertexId)
Description copied from interface:BatchJobRecoveryHandlerRecords the execution vertex finished event for use during future batch job recovery.- Specified by:
onExecutionFinishedin interfaceBatchJobRecoveryHandler- Parameters:
executionVertexId- the id of the execution vertex is finished.
-
-