Examples of tags()


Examples of org.jclouds.compute.domain.NodeMetadataBuilder.tags()

      builder.name(from.getName());
      builder.loginPort(from.getLoginPort());
      builder.hostname(from.getHostname());
      builder.location(findLocationWithId(from.getLocationId()));
      builder.group(from.getGroup());
      builder.tags(from.getTags());
      builder.userMetadata(from.getMetadata());
      builder.operatingSystem(OperatingSystem.builder().arch(from.getOsArch()).family(
               OsFamily.fromValue(from.getOsFamily())).description(from.getOsDescription())
               .version(from.getOsVersion()).build());
      builder.status(Status.RUNNING);
View Full Code Here

Examples of org.jclouds.compute.domain.NodeMetadataBuilder.tags()

      NodeMetadataBuilder builder = new NodeMetadataBuilder();
      builder.ids(from.getUuid());
      builder.name(from.getName());
      builder.location(locationSupplier.get());
      builder.group(nodeNamingConvention.groupInUniqueNameOrNull(from.getName()));
      builder.tags(from.getTags());
      builder.userMetadata(from.getUserMetadata());
      String imageId = getImageIdFromServer.apply(from);
      if (imageId != null) {
         Optional<? extends Image> image = FluentIterable.from(images.get()).firstMatch(idEquals(imageId));
         if (image.isPresent()) {
View Full Code Here

Examples of org.jclouds.compute.domain.NodeMetadataBuilder.tags()

      String id = idProvider.get() + "";
      builder.ids(id);
      builder.name(name);
      // using a predictable name so tests will pass
      builder.hostname(group);
      builder.tags(template.getOptions().getTags());
      builder.userMetadata(template.getOptions().getUserMetadata());
      builder.group(group);
      builder.location(location.get());
      builder.imageId(template.getImage().getId());
      builder.operatingSystem(template.getImage().getOperatingSystem());
View Full Code Here

Examples of org.jclouds.googlecomputeengine.compute.options.GoogleComputeEngineTemplateOptions.tags()


      ComputeService computeService = orderedRequestsSendResponses(orderedRequests, orderedResponses);

      GoogleComputeEngineTemplateOptions options = computeService.templateOptions().as(GoogleComputeEngineTemplateOptions.class);
      options.tags(ImmutableSet.of("aTag"));
      NodeMetadata node = getOnlyElement(computeService.createNodesInGroup("test", 1, options));
      assertEquals(node.getImageId(), "gcel-12-04-v20121106");
   }
}
View Full Code Here

Examples of org.jclouds.googlecomputeengine.domain.InstanceTemplate.tags()

      LoginCredentials credentials = getFromImageAndOverrideIfRequired(template.getImage(), options);

      ImmutableMap.Builder<String, String> metadataBuilder = metatadaFromTemplateOptions.apply(options);
      instanceTemplate.metadata(metadataBuilder.build());
      instanceTemplate.tags(options.getTags());
      instanceTemplate.serviceAccounts(options.getServiceAccounts());
      instanceTemplate.image(checkNotNull(template.getImage().getUri(), "image URI is null"));

      Operation operation = api.getInstanceApiForProject(userProject.get())
              .createInZone(name, instanceTemplate, template.getLocation().getId());
View Full Code Here

Examples of org.jclouds.softlayer.compute.options.SoftLayerTemplateOptions.tags()

      //options.diskType("SAN");
      //options.portSpeed(10);
      // multi-disk option
      options.blockDevices(ImmutableSet.of(100));
      //tags
      options.tags(ImmutableList.of("jclouds"));

      Set<? extends NodeMetadata> nodes = context.getComputeService().createNodesInGroup(name, numNodes, template);
      assertEquals(numNodes, nodes.size(), "wrong number of nodes");
      for (NodeMetadata node : nodes) {
         logger.debug("Created Node: %s", node);
View Full Code Here

Examples of org.jnetpcap.protocol.application.Html.tags()

    Html html = packet.getHeader(new Html());
    assertNotNull("Can't find HTML header", html);
    System.out.printf("link related tags=%s\n", Arrays.asList(html.links())
        .toString());

    System.out.printf("All tags=%s\n", Arrays.asList(html.tags()).toString());

  }
}
View Full Code Here

Examples of org.mcavallo.opencloud.Cloud.tags()

      }

      out.println("<div class=\"tagcloud\">");
      int counter = 0;

      List<Tag> tagList = cloud.tags(new Tag.NameComparatorAsc());
      if (parameters.getOrdering().equals("Tag.NameComparatorAsc"))
        tagList = cloud.tags(new Tag.NameComparatorAsc());
      else if (parameters.getOrdering().equals("Tag.NameComparatorDesc"))
        tagList = cloud.tags(new Tag.NameComparatorDesc());
      else if (parameters.getOrdering().equals("Tag.ScoreComparatorAsc"))
View Full Code Here

Examples of org.qi4j.api.service.qualifier.ServiceTags.tags()

        {
            ServiceTags previousTags = serviceAssembly.metaInfo.get( ServiceTags.class );
            if (previousTags != null)
            {
                List<String> tagList = new ArrayList<String>();
                for( String tag : previousTags.tags() )
                {
                    tagList.add( tag );
                }
                for( String tag : tags )
                {
View Full Code Here

Examples of org.qi4j.api.service.qualifier.ServiceTags.tags()

        {
            ServiceTags previousTags = serviceAssembly.metaInfo.get( ServiceTags.class );
            if (previousTags != null)
            {
                List<String> tagList = new ArrayList<String>();
                for( String tag : previousTags.tags() )
                {
                    tagList.add( tag );
                }
                for( String tag : tags )
                {
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.