Package org.apache.tuscany.sca.node

Examples of org.apache.tuscany.sca.node.NodeManagerService


               
               
                // get a node manager service reference. This will have to have its
                // physical endpoint set by the domain node manage we have just
                // configured
                NodeManagerService nodeManagerService = getService(NodeManagerService.class,
                                                        "NodeManagerComponent/NodeManagerService",
                                                        domainManagementRuntime,
                                                        domainManagementComposite);               
               
                // add contributions
                for (org.apache.tuscany.sca.domain.model.Contribution contribution : node.getContributions().values()){
                    nodeManagerService.addContribution(contribution.getContributionURI(),
                                                       contribution.getContributionURL().toString());
                }

                // deploy composite
                nodeManagerService.deployComposite(compositeName.toString());
               
                // start node
                nodeManagerService.start();
               
                // TODO
                // somewhere we need to add the deployed composites into the node model
               
                // reset the endpoint setting function
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.node.NodeManagerService

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.