use of org.apache.flink.runtime.executiongraph.EdgeManager in project flink by apache.
the class DefaultExecutionTopology method fromExecutionGraph.
public static DefaultExecutionTopology fromExecutionGraph(DefaultExecutionGraph executionGraph) {
checkNotNull(executionGraph, "execution graph can not be null");
EdgeManager edgeManager = executionGraph.getEdgeManager();
DefaultExecutionTopology schedulingTopology = new DefaultExecutionTopology(() -> IterableUtils.toStream(executionGraph.getAllExecutionVertices()).map(ExecutionVertex::getID).collect(Collectors.toList()), edgeManager, computeLogicalPipelinedRegionsByJobVertexId(executionGraph));
schedulingTopology.notifyExecutionGraphUpdated(executionGraph, IterableUtils.toStream(executionGraph.getVerticesTopologically()).filter(ExecutionJobVertex::isInitialized).collect(Collectors.toList()));
return schedulingTopology;
}
Aggregations