Examples of startDeployables()


Examples of org.apache.tuscany.sca.Node.startDeployables()

                    curi = node.installContribution(null, c, null, null);
                } catch (Exception e) {
                    throw new MojoExecutionException("Exception installing contribution", e);
                }
                try {
                    node.startDeployables(curi);
                } catch (Exception e) {
                    throw new MojoExecutionException("Exception starting deployables for contribution " + curi, e);
                }
            }
        }
View Full Code Here

Examples of org.apache.tuscany.sca.Node.startDeployables()

    @Test
    public void updateTest1() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException, XMLStreamException, FileNotFoundException {
        Node node = TuscanyRuntime.newInstance().createNode("updateTest1");
        String curi = node.installContribution("src/test/resources/sample-helloworld.jar");
        node.startDeployables(curi);
       
        Collection<Endpoint> eps = ((NodeImpl)node).getEndpointRegistry().getEndpoints();
        Assert.assertEquals(1, eps.size());
        Assert.assertEquals("HelloworldComponent#service-binding(Helloworld/Helloworld)", eps.iterator().next().getURI());
       
View Full Code Here

Examples of org.apache.tuscany.sca.Node.startDeployables()

    @Test
    public void testGetDeployedCompostes() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, MalformedURLException, ActivationException, ValidationException {
        Node node = TuscanyRuntime.newInstance().createNode("default");
        node.installContribution("foo", "src/test/resources/sample-helloworld.jar", null, null);
        List<String> dcs = node.startDeployables("foo");
        Assert.assertEquals(1, dcs.size());
        Assert.assertEquals("helloworld.composite", dcs.get(0));
    }

    @Test
View Full Code Here

Examples of org.apache.tuscany.sca.Node.startDeployables()

    @Test
    public void testRemoveComposte() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, MalformedURLException, ActivationException, ValidationException {
        Node node = TuscanyRuntime.newInstance().createNode("default");
        node.installContribution("foo", "src/test/resources/sample-helloworld.jar", null, null);
        List<String> dcs = node.startDeployables("foo");
        Assert.assertEquals(1, dcs.size());
        Map<String, List<String>> dcsx = node.getStartedCompositeURIs();
        Assert.assertEquals(1, dcsx.size());
        node.stopComposite("foo", "helloworld.composite");
        dcsx = node.getStartedCompositeURIs();
View Full Code Here

Examples of org.apache.tuscany.sca.impl.NodeImpl.startDeployables()

                }
            }
        }

        for (String curi : installed) {
            node.startDeployables(curi);
        }

        return 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.