Examples of analyzeProblems()


Examples of org.apache.tuscany.sca.monitor.Monitor.analyzeProblems()

            bs.put(new QName("default"), Arrays.asList(new String[]{domainRegistry.getDomainName()}));
        }

        Monitor monitor = deployer.createMonitor();
        builtComposite = deployer.build(contributions, contributions, bs, monitor);
        monitor.analyzeProblems();

        // TODO: Ideally deployer.build would set the name and uri to what this needs
        builtComposite.setName(composite.getName());
        builtComposite.setURI(composite.getURI());
        builtComposite.setContributionURI(composite.getContributionURI());
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Monitor.analyzeProblems()

    }

    public Object loadXMLDocument(Reader document) throws XMLStreamException, ContributionReadException, ValidationException {
        Monitor monitor = createMonitor();
        Object model = loadXMLDocument(document, monitor);
        monitor.analyzeProblems();
        return model;
    }
   
    public Object loadXMLDocument(Reader document, Monitor monitor) throws XMLStreamException, ContributionReadException {
        init();
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Monitor.analyzeProblems()

        }
        Monitor monitor = deployer.createMonitor();
        try {
            return deployer.getDependencies(contributionMetaDatas, contributionURI, monitor);
        } finally {
            monitor.analyzeProblems();
        }
    }
}
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Monitor.analyzeProblems()

        Node node = tuscanyRuntime.createNode("myDomain");
       
        Deployer deployer = tuscanyRuntime.getDeployer();
        Monitor monitor = deployer.createMonitor();
        Contribution contribution = deployer.loadContribution(URI.create("foo"), new File("src/test/resources/sample-helloworld-nodeployable.jar").toURI().toURL(), monitor);
        monitor.analyzeProblems();
       
        node.installContribution(contribution, null);
        List<String> ics = node.getInstalledContributionURIs();
        Assert.assertEquals(1, ics.size());
        Assert.assertEquals("foo", ics.get(0));
View Full Code Here

Examples of org.apache.tuscany.sca.monitor.Monitor.analyzeProblems()

        node.installContribution("foo", "src/test/resources/sample-helloworld-nodeployable.jar", null, null);

        Deployer deployer = tuscanyRuntime.getDeployer();
        Monitor monitor = deployer.createMonitor();
        Composite composite = deployer.loadXMLDocument(new File("src/test/resources/helloworld2.composite").toURI().toURL(), monitor);
        monitor.analyzeProblems();
        String cmpuri = node.addDeploymentComposite("foo", composite);
        node.startComposite("foo", cmpuri);
        Map<String, List<String>> dcs = node.getStartedCompositeURIs();
        Assert.assertEquals(1, dcs.size());
        Assert.assertEquals("helloworld2.composite", dcs.get("foo").get(0));
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.