if (vm.getMinCores() > 0 && vm.getMinRam() > 0) template.setProductOfferUUID(findProduct(((double) vm.getMinRam()), vm.getMinCores())); service.waitForJob(job.getResourceUUID(), false); a.getProperties().add(new Property("ProviderSpecificInstanceType", findProductName(((double) vm.getMinRam()), vm.getMinCores()))); a.setProviderSpecificType(findProductName(((double) vm.getMinRam()), vm.getMinCores())); a.setId(findResourceByName(a.getName(), ResourceType.SERVER)); journal.log(Level.INFO, ">> vm type: "+ findProductName(((double) vm.getMinRam()), vm.getMinCores()) + " named " + template.getResourceName());
.memory(BigInteger.valueOf(vm.getMinRam()).multiply(BigInteger.valueOf(1024 * 1024))) .vncPassword("cloudml") .cpu(vm.getMinCores() * 2600) .nics(ImmutableList.of(nic)) .meta(m)
if (vm.getMinCores() > 0) templateBuilder.minCores(vm.getMinCores());
@Override public String toString() { return "VMInstance: " + getName() + " Type:" + getType().getName() + "{\n" + "minRam:" + (getType()).getMinRam() + "\n" + "minCore" + (getType()).getMinCores() + "\n" + "minDisk" + (getType()).getMinStorage() + "\n" + "OS" + (getType()).getOs() + "\n" + "location" + (getType()).getLocation() + "\n" + "publicAdress" + getPublicAddress() + "\n" + "groupName" + (getType()).getGroupName(); }
if (vm.getMinRam() > 0) templateBuilder.minRam(vm.getMinRam()); if (vm.getMinCores() > 0) templateBuilder.minCores(vm.getMinCores());
v.setLocation(existingVM.getLocation()); v.setMinRam(existingVM.getMinRam()); v.setMinCores(existingVM.getMinCores()); v.setMinStorage(existingVM.getMinStorage()); v.setSecurityGroup(existingVM.getSecurityGroup());
v.setLocation(existingVM.getLocation()); v.setMinRam(existingVM.getMinRam()); v.setMinCores(existingVM.getMinCores()); v.setMinStorage(existingVM.getMinStorage()); v.setSecurityGroup(existingVM.getSecurityGroup());
v.setLocation(existingVM.getLocation()); v.setMinRam(existingVM.getMinRam()); v.setMinCores(existingVM.getMinCores()); v.setMinStorage(existingVM.getMinStorage()); v.setSecurityGroup(existingVM.getSecurityGroup());
if(ec.getLocation() != null) kNode.setLocation(vm.getLocation()); kNode.setMinCores(vm.getMinCores()); kNode.setMinStorage(vm.getMinStorage()); kNode.setMinRam(vm.getMinRam());