Examples of addNode()


Examples of com.dtolabs.rundeck.core.common.NodesYamlGenerator.addNode()

        NodesYamlGenerator nodesYamlGenerator = new NodesYamlGenerator(baos);
        final NodeEntryImpl nodeEntry = new NodeEntryImpl();
        nodeEntry.setNodename("test1");
        nodeEntry.setHostname("testhostname");
        nodesYamlGenerator.addNode(nodeEntry);
        nodesYamlGenerator.generate();
        final byte[] bytes = baos.toByteArray();
        assertNotNull(bytes);
        assertTrue(bytes.length > 0);
    }
View Full Code Here

Examples of com.facebook.presto.metadata.InMemoryNodeManager.addNode()

            metadata.addInternalSchemaMetadata(new DualMetadata());

            StageExecutionPlan joinPlan = createJoinPlan("A", metadata);

            InMemoryNodeManager nodeManager = new InMemoryNodeManager();
            nodeManager.addNode("foo", new Node("other", URI.create("http://127.0.0.1:11"), NodeVersion.UNKNOWN));

            stageExecution = new SqlStageExecution(new QueryId("query"),
                    new MockLocationFactory(),
                    joinPlan,
                    new NodeScheduler(nodeManager, new NodeSchedulerConfig()), new MockRemoteTaskFactory(executor),
View Full Code Here

Examples of com.google.devtools.depan.model.GraphModel.addNode()

        String childName = reader.getNodeName();
        Class<?> childClass = mapper.realClass(childName);

        if (GraphNode.class.isAssignableFrom(childClass)) {
          GraphNode node = (GraphNode) context.convertAnother(null, childClass);
          result.addNode(node);
        }
        else if (GraphEdge.class.isAssignableFrom(childClass)) {
          GraphEdge edge =
              (GraphEdge) context.convertAnother(null, childClass);
          result.addEdge(edge);
View Full Code Here

Examples of com.google.gwt.dev.jjs.InternalCompilerException.addNode()

    if (e instanceof InternalCompilerException) {
      ice = (InternalCompilerException) e;
    } else {
      ice = new InternalCompilerException("Unexpected error during visit.", e);
    }
    ice.addNode((HasSourceInfo) node);
    return ice;
  }
}
View Full Code Here

Examples of com.google.gwt.dev.jjs.impl.gflow.cfg.Cfg.addNode()

  @Override
  public Cfg getNewSubgraph() {
    Cfg newSubgraph = new Cfg();
    CfgNode<?> newNode = new CfgNopNode(node.getParent(), node.getJNode());
    newSubgraph.addNode(newNode);

    // Add all incoming edges.
    for (int i = 0; i < graph.getInEdges(node).size(); ++i) {
      CfgEdge edge = new CfgEdge();
      newSubgraph.addIn(newNode, edge);
View Full Code Here

Examples of com.google.gwt.query.client.js.JsNodeArray.addNode()

    if (snapWidgets == null) {
      return;
    }
    JsNodeArray snapElements = JsNodeArray.create();
    for (Widget w : snapWidgets) {
      snapElements.addNode(w.getElement());
    }
    options.setSnap($(snapElements));
  }

  /**
 
View Full Code Here

Examples of com.google.havlak.shared.lsg.SimpleLoop.addNode()

          // Nested loops are not added, but linked together.
          if (node.getLoop() != null) {
            node.getLoop().setParent(loop);
          } else {
            loop.addNode(node.getBb());
          }
        }

        lsg.addLoop(loop);
      // nodePool.size
View Full Code Here

Examples of com.opengamma.engine.calcnode.LocalNodeJobInvoker.addNode()

  public void testAddNodeWithCallbackPending() {
    final LocalNodeJobInvoker invoker = new LocalNodeJobInvoker();
    _invoker = null;
    assertFalse(invoker.notifyWhenAvailable(_register));
    assertNull(_invoker);
    invoker.addNode(new TestCalculationNode());
    assertEquals(invoker, _invoker);
  }

  public void testAddCallbackWithNodePending() {
    final LocalNodeJobInvoker invoker = new LocalNodeJobInvoker();
View Full Code Here

Examples of com.opengamma.engine.calcnode.RemoteNodeClient.addNode()

        throw new OpenGammaRuntimeException ("Remote node not working");
      }
     
    };
    assertEquals(0, messages.getMessages().size());
    client.addNode(failingNode);
    assertEquals(0, messages.getMessages().size());
    client.start();
    assertEquals(1, messages.getMessages().size());
    final FudgeMsgEnvelope readyMsgEnvelope = messages.getMessages().get(0);
    messages.clear();
View Full Code Here

Examples of com.pcbje.maltegoimporter.model.GraphModel.addNode()

    }

    GraphModel graph = new MaltegoGraphModel();

    for (NodeModel node : nodes) {
      graph.addNode(node);
    }

    for (EdgeModel edge : edges) {
      graph.addEdge(edge);
    }
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.