Package eu.admire.dispel.graph

Examples of eu.admire.dispel.graph.ExternalOutputNode


    public void testExternalInputsOutputs()
    {
        ProcessingElementNode a = new ProcessingElementNode("eu.admire.A");
        ProcessingElementNode b = new ProcessingElementNode("eu.admire.B");
        ExternalOutputNode out = new ExternalOutputNode("transfer1", "epr=\"xyz\"");
        ExternalInputNode in = new ExternalInputNode("transfer1", "epr");
        ResultNode result = new ResultNode("result");
        a.connectOutput("out", 0, b.getInput("in", 0));
        out.connectInput(b.getOutput("out", 0));
        a.connectInput("in", 0, in.getOutput());
        result.connectInput(b.getOutput("xxx", 0));
        Graph graph = new Graph();
        graph.add(a);
        graph.add(b);
View Full Code Here


        Object sourceGateway = source.getAnnotation(AnnotationKeys.GATEWAY);
        Object targetGateway = target.getAnnotation(AnnotationKeys.GATEWAY);
        String transferName = mTransferPrefix + (mDTCounter++);
       
        // insert a new external output node with an auto-generated name
        ExternalOutputNode externalOutput =
            new ExternalOutputNode(transferName, mRootGateway);
        RequestNodeInput newInput =
            new SingleRequestNodeInput(externalOutput, ExternalOutputNode.INPUT_NAME, 0);
        replaceTarget(connection, target, newInput);
        externalOutput.getAllInputs().get(ExternalOutputNode.INPUT_NAME).put(0, connection);
        externalOutput.addAnnotation(AnnotationKeys.GATEWAY, sourceGateway);
        graph.add(externalOutput);
               
        // insert an external input node which connects to the results
        ExternalInputNode externalInput =
            new ExternalInputNode(transferName, mRootGateway);
View Full Code Here

                                + " defined for processing element "
                                + ExternalOutputNode.NAME);
                    }
                    Connection data =
                        node.getInput(ExternalOutputNode.INPUT_NAME, 0);
                    ExternalOutputNode output = new ExternalOutputNode(name, gateway);
                    output.copyAnnotations(node);
                    GraphUtilities.replaceTarget(
                            data,
                            node,
                            new SingleRequestNodeInput(output, ExternalOutputNode.INPUT_NAME, 0));
                    output.setInput(data);
                    add.add(output);
                    LOG.debug("Created new external output node, name: " + name);
                }
                else if (ExternalInputNode.NAME.equals(node.getName()))
                {
View Full Code Here

            dispel.append(names.get(node)).append(".name;\n");
            writeConnections(dispel, names, node);
        }
        else if (node instanceof ExternalOutputNode)
        {
            ExternalOutputNode output = (ExternalOutputNode) node;
            dispel.append("|- \"").append(output.getResultName()).append("\" -| => ");
            dispel.append(names.get(node));
            dispel.append(".").append(ExternalOutputNode.INPUT_RESULT);
            dispel.append(";\n");
            String epr = output.getGatewayAddress().replace("\"", "\\\"");
            dispel.append("|- \"").append(epr).append("\" -| => ");
            dispel.append(names.get(node));
            dispel.append(".").append(ExternalOutputNode.INPUT_GATEWAY);
            dispel.append(";\n");
            writeConnections(dispel, names, node);
View Full Code Here

TOP

Related Classes of eu.admire.dispel.graph.ExternalOutputNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.