Examples of Node


Examples of org.jbpm.pvm.Node

  /** @see Execution#execute(String) */
  public void execute(String nodeName) {
    if (node==null) {
      throw new PvmException("node is null");
    }
    Node nestedNode = node.getNode(nodeName);
    if (nestedNode==null) {
      throw new PvmException("node "+nodeName+" doesn't exist in "+node);
    }
    execute(nestedNode);
  }

Examples of org.jbpm.ui.common.model.Node

      List<Node> result = new ArrayList<Node>();
        for (Object object : sourceSelection.toList()) {
            if (!(object instanceof NodeGraphicalEditPart)) {
                continue;
            }
            Node node = ((NodeGraphicalEditPart) object).getModel();
            result.add(node);
        }
      return result;
    }

Examples of org.jbpm.workflow.core.Node

                        final String localName,
                        final Attributes attrs,
                        final ExtensibleXmlParser parser) throws SAXException {
        parser.startElementBuilder( localName,
                                    attrs );
        Node node = (Node) parser.getParent();
        final String name = attrs.getValue("name");
        emptyAttributeCheck(localName, "name", name, parser);
        return new MetaDataWrapper(node, name);
    }   

Examples of org.jclouds.byon.Node

   @Override
   public Node load(final String id) throws Exception {

      if (id.equals("host")) {
         final Node hostNode = Node.builder().id("host").name("host installing virtualbox").hostname("localhost")
               .osFamily(OsFamily.LINUX.toString()).osDescription(System.getProperty("os.name"))
               .osVersion(System.getProperty("os.version")).group("ssh").username(System.getProperty("user.name"))
               .credentialUrl(privateKeyFile()).build();
         return hostNode;
      }

      final IMachine machine = manager.getVBox().findMachine(id);
      final String ipAddress = iMachineToIpAddress.apply(machine);
      final String osTypeId = machine.getOSTypeId();
      final IGuestOSType guestOSType = manager.getVBox().getGuestOSType(osTypeId);

      final Node node = Node.builder().id(machine.getId()).name(machine.getName())
            .description(machine.getDescription()).loginPort(22).group(System.getProperty(VIRTUALBOX_MACHINE_GROUP))
            .username(System.getProperty(VIRTUALBOX_MACHINE_USERNAME))
            .credential(System.getProperty(VIRTUALBOX_MACHINE_CREDENTIAL))
            .sudoPassword(System.getProperty(VIRTUALBOX_MACHINE_CREDENTIAL))
            .locationId(System.getProperty(VIRTUALBOX_MACHINE_LOCATION)).os64Bit(guestOSType.getIs64Bit())

Examples of org.jclouds.chef.domain.Node

      handler = injector.getInstance(Key.get(new TypeLiteral<ParseJson<Node>>() {
      }));
   }

   public void test() {
      Node node = Node.builder() //
            .name("adrian-jcloudstest") //
            .normalAttribute("tomcat6", new JsonBall("{\"ssl_port\":8433}")) //
            .runListElement("recipe[java]") //
            .environment("prod") //
            .build();

Examples of org.jclouds.jenkins.v1.domain.Node

*/
@Test(groups = "live", testName = "JenkinsApiLiveTest")
public class JenkinsApiLiveTest extends BaseJenkinsApiLiveTest {

   public void testGetMaster(){
      Node master = context.getApi().getMaster();
      assertNotNull(master);
      assertNotNull(master.getName());
      assertNotNull(master.getJobs());
   }

Examples of org.jclouds.rackspace.cloudloadbalancers.v1.domain.Node

  
   @Test(dependsOnMethods = "testListNodes")
   public void testNodeMetadata() throws Exception {
      for (Entry<LoadBalancer, Set<Node>> entry : nodes.entrySet()) {
         LoadBalancer lb = entry.getKey();
         Node node = entry.getValue().iterator().next();
         Map<String, String> metadataMap = ImmutableMap.<String, String> of(
               "key1", "value1",
               "key2", "value2",
               "key3", "value3");
        
         Metadata metadata = api.getNodeApiForZoneAndLoadBalancer(lb.getRegion(), lb.getId()).createMetadata(node.getId(), metadataMap);
         assertEquals(metadata, getExpectedMetadata());
         assertTrue(awaitAvailable(api.getLoadBalancerApiForZone(lb.getRegion())).apply(lb));

         metadata = api.getNodeApiForZoneAndLoadBalancer(lb.getRegion(), lb.getId()).getMetadata(node.getId());
         assertEquals(metadata, getExpectedMetadata());

         assertTrue(api.getNodeApiForZoneAndLoadBalancer(lb.getRegion(), lb.getId()).updateMetadatum(node.getId(), metadata.getId("key1"), "key1-updated"));
         assertTrue(awaitAvailable(api.getLoadBalancerApiForZone(lb.getRegion())).apply(lb));
         metadata = api.getNodeApiForZoneAndLoadBalancer(lb.getRegion(), lb.getId()).getMetadata(node.getId());
         assertEquals(metadata.get("key1"), "key1-updated");

         assertTrue(api.getNodeApiForZoneAndLoadBalancer(lb.getRegion(), lb.getId()).deleteMetadatum(node.getId(), metadata.getId("key1")));
         assertTrue(awaitAvailable(api.getLoadBalancerApiForZone(lb.getRegion())).apply(lb));
         metadata = api.getNodeApiForZoneAndLoadBalancer(lb.getRegion(), lb.getId()).getMetadata(node.getId());
         assertNull(metadata.get("key1"));

         assertTrue(api.getNodeApiForZoneAndLoadBalancer(lb.getRegion(), lb.getId()).deleteMetadata(node.getId(),
               ImmutableList.<Integer> of(metadata.getId("key2"), metadata.getId("key3"))));
         assertTrue(awaitAvailable(api.getLoadBalancerApiForZone(lb.getRegion())).apply(lb));
         metadata = api.getNodeApiForZoneAndLoadBalancer(lb.getRegion(), lb.getId()).getMetadata(node.getId());
         assertEquals(metadata.size(), 0);
      }
   }

Examples of org.jclouds.trmk.vcloud_0_8.domain.Node

public class NodeHandlerTest extends BaseHandlerTest {

   public void test1() throws UnknownHostException {
      InputStream is = getClass().getResourceAsStream("/NodeService.xml");

      Node result = factory.create(injector.getInstance(NodeHandler.class)).parse(is);
      assertEquals(result, new Node("Node for Jim", URI
            .create("https://services.vcloudexpress.terremark.com/api/v0.8/NodeServices/242"), "172.16.20.3", 80,
            false, "Some test node"));
   }

Examples of org.jdesktop.swingx.MultiSplitLayout.Node

        }       
    }


    private JComponent getComponentByConstraint(String string) {
        Node node = multiSplitLayout.getNodeForName(string);
        return (JComponent) multiSplitLayout.getComponentForNode(node);
    }

Examples of org.jfree.report.structure.Node

    private void collectGroupExpressions(final Node[] nodes, final List expressions, final FormulaParser parser, final Expression reportFunctions[])
    {
        for (int i = 0; i < nodes.length; i++)
        {
            final Node node = nodes[i];
            if (node instanceof OfficeGroup)
            {
                final OfficeGroup group = (OfficeGroup) node;
                final FormulaExpression exp = (FormulaExpression) group.getGroupingExpression();
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.