public class DefaultBatchJobRecoveryHandler extends Object implements BatchJobRecoveryHandler, JobEventReplayHandler
BatchJobRecoveryHandler and JobEventReplayHandler.| 构造器和说明 |
|---|
DefaultBatchJobRecoveryHandler(JobEventManager jobEventManager,
org.apache.flink.configuration.Configuration jobMasterConfiguration) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
finalizeReplay()
Called when finalizing replaying job event.
|
void |
initialize(BatchJobRecoveryContext context)
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 |
replayOneEvent(JobEvent jobEvent)
Called to replay one job event.
|
void |
startRecovering()
Starts the recovery process.
|
void |
startReplay()
Called when starting replaying job event.
|
void |
stop(boolean cleanUp)
Stops the job recovery handler and optionally clean up.
|
public DefaultBatchJobRecoveryHandler(JobEventManager jobEventManager, org.apache.flink.configuration.Configuration jobMasterConfiguration)
public void initialize(BatchJobRecoveryContext context)
BatchJobRecoveryHandlerinitialize 在接口中 BatchJobRecoveryHandlerpublic void stop(boolean cleanUp)
BatchJobRecoveryHandlerstop 在接口中 BatchJobRecoveryHandlercleanUp - whether to clean up.public void startRecovering()
BatchJobRecoveryHandlerstartRecovering 在接口中 BatchJobRecoveryHandlerpublic boolean needRecover()
BatchJobRecoveryHandlerneedRecover 在接口中 BatchJobRecoveryHandlerpublic boolean isRecovering()
BatchJobRecoveryHandlerisRecovering 在接口中 BatchJobRecoveryHandlerpublic void startReplay()
JobEventReplayHandlerstartReplay 在接口中 JobEventReplayHandlerpublic void replayOneEvent(JobEvent jobEvent)
JobEventReplayHandlerreplayOneEvent 在接口中 JobEventReplayHandlerpublic void finalizeReplay()
throws Exception
JobEventReplayHandlerfinalizeReplay 在接口中 JobEventReplayHandlerExceptionpublic void onExecutionVertexReset(Collection<ExecutionVertexID> vertices)
BatchJobRecoveryHandleronExecutionVertexReset 在接口中 BatchJobRecoveryHandlervertices - a collection of execution vertex IDs that have been reset.public void onExecutionJobVertexInitialization(JobVertexID jobVertexId, int parallelism, Map<IntermediateDataSetID,JobVertexInputInfo> jobVertexInputInfos)
BatchJobRecoveryHandleronExecutionJobVertexInitialization 在接口中 BatchJobRecoveryHandlerjobVertexId - 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.public void onExecutionFinished(ExecutionVertexID executionVertexId)
BatchJobRecoveryHandleronExecutionFinished 在接口中 BatchJobRecoveryHandlerexecutionVertexId - the id of the execution vertex is finished.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.