}
}
public static ConfigSpec createEnableDisableHotAddConfigSpec(
boolean enableHotAddCpu, boolean enableHotAddMemory) {
ConfigSpec cfgSpec = new ConfigSpecImpl();
OptionValue hotAddMemory =
new OptionValueImpl(HOT_ADD_MEMORY_KEY, String.valueOf(
enableHotAddMemory).toUpperCase());
OptionValue hotAddCpu =
new OptionValueImpl(HOT_ADD_CPU_KEY, String
.valueOf(enableHotAddCpu).toUpperCase());
cfgSpec.setExtraConfig(new OptionValue[] { hotAddMemory, hotAddCpu });
return cfgSpec;
}