Package org.jclouds.compute.domain

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


              .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

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.