Examples of createSCANode()


Examples of org.apache.tuscany.sca.node.SCANode2Factory.createSCANode()

    private SCANode2 node;

    @Override
    protected void setUp() throws Exception {
        SCANode2Factory nodeFactory = SCANode2Factory.newInstance();
        node = nodeFactory.createSCANode(new File("src/main/resources/ReferenceNotFound/Calculator.composite").toURL().toString(),
                             new SCAContribution("TestContribution",
                                                 new File("src/main/resources/ReferenceNotFound").toURL().toString()));
        node.start();
        calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent");
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANode2Factory.createSCANode()

            DomainManagerLauncher managerLauncher = DomainManagerLauncher.newInstance();
            manager = managerLauncher.createDomainManager();
            manager.start();
           
            SCANode2Factory nodeFactory = SCANode2Factory.newInstance();
            nodeC  = nodeFactory.createSCANode("http://localhost:9990/node-image/NodeC");
            nodeB  = nodeFactory.createSCANode("http://localhost:9990/node-image/NodeB");
            nodeA  = nodeFactory.createSCANode("http://localhost:9990/node-image/NodeA");

            nodeC.start();
            nodeB.start();
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANode2Factory.createSCANode()

            manager = managerLauncher.createDomainManager();
            manager.start();
           
            SCANode2Factory nodeFactory = SCANode2Factory.newInstance();
            nodeC  = nodeFactory.createSCANode("http://localhost:9990/node-image/NodeC");
            nodeB  = nodeFactory.createSCANode("http://localhost:9990/node-image/NodeB");
            nodeA  = nodeFactory.createSCANode("http://localhost:9990/node-image/NodeA");

            nodeC.start();
            nodeB.start();
            nodeA.start();
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANode2Factory.createSCANode()

            manager.start();
           
            SCANode2Factory nodeFactory = SCANode2Factory.newInstance();
            nodeC  = nodeFactory.createSCANode("http://localhost:9990/node-image/NodeC");
            nodeB  = nodeFactory.createSCANode("http://localhost:9990/node-image/NodeB");
            nodeA  = nodeFactory.createSCANode("http://localhost:9990/node-image/NodeA");

            nodeC.start();
            nodeB.start();
            nodeA.start();
           
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANode2Factory.createSCANode()

     *
     * @param configurationURI
     */
    public NodeImplementationLauncherBootstrap(String configurationURI) throws Exception {
        SCANode2Factory nodeFactory = SCANode2Factory.newInstance();
        node = new NodeFacade(nodeFactory.createSCANode(configurationURI));
    }

    /**
     * Bootstrap a new SCA node.
     *
 
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANode2Factory.createSCANode()

        SCANode2Factory nodeFactory = SCANode2Factory.newInstance();
        SCAContribution[] contributions = new SCAContribution[uris.length];
        for (int i = 0; i < uris.length; i++) {
            contributions[i] = new SCAContribution(uris[i], locations[i]);
        }
        node = new NodeFacade(nodeFactory.createSCANode(compositeURI, contributions));
    }

    /**
     * Returns the SCA node.
     *
 
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANode2Factory.createSCANode()

        // Determine the node image URI
        String nodeImage = NodeImplementationLauncherUtil.nodeImageURI(nodeName);
       
        // Create the SCA node
        SCANode2Factory nodeFactory = SCANode2Factory.newInstance();
        node = nodeFactory.createSCANode(nodeImage);
       
        // Register the Servlet host
        ServletHostExtensionPoint servletHosts = servletHosts(node);
        servletHosts.getServletHosts().clear();
        servletHosts.addServletHost(servletHost);
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANode2Factory.createSCANode()

        // Determine the node image URI
        String nodeImage = NodeImplementationLauncherUtil.nodeImageURI(nodeName);
       
        // Create the SCA node
        SCANode2Factory nodeFactory = SCANode2Factory.newInstance();
        node = nodeFactory.createSCANode(nodeImage);
       
        // Register the Servlet host
        ServletHostExtensionPoint servletHosts = servletHosts(node);
        servletHosts.getServletHosts().clear();
        servletHosts.addServletHost(servletHost);
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANode2Factory.createSCANode()

     *
     * @param configurationURI
     */
    public NodeImplementationLauncherBootstrap(String configurationURI) throws Exception {
        SCANode2Factory nodeFactory = SCANode2Factory.newInstance();
        node = new NodeFacade(nodeFactory.createSCANode(configurationURI));
    }

    /**
     * Bootstrap a new SCA node.
     *
 
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCANode2Factory.createSCANode()

        SCANode2Factory nodeFactory = SCANode2Factory.newInstance();
        SCAContribution[] contributions = new SCAContribution[uris.length];
        for (int i = 0; i < uris.length; i++) {
            contributions[i] = new SCAContribution(uris[i], locations[i]);
        }
        node = new NodeFacade(nodeFactory.createSCANode(compositeURI, contributions));
    }

    /**
     * Returns the SCA node.
     *
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.