public class DummySpeculativeExecutionHandler extends Object implements SpeculativeExecutionHandler
SpeculativeExecutionHandler.| Constructor and Description |
|---|
DummySpeculativeExecutionHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleTaskFailure(Execution failedExecution,
Throwable error,
BiConsumer<Execution,Throwable> handleLocalExecutionAttemptFailure)
Handles a task failure.
|
void |
init(ExecutionGraph executionGraph,
org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor,
org.apache.flink.metrics.MetricGroup metricGroup)
Initial speculative execution handler.
|
void |
notifyTaskFailed(Execution execution)
Notifies that a task has failed its execution.
|
void |
notifyTaskFinished(Execution execution,
Function<ExecutionVertexID,CompletableFuture<?>> cancelPendingExecutionsFunction)
Notifies that a task has finished its execution.
|
void |
resetForNewExecution(ExecutionVertexID executionVertexId)
Resets the state of the component for a new execution of a specific execution vertex.
|
void |
stopSlowTaskDetector()
Stops the slow task detector.
|
public void init(ExecutionGraph executionGraph, org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor, org.apache.flink.metrics.MetricGroup metricGroup)
SpeculativeExecutionHandlerinit in interface SpeculativeExecutionHandlerpublic void stopSlowTaskDetector()
SpeculativeExecutionHandlerstopSlowTaskDetector in interface SpeculativeExecutionHandlerpublic void notifyTaskFinished(Execution execution, Function<ExecutionVertexID,CompletableFuture<?>> cancelPendingExecutionsFunction)
SpeculativeExecutionHandlernotifyTaskFinished in interface SpeculativeExecutionHandlerexecution - the execution that has finishedcancelPendingExecutionsFunction - the function to cancel pending executionspublic void notifyTaskFailed(Execution execution)
SpeculativeExecutionHandlernotifyTaskFailed in interface SpeculativeExecutionHandlerexecution - the execution that has failedpublic boolean handleTaskFailure(Execution failedExecution, @Nullable Throwable error, BiConsumer<Execution,Throwable> handleLocalExecutionAttemptFailure)
SpeculativeExecutionHandlerhandleTaskFailure in interface SpeculativeExecutionHandlerfailedExecution - the execution that failederror - the error that caused the failure, if availablehandleLocalExecutionAttemptFailure - a consumer that handles local execution attempt
failurepublic void resetForNewExecution(ExecutionVertexID executionVertexId)
SpeculativeExecutionHandlerresetForNewExecution in interface SpeculativeExecutionHandlerexecutionVertexId - the ID of the execution vertex to resetCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.