Search in sources :

Example 1 with EdgeManager

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;
}
Also used : EdgeManager(org.apache.flink.runtime.executiongraph.EdgeManager) ExecutionJobVertex(org.apache.flink.runtime.executiongraph.ExecutionJobVertex) SchedulingExecutionVertex(org.apache.flink.runtime.scheduler.strategy.SchedulingExecutionVertex) ExecutionVertex(org.apache.flink.runtime.executiongraph.ExecutionVertex)

Aggregations

EdgeManager (org.apache.flink.runtime.executiongraph.EdgeManager)1 ExecutionJobVertex (org.apache.flink.runtime.executiongraph.ExecutionJobVertex)1 ExecutionVertex (org.apache.flink.runtime.executiongraph.ExecutionVertex)1 SchedulingExecutionVertex (org.apache.flink.runtime.scheduler.strategy.SchedulingExecutionVertex)1