Examples of createNode()


Examples of org.apache.tuscany.sca.node.NodeFactory.createNode()

     */
    @BeforeClass
    public static void setUp() throws Exception {
        try {
      NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/generics-service.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
            node.start();
        } catch(Throwable e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.apache.tuscany.sca.node.NodeFactory.createNode()

     */
    @BeforeClass
    public static void setUp() throws Exception {
        try {
            NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/doclitbarewsdl.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
            node.start();
        } catch (Throwable e) {
            // @Ignore("TUSCANY-2398")
            e.printStackTrace();
View Full Code Here

Examples of org.apache.tuscany.sca.node.NodeFactory.createNode()

     */
    @BeforeClass
    public static void setUp() throws Exception {
        try {
            NodeFactory factory = NodeFactory.newInstance();
            node = factory.createNode(new File("src/main/resources/helloservice.composite").toURI().toURL().toString(),
                new Contribution("TestContribution", new File("src/main/resources/").toURI().toURL().toString()));
            node.start();
        } catch(Throwable e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher.createNode()

            i++;
        }
        Node node = null;
           
        try {
            node = launcher.createNode(null, equinoxContributions);
        } catch (LauncherException ex) {
            throw new SampleLauncherException(ex.getMessage());
        }
        node.start();
        return node;
View Full Code Here

Examples of org.apache.tuscany.sca.node.launcher.NodeLauncher.createNode()

       
        SCANode2 node = null;
        try {
           
            NodeLauncher nodeLauncher = NodeLauncher.newInstance();
            node = nodeLauncher.createNode("http://localhost:9990/node-image/NodeA");

            node.start();
           
            // get a reference to the calculator component
            SCAClient client = (SCAClient)node;
View Full Code Here

Examples of org.apache.zookeeper.server.DataTree.createNode()

    public void testTxnFailure() throws Exception {
        long count = 1;
        File tmpDir = ClientBase.createTmpDir();
        FileTxnSnapLog logFile = new FileTxnSnapLog(tmpDir, tmpDir);
        DataTree dt = new DataTree();
        dt.createNode("/test", new byte[0], null, 0, 1, 1);
        for (count = 1; count <= 3; count++) {
            dt.createNode("/test/" + count, new byte[0], null, 0, count,
                    System.currentTimeMillis());
        }
        DataNode zk = dt.getNode("/test");
View Full Code Here

Examples of org.gephi.datalab.api.GraphElementsController.createNode()

            while (reader.readRecord()) {
                //Prepare the correct node to assign the attributes:
                if (idColumn != null) {
                    id = reader.get(idColumn);
                    if (id == null || id.isEmpty()) {
                        node = gec.createNode(null);//id null or empty, assign one
                    } else {
                        graph.readLock();
                        node = graph.getNode(id);
                        graph.readUnlock();
                        if (node != null) {//Node with that id already in graph
View Full Code Here

Examples of org.gephi.datalab.api.GraphElementsController.createNode()

                        graph.readLock();
                        node = graph.getNode(id);
                        graph.readUnlock();
                        if (node != null) {//Node with that id already in graph
                            if (assignNewNodeIds) {
                                node = gec.createNode(null);
                            }
                        } else {
                            node = gec.createNode(null, id);//New id in the graph
                        }
                    }
View Full Code Here

Examples of org.gephi.datalab.api.GraphElementsController.createNode()

                        if (node != null) {//Node with that id already in graph
                            if (assignNewNodeIds) {
                                node = gec.createNode(null);
                            }
                        } else {
                            node = gec.createNode(null, id);//New id in the graph
                        }
                    }
                } else {
                    node = gec.createNode(null);
                }
View Full Code Here

Examples of org.gephi.datalab.api.GraphElementsController.createNode()

                        } else {
                            node = gec.createNode(null, id);//New id in the graph
                        }
                    }
                } else {
                    node = gec.createNode(null);
                }
                //Assign attributes to the current node:
                nodeAttributes = node.getNodeData().getAttributes();
                for (AttributeColumn column : columnsList) {
                    setAttributeValue(reader.get(column.getTitle()), nodeAttributes, column);
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.