@Override public MoreConnect to(String flowlet) { Preconditions.checkArgument(flowlet != null, UserMessages.getMessage(UserErrors.INVALID_FLOWLET_NULL)); Preconditions.checkArgument(flowlets.containsKey(flowlet), UserMessages.getMessage(UserErrors.INVALID_FLOWLET_NAME), flowlet); FlowletConnection.Type sourceType; String sourceName; sourceType = FlowletConnection.Type.FLOWLET; sourceName = fromFlowlet.getFlowletSpec().getName(); connections.add(new FlowletConnection(sourceType, sourceName, flowlet)); return this; }
final String source = connection.getSourceName(); final String target = connection.getTargetName(); final Node sourceNode = new Node(connection.getSourceType(), source);
if (connection.getSourceType() == FlowletConnection.Type.STREAM) { builder.add(createSpec(QueueName.fromStream(outputName), schemas.getFirst(), schemas.getSecond())); } else { builder.add(createSpec(QueueName.fromFlowlet(flow, flow, connection.getSourceName(), outputName), schemas.getFirst(), schemas.getSecond()));