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;
}
Aggregations