public class DummyBatchJobRecoveryHandler extends Object implements BatchJobRecoveryHandler
BatchJobRecoveryHandler.| 构造器和说明 |
|---|
DummyBatchJobRecoveryHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public void initialize(BatchJobRecoveryContext batchJobRecoveryContext)
BatchJobRecoveryHandlerinitialize 在接口中 BatchJobRecoveryHandlerpublic void startRecovering()
BatchJobRecoveryHandlerstartRecovering 在接口中 BatchJobRecoveryHandlerpublic void stop(boolean cleanUp)
BatchJobRecoveryHandlerstop 在接口中 BatchJobRecoveryHandlercleanUp - whether to clean up.public boolean needRecover()
BatchJobRecoveryHandlerneedRecover 在接口中 BatchJobRecoveryHandlerpublic boolean isRecovering()
BatchJobRecoveryHandlerisRecovering 在接口中 BatchJobRecoveryHandlerpublic 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.