Package org.jclouds.compute.domain

Examples of org.jclouds.compute.domain.VolumeBuilder.durable()


      VolumeBuilder builder = new VolumeBuilder();

      builder.size(1000f * Float.valueOf(disk.getSize()));
      // "Disk"'s are additional disks; they can't be booted disk(?)
      builder.bootDevice(false);
      builder.durable(true);
      builder.type(Volume.Type.SAN);
      builder.id("type: " + disk.getType() + " usage: " + disk.getUsage());

      return builder.build();
   }
View Full Code Here


      VolumeBuilder volumeBuilder = new VolumeBuilder();
      volumeBuilder.bootDevice(true);
      volumeBuilder.size(toGb(template.getHdRequired()));
      volumeBuilder.type(Volume.Type.LOCAL);
      volumeBuilder.durable(false);
      builder.volume(volumeBuilder.build());

      return builder.build();
   }
View Full Code Here

      VolumeBuilder volumeBuilder = new VolumeBuilder();
      volumeBuilder.bootDevice(true);
      volumeBuilder.size(toGb(template.getHdRequired()));
      volumeBuilder.type(Volume.Type.LOCAL);
      volumeBuilder.durable(false);
      builder.volume(volumeBuilder.build());

      return builder.build();
   }
View Full Code Here

      VolumeBuilder builder = new VolumeBuilder();

      builder.size(1000f * Float.valueOf(disk.getSize()));
      // "Disk"'s are additional disks; they can't be booted disk(?)
      builder.bootDevice(false);
      builder.durable(true);
      builder.type(Volume.Type.SAN);
      builder.id("type: " + disk.getType() + " usage: " + disk.getUsage());

      return builder.build();
   }
View Full Code Here

         } catch (NullPointerException e) {
            logger.debug("drive %s not found", input.getDriveUuid());
         } catch (UncheckedExecutionException e) {
            logger.warn(e, "error finding drive %s: %s", input.getDriveUuid(), e.getMessage());
         }
         return builder.durable(true).type(Volume.Type.NAS).build();
      }
   }

   /**
    * When we create the boot drive of the server, by convention we set the name
View Full Code Here

         } catch (NullPointerException e) {
            logger.debug("drive %s not found", input.getDriveUuid());
         } catch (UncheckedExecutionException e) {
            logger.warn(e, "error finding drive %s: %s", input.getDriveUuid(), e.getMessage());
         }
         return builder.durable(true).type(Volume.Type.NAS).build();
      }
   }

   /**
    * When we create the boot drive of the server, by convention we set the name
View Full Code Here

         } catch (NullPointerException e) {
            logger.debug("drive %s not found", input.getDriveUuid());
         } catch (UncheckedExecutionException e) {
            logger.warn(e, "error finding drive %s: %s", input.getDriveUuid(), e.getMessage());
         }
         return builder.durable(true).type(Volume.Type.NAS).build();
      }
   }

   /**
    * When we create the boot drive of the server, by convention we set the name
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.