public class DefaultExecutionTopology extends Object implements SchedulingTopology
ExecutionGraph to SchedulingTopology.| 限定符和类型 | 方法和说明 |
|---|---|
static DefaultExecutionTopology |
fromExecutionGraph(DefaultExecutionGraph executionGraph) |
Iterable<DefaultSchedulingPipelinedRegion> |
getAllPipelinedRegions()
Returns all pipelined regions in this topology.
|
EdgeManager |
getEdgeManager() |
DefaultSchedulingPipelinedRegion |
getPipelinedRegionOfVertex(ExecutionVertexID vertexId)
The pipelined region for a specified vertex.
|
org.apache.flink.runtime.scheduler.adapter.DefaultResultPartition |
getResultPartition(IntermediateResultPartitionID intermediateResultPartitionId)
Looks up the
SchedulingResultPartition for the given IntermediateResultPartitionID. |
org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertex |
getVertex(ExecutionVertexID executionVertexId)
Looks up the
SchedulingExecutionVertex for the given ExecutionVertexID. |
Iterable<org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertex> |
getVertices()
Returns an iterable over all vertices, topologically sorted.
|
void |
notifyExecutionGraphUpdated(DefaultExecutionGraph executionGraph,
List<ExecutionJobVertex> newlyInitializedJobVertices) |
void |
registerSchedulingTopologyListener(SchedulingTopologyListener listener)
Register a scheduling topology listener.
|
public Iterable<org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertex> getVertices()
BaseTopologygetVertices 在接口中 BaseTopology<ExecutionVertexID,IntermediateResultPartitionID,SchedulingExecutionVertex,SchedulingResultPartition>public org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertex getVertex(ExecutionVertexID executionVertexId)
SchedulingTopologySchedulingExecutionVertex for the given ExecutionVertexID.getVertex 在接口中 SchedulingTopologyexecutionVertexId - identifying the respective scheduling vertexpublic org.apache.flink.runtime.scheduler.adapter.DefaultResultPartition getResultPartition(IntermediateResultPartitionID intermediateResultPartitionId)
SchedulingTopologySchedulingResultPartition for the given IntermediateResultPartitionID.getResultPartition 在接口中 SchedulingTopologyintermediateResultPartitionId - identifying the respective scheduling result partitionpublic void registerSchedulingTopologyListener(SchedulingTopologyListener listener)
SchedulingTopologySchedulingTopologyListener.notifySchedulingTopologyUpdated(SchedulingTopology, List) when
the scheduling topology is updated.registerSchedulingTopologyListener 在接口中 SchedulingTopologylistener - the registered listener.public Iterable<DefaultSchedulingPipelinedRegion> getAllPipelinedRegions()
TopologygetAllPipelinedRegions 在接口中 Topology<ExecutionVertexID,IntermediateResultPartitionID,SchedulingExecutionVertex,SchedulingResultPartition,SchedulingPipelinedRegion>public DefaultSchedulingPipelinedRegion getPipelinedRegionOfVertex(ExecutionVertexID vertexId)
TopologygetPipelinedRegionOfVertex 在接口中 Topology<ExecutionVertexID,IntermediateResultPartitionID,SchedulingExecutionVertex,SchedulingResultPartition,SchedulingPipelinedRegion>vertexId - the vertex id identifying the vertex for which the pipelined region should be
returnedpublic EdgeManager getEdgeManager()
public void notifyExecutionGraphUpdated(DefaultExecutionGraph executionGraph, List<ExecutionJobVertex> newlyInitializedJobVertices)
public static DefaultExecutionTopology fromExecutionGraph(DefaultExecutionGraph executionGraph)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.