protected void prepare(VM underConstruction) { super.prepare(underConstruction); underConstruction.setMinRam(minRam); underConstruction.setMinCores(minCores); underConstruction.setMinStorage(minStorage); underConstruction.setLocation(location); underConstruction.setOs(os); underConstruction.setGroupName(groupName); underConstruction.setSshKey(sshKey); underConstruction.setSecurityGroup(securityGroup); underConstruction.setIs64os(os64bit); underConstruction.setImageId(imageId); } }
public void vmToPOJO(net.cloudml.core.VM kvm) { net.cloudml.core.VM kVM = kvm; VM vm = new VM(kVM.getName(), new Provider("Dummy provider")); convertProperties(kVM, vm); convertResources(kVM, vm); convertPuppetResources(kVM, vm); Provider p = providers.get(kVM.getProvider().getName()); //TODO: extract this to function vm.setProvider(p); vm.setGroupName(kVM.getGroupName()); vm.setImageId(kVM.getImageId()); vm.setIs64os(kVM.getIs64os()); vm.setLocation(kVM.getLocation()); vm.setMinCores(kVM.getMinCores()); vm.setMinStorage(kVM.getMinStorage()); vm.setMinRam(kVM.getMinRam()); vm.setOs(kVM.getOs()); vm.setPrivateKey(kVM.getPrivateKey()); vm.setSecurityGroup(kVM.getSecurityGroup()); vm.setSshKey(kVM.getSshKey()); vm.setRegion(kVM.getRegion()); vm.setLogin(kVM.getLogin()); vm.setPasswd(kVM.getPasswd()); vm.setProviderSpecificTypeName(kVM.getProviderSpecificTypeName()); initProvidedExecutionPlatforms(kVM, vm); vms.put(vm.getName(), vm); model.getComponents().add(vm); }
v.setMinCores(existingVM.getMinCores()); v.setMinStorage(existingVM.getMinStorage()); v.setSecurityGroup(existingVM.getSecurityGroup()); v.setSshKey(existingVM.getSshKey()); v.setPrivateKey(existingVM.getPrivateKey());
v.setMinCores(existingVM.getMinCores()); v.setMinStorage(existingVM.getMinStorage()); v.setSecurityGroup(existingVM.getSecurityGroup()); v.setSshKey(existingVM.getSshKey()); v.setProviderSpecificTypeName(existingVM.getProviderSpecificTypeName());
v.setMinCores(existingVM.getMinCores()); v.setMinStorage(existingVM.getMinStorage()); v.setSecurityGroup(existingVM.getSecurityGroup()); v.setSshKey(existingVM.getSshKey()); v.setPrivateKey(existingVM.getPrivateKey());