Package com.vmware.aurora.composition.DiskSchema

Examples of com.vmware.aurora.composition.DiskSchema.Disk


             * system disk is special as it will be inherited from template node, so we
             * don't need to declare it in VmSchema
             */
            setTargetDs(disk.getTargetDs());
         } else {
            Disk tmDisk = new Disk();
            tmDisk.name = disk.getName();
            tmDisk.initialSizeMB = disk.getSize() * 1024;
            tmDisk.datastore = disk.getTargetDs();
            tmDisk.mode = DiskMode.independent_persistent;
            if (DiskScsiControllerType.LSI_CONTROLLER.equals(disk
View Full Code Here


      return diskSet;
   }

   @Test
   public void testGetVolumesByDiskSchema() {
      DiskSchema.Disk sysDisk = new Disk();
      sysDisk.type = "OS";
      sysDisk.externalAddress = "LSI0:0";
      DiskSchema.Disk swapDisk = new Disk();
      swapDisk.type = "SWAP";
      swapDisk.externalAddress = "LSI0:1";
      DiskSchema.Disk dataDisk0 = new Disk();
      dataDisk0.type = "DATA";
      dataDisk0.externalAddress = "PARA0:0";
      DiskSchema.Disk dataDisk1 = new Disk();
      dataDisk1.type = "DATA";
      dataDisk1.externalAddress = "PARA1:0";
      List<Disk> disks = new ArrayList<Disk>();
      disks.add(sysDisk);
      disks.add(swapDisk);
View Full Code Here

      // prepare disk schema
      DiskSchema diskSchema = new DiskSchema();
      ArrayList<Disk> disks = new ArrayList<Disk>(diskSet.size());
      for (DiskSpec disk : diskSet) {
         Disk tmDisk = new Disk();
         tmDisk.name = disk.getName();
         tmDisk.type = disk.getDiskType().getType();
         tmDisk.initialSizeMB = disk.getSize() * 1024;
         if (disk.getAllocType() != null && !disk.getAllocType().isEmpty())
            tmDisk.allocationType =
View Full Code Here

TOP

Related Classes of com.vmware.aurora.composition.DiskSchema.Disk

Copyright © 2018 www.massapicom. 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.