Package com.vmware.aurora.composition

Examples of com.vmware.aurora.composition.ResourceSchema


   private VmSchema createVmSchema() {
      VmSchema vmSchema = new VmSchema();
      vmSchema.diskSchema = new DiskSchema();
      vmSchema.networkSchema = new NetworkSchema();
      vmSchema.networkSchema.networks = new ArrayList<Network>();
      vmSchema.resourceSchema = new ResourceSchema();
      return vmSchema;
   }
View Full Code Here


      }

      node.getVmSchema().networkSchema = netSchema;

      // resource schema
      ResourceSchema resourceSchema = new ResourceSchema();
      resourceSchema.numCPUs = node.getCpu();
      // we don't reserve cpu resource
      resourceSchema.cpuReservationMHz = 0;
      resourceSchema.memSize = node.getMem();
      resourceSchema.memReservationSize = 0;
View Full Code Here

      NodeGroupCreate groupSpec = spec.getNodeGroup(nodeGroup);

      VmSchema schema = new VmSchema();

      // prepare resource schema
      ResourceSchema resourceSchema = new ResourceSchema();
      resourceSchema.name = "Resource Schema";
      resourceSchema.cpuReservationMHz = 0;
      resourceSchema.memReservationSize = 0;
      resourceSchema.numCPUs =
            (groupSpec.getCpuNum() == null) ? 0 : groupSpec.getCpuNum();
View Full Code Here

TOP

Related Classes of com.vmware.aurora.composition.ResourceSchema

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.