Package com.vmware.vim.binding.impl.vim.vm

Examples of com.vmware.vim.binding.impl.vim.vm.ConfigSpecImpl


            // copy vhm related extra configures
            logger.info("copy vhm related extra configs from parent vm "
                  + newName);
            OptionValue[] optionValues = getVhmExtraConfigs(oldVm);
            if (optionValues.length != 0) {
               ConfigSpec spec = new ConfigSpecImpl();
               spec.setExtraConfig(optionValues);
               vm.reconfigure(spec);
            }

            // copy the io share level from the original vm
            logger.info("set io share level same with parent vm " + newName);
View Full Code Here


            + ",memory:" + memory);
      return VcContext.inVcSessionDo(new VcSession<Void>() {
         @Override
         protected Void body() throws Exception {           
            //start config vm if max configuration check is passed
            ConfigSpecImpl newConfigSpec = new ConfigSpecImpl();
            if (cpuNumber > 0) {
               newConfigSpec.setNumCPUs(cpuNumber);
            }
            if (memory > 0) {
               VmConfigUtil.setMemoryAndBalloon(newConfigSpec, memory);

               if (targetDs != null) {
View Full Code Here

TOP

Related Classes of com.vmware.vim.binding.impl.vim.vm.ConfigSpecImpl

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.