Package org.apache.tuscany.sca.node

Examples of org.apache.tuscany.sca.node.Node.start()


public class T3558TestCase {

    @Test
    public void testAllJar() throws Exception {
        Node node = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store-all.jar"});
        node.start();
    }

    @Test
    public void testOneNode() throws Exception {
        Node node = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store.jar","src/test/resources/sample-store-client.jar"});
View Full Code Here


    }

    @Test
    public void testOneNode() throws Exception {
        Node node = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store.jar","src/test/resources/sample-store-client.jar"});
        node.start();
    }
   
    @Test
    public void testTwoNodes() throws Exception {
        Node node2 = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store.jar"});
View Full Code Here

    }
   
    @Test
    public void testTwoNodes() throws Exception {
        Node node2 = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store.jar"});
        node2.start();
        Node node1 = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store-client.jar"});
        node1.start();
    }
   
    @Test
View Full Code Here

    @Test
    public void testTwoNodes() throws Exception {
        Node node2 = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store.jar"});
        node2.start();
        Node node1 = NodeFactory.newInstance().createNode((String)null, new String[]{"src/test/resources/sample-store-client.jar"});
        node1.start();
    }
   
    @Test
    public void testTwoNodesJIRACode1() throws Exception {
        String storeLocation = "src/test/resources/sample-store.jar";
View Full Code Here

    public void testTwoNodesJIRACode1() throws Exception {
        String storeLocation = "src/test/resources/sample-store.jar";
        String storeClientLocation = "src/test/resources/sample-store-client.jar";

        Node node1 = NodeFactory.newInstance().createNode(new Contribution("store",storeLocation));
        node1.start();
        // The dependent contributions need to be added in the Node and need to be following the main contribution
        Node node2 = NodeFactory.newInstance().createNode("store-client.composite",new Contribution("storeClient", storeClientLocation),new Contribution("store", storeLocation));
        node2.start();    
    }
   
View Full Code Here

        Node node1 = NodeFactory.newInstance().createNode(new Contribution("store",storeLocation));
        node1.start();
        // The dependent contributions need to be added in the Node and need to be following the main contribution
        Node node2 = NodeFactory.newInstance().createNode("store-client.composite",new Contribution("storeClient", storeClientLocation),new Contribution("store", storeLocation));
        node2.start();    
    }
   
    @Test
    public void testTwoNodesJIRACode2() throws Exception {
        String storeLocation = "src/test/resources/sample-store.jar";
View Full Code Here

    public void testTwoNodesJIRACode2() throws Exception {
        String storeLocation = "src/test/resources/sample-store.jar";
        String storeClientLocation = "src/test/resources/sample-store-client.jar";

        Node node1 = NodeFactory.newInstance().createNode(new Contribution("store",storeLocation));
        node1.start();

        Node node2 = NodeFactory.newInstance().createNode("store-client.composite",new Contribution("storeClient", storeClientLocation));
        node2.start();    
    }
}
View Full Code Here

        Node node1 = NodeFactory.newInstance().createNode(new Contribution("store",storeLocation));
        node1.start();

        Node node2 = NodeFactory.newInstance().createNode("store-client.composite",new Contribution("storeClient", storeClientLocation));
        node2.start();    
    }
}
View Full Code Here

    public final static void main(String[] args) throws Exception {
      NodeFactory factory = NodeFactory.newInstance();
        Node node = factory.createNode(new File("src/main/resources/Outer.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
        node.start();
        System.out.println("Press Enter to exit...");
        System.in.read();
        node.stop();
    }
View Full Code Here

    public final static void main(String[] args) throws Exception {
      NodeFactory factory = NodeFactory.newInstance();
        Node node = factory.createNode(new File("src/main/resources/Client.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
        node.start();
        Composer composer = node.getService(Composer.class, "ClientComponent/Composer");
        System.out.println(composer.Compose("ABC"));
        node.stop();
    }
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.