public class RegionPartitionGroupReleaseStrategy extends Object implements PartitionGroupReleaseStrategy, SchedulingTopologyListener
SchedulingPipelinedRegion, as soon as the region's execution vertices are finished.| Modifier and Type | Class and Description |
|---|---|
static class |
RegionPartitionGroupReleaseStrategy.Factory
Factory for
PartitionGroupReleaseStrategy. |
| Constructor and Description |
|---|
RegionPartitionGroupReleaseStrategy(SchedulingTopology schedulingTopology) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRegionOfVertexFinished(ExecutionVertexID executionVertexId) |
void |
notifySchedulingTopologyUpdated(SchedulingTopology schedulingTopology,
List<ExecutionVertexID> newExecutionVertices)
Notifies that the scheduling topology is just updated.
|
List<ConsumedPartitionGroup> |
vertexFinished(ExecutionVertexID finishedVertex)
Calling this method informs the strategy that a vertex finished.
|
void |
vertexUnfinished(ExecutionVertexID executionVertexId)
Calling this method informs the strategy that a vertex is no longer in finished state, e.g.,
when a vertex is re-executed.
|
public RegionPartitionGroupReleaseStrategy(SchedulingTopology schedulingTopology)
public List<ConsumedPartitionGroup> vertexFinished(ExecutionVertexID finishedVertex)
PartitionGroupReleaseStrategyvertexFinished in interface PartitionGroupReleaseStrategyfinishedVertex - Id of the vertex that finished the executionConsumedPartitionGroups that can be releasedpublic void vertexUnfinished(ExecutionVertexID executionVertexId)
PartitionGroupReleaseStrategyvertexUnfinished in interface PartitionGroupReleaseStrategyexecutionVertexId - Id of the vertex that is no longer in finished state.@VisibleForTesting public boolean isRegionOfVertexFinished(ExecutionVertexID executionVertexId)
public void notifySchedulingTopologyUpdated(SchedulingTopology schedulingTopology, List<ExecutionVertexID> newExecutionVertices)
SchedulingTopologyListenernotifySchedulingTopologyUpdated in interface SchedulingTopologyListenerschedulingTopology - the scheduling topology which is just updatednewExecutionVertices - the newly added execution vertices.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.