Examples of AllocationType


Examples of com.vmware.aurora.vc.DiskSpec.AllocationType

      systemDisk.setSize(systemDisk.getSize() + (memCapa + 1023) / 1024);

      systemDisk.setDiskType(DiskType.SYSTEM_DISK);
      systemDisk.setSeparable(false);
      disks.add(systemDisk);
      AllocationType diskAllocType = null;
      if (nodeGroup.getStorage().getAllocType() != null) {
         diskAllocType =
               AllocationType.valueOf(nodeGroup.getStorage().getAllocType());
      } else {
         // THICK as by default
         diskAllocType = AllocationType.THICK;
      }
      // swap disk
      int swapDisk =
            (((int) Math.ceil(nodeGroup.getMemCapacityMB()
                  * nodeGroup.getSwapRatio()) + 1023) / 1024);
      disks.add(new DiskSpec(DiskType.SWAP_DISK.getDiskName(), swapDisk, node
            .getVmName(), false, DiskType.SWAP_DISK,
            DiskScsiControllerType.LSI_CONTROLLER, null, diskAllocType
                  .toString(), null, null, null));

      // data disks
      if (!DatastoreType.TEMPFS.name().equalsIgnoreCase(
            nodeGroup.getStorage().getType())) {
         // no need to add data disk for storage type tempfs
         disks.add(new DiskSpec(DiskType.DATA_DISK.getDiskName(), nodeGroup
               .getStorage().getSizeGB(), node.getVmName(), true,
               DiskType.DATA_DISK, nodeGroup.getStorage().getControllerType(),
               nodeGroup.getStorage().getSplitPolicy(), diskAllocType
                     .toString(), null, null, null));
      }
      node.setDisks(disks);

      // target vm folder
View Full Code Here

Examples of com.vmware.aurora.vc.DiskSpec.AllocationType

                        + swapDisk.getDatastoreName());
                  logger.info("target ds to place swap disk: "
                        + targetDs.getName());
                  vcVm.detachVirtualDisk(
                        new DeviceId(swapDisk.getExternalAddress()), true);
                  AllocationType allocType =
                        swapDisk.getAllocType() == null ? null : AllocationType
                              .valueOf(swapDisk.getAllocType());
                  DiskCreateSpec[] addDisks =
                        { new DiskCreateSpec(new DeviceId(swapDisk
                              .getExternalAddress()), targetDs, swapDisk
View Full Code Here

Examples of org.libreplan.web.common.components.NewAllocationSelector.AllocationType

    public String getAllocationTypeStr() {
        return getAllocationType().toString();
    }

    public String getAllocation() {
        final AllocationType type = getAllocationType();
        if (AllocationType.GENERIC_WORKERS.equals(type)
                || AllocationType.GENERIC_MACHINES.equals(type)) {
            return Criterion
                    .getCaptionFor((GenericResourceAllocation) resourceAllocation);
        }
View Full Code Here

Examples of sg.edu.nus.comp.simTL.engine.synchronizer.AddAllocation.AllocationType

      EObject tObject, IContext context,
      EObject cap, EObject tiChild, Vector<AddAllocation> allocations)
      throws SimTLException{
    Reference2Element tReference2Element =  template.getParentFrom(tObject, context);
    EObject tParent = tReference2Element.getParent();
    AllocationType allocationType = findAllocationType(tParent);
   
    EReference tP2cRef = tReference2Element.getReferenceToChildren();
    if(tParent==cap){
      return tObject; //directly under cap is handled elsewhere
    }
View Full Code Here

Examples of sg.edu.nus.comp.simTL.engine.synchronizer.AddAllocation.AllocationType

      EObject tLeftRep, EObject tRightRep,
      EObject tiChild, IContext context, Vector<AddAllocation> allocations) throws SimTLException{
    //Look in between tLeftRep and tRightRep under commonAncistor
    boolean foundTLeftRep= tLeftRep==null; //Start looking immediately
    boolean foundTRightRep = tRightRep == null; //also add position behind last
    AllocationType allocationType = findAllocationType(commonAncistor);
    //Find reference to leftRep and rightRep
   
    //Add first position already
    if(foundTLeftRep){
      allocations.add(new PositionAddAllocation(
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.