Package org.apache.cloudstack.engine.cloud.entity.api

Examples of org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl


    @Override
    public VirtualMachineEntity createVirtualMachineFromScratch(String id, String owner, String isoId, String hostName, String displayName, String hypervisor, String os, int cpu, int speed, long memory,Long diskSize,
            List<String> computeTags, List<String> rootDiskTags, Map<String, NicProfile> networkNicMap, DeploymentPlan planthrows InsufficientCapacityException {

      // VirtualMachineEntityImpl vmEntity = new VirtualMachineEntityImpl(id, owner, hostName, displayName, cpu, speed, memory, computeTags, rootDiskTags, networks, vmEntityManager);
        VirtualMachineEntityImpl vmEntity = new VirtualMachineEntityImpl();
        vmEntity = ComponentContext.inject(vmEntity);
      vmEntity.init(id, owner, hostName, displayName, cpu, speed, memory, computeTags, rootDiskTags, new ArrayList<String>(networkNicMap.keySet()));

      //load vm instance and offerings and call virtualMachineManagerImpl
      VMInstanceVO vm = _vmDao.findByUuid(id);

View Full Code Here


        return null;
    }

  @Override
  public VirtualMachineEntity getVirtualMachine(String id) {
    VirtualMachineEntityImpl vmEntity = new VirtualMachineEntityImpl(id, vmEntityManager);
    return vmEntity;
  }
View Full Code Here

TOP

Related Classes of org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl

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.