public class RestartPipelinedRegionFailoverStrategy extends Object implements FailoverStrategy
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RestartPipelinedRegionFailoverStrategy.Factory
The factory to instantiate
RestartPipelinedRegionFailoverStrategy. |
| 构造器和说明 |
|---|
RestartPipelinedRegionFailoverStrategy(SchedulingTopology topology)
Creates a new failover strategy to restart pipelined regions that works on the given
topology.
|
RestartPipelinedRegionFailoverStrategy(SchedulingTopology topology,
ResultPartitionAvailabilityChecker resultPartitionAvailabilityChecker)
Creates a new failover strategy to restart pipelined regions that works on the given
topology.
|
| 限定符和类型 | 方法和说明 |
|---|---|
SchedulingPipelinedRegion |
getFailoverRegion(ExecutionVertexID vertexID)
Returns the failover region that contains the given execution vertex.
|
Set<ExecutionVertexID> |
getTasksNeedingRestart(ExecutionVertexID executionVertexId,
Throwable cause)
Returns a set of IDs corresponding to the set of vertices that should be restarted.
|
@VisibleForTesting public RestartPipelinedRegionFailoverStrategy(SchedulingTopology topology)
topology - containing info about all the vertices and result partitionspublic RestartPipelinedRegionFailoverStrategy(SchedulingTopology topology, ResultPartitionAvailabilityChecker resultPartitionAvailabilityChecker)
topology - containing info about all the vertices and result partitionsresultPartitionAvailabilityChecker - helps to query result partition availabilitypublic Set<ExecutionVertexID> getTasksNeedingRestart(ExecutionVertexID executionVertexId, Throwable cause)
getTasksNeedingRestart 在接口中 FailoverStrategyexecutionVertexId - ID of the failed taskcause - cause of the failure@VisibleForTesting public SchedulingPipelinedRegion getFailoverRegion(ExecutionVertexID vertexID)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.