Search in sources :

Example 1 with FlowGraphPath

use of org.apache.gobblin.service.modules.flow.FlowGraphPath in project incubator-gobblin by apache.

the class AbstractPathFinder method findPath.

@Override
public FlowGraphPath findPath() throws PathFinderException {
    FlowGraphPath flowGraphPath = new FlowGraphPath(flowSpec, flowExecutionId);
    // flow graph.
    for (DataNode destNode : this.destNodes) {
        List<FlowEdgeContext> path = findPathUnicast(destNode);
        if (path != null) {
            log.info("Path to destination node {} found for flow {}. Path - {}", destNode.getId(), flowSpec.getUri(), path);
            flowGraphPath.addPath(path);
        } else {
            log.error("Path to destination node {} could not be found for flow {}.", destNode.getId(), flowSpec.getUri());
            // No path to at least one of the destination nodes.
            return null;
        }
    }
    return flowGraphPath;
}
Also used : FlowEdgeContext(org.apache.gobblin.service.modules.flow.FlowEdgeContext) DataNode(org.apache.gobblin.service.modules.flowgraph.DataNode) FlowGraphPath(org.apache.gobblin.service.modules.flow.FlowGraphPath)

Aggregations

FlowEdgeContext (org.apache.gobblin.service.modules.flow.FlowEdgeContext)1 FlowGraphPath (org.apache.gobblin.service.modules.flow.FlowGraphPath)1 DataNode (org.apache.gobblin.service.modules.flowgraph.DataNode)1