Examples of volumes()


Examples of org.jclouds.compute.domain.HardwareBuilder.volumes()

      HardwareBuilder builder = new HardwareBuilder();
      builder.ids(from.id + "");
      builder.name(from.name);
      builder.processors(ImmutableList.of(new Processor(from.cores, 1.0)));
      builder.ram(from.ram);
      builder.volumes(ImmutableList.<Volume> of(new VolumeImpl(from.disk, true, false)));
      return builder.build();
   }

}
View Full Code Here

Examples of org.jclouds.compute.domain.HardwareBuilder.volumes()

              .hypervisor("XenServer")
              .processors(ImmutableList.of(new Processor(from.getStartCpus(), 2)))
              .ram(from.getMaxMemory());

      if (from.getVirtualGuestBlockDevices() != null) {
         builder.volumes(
                 FluentIterable.from(from.getVirtualGuestBlockDevices()).filter(new Predicate<VirtualGuestBlockDevice>() {
                    @Override
                    public boolean apply(VirtualGuestBlockDevice input) {
                       return input.getMountType().equals("Disk");
                    }
View Full Code Here

Examples of org.jclouds.docker.compute.options.DockerTemplateOptions.volumes()

        if (exports != null) {
            for (String dir : exports) {
                volumes.put(dir, dir);
            }
        }
        options.volumes(volumes);

        // Set login password from the Docker host
        options.overrideLoginPassword(getDockerHost().getPassword());

        // Look for environment variables configured on the entity
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.