use of org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VmNumaSupportModel in project ovirt-engine by oVirt.
the class VmModelBehaviorBase method numaSupport.
public void numaSupport() {
if (getModel().getWindow() != null) {
return;
}
VM vm = getVmWithNuma();
final VDS host = getModel().getDefaultHost().getSelectedItems().get(0);
NumaSupportModel model = new VmNumaSupportModel((List<VDS>) getModel().getDefaultHost().getItems(), host, getModel(), vm);
getModel().setWindow(model);
}
use of org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VmNumaSupportModel in project ovirt-engine by oVirt.
the class UnitVmModel method onNumaSupport.
private void onNumaSupport() {
if (getWindow() == null) {
return;
}
VmNumaSupportModel model = (VmNumaSupportModel) getWindow();
setVmNumaNodes(model.getNumaNodes(model.getVm().getId()));
model.getVm().setvNumaNodeList(getVmNumaNodes());
}
Aggregations