Search in sources :

Example 1 with VmNumaSupportModel

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);
}
Also used : VmNumaSupportModel(org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VmNumaSupportModel) VDS(org.ovirt.engine.core.common.businessentities.VDS) VM(org.ovirt.engine.core.common.businessentities.VM) VmNumaSupportModel(org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VmNumaSupportModel) NumaSupportModel(org.ovirt.engine.ui.uicommonweb.models.hosts.numa.NumaSupportModel)

Example 2 with VmNumaSupportModel

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());
}
Also used : VmNumaSupportModel(org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VmNumaSupportModel)

Aggregations

VmNumaSupportModel (org.ovirt.engine.ui.uicommonweb.models.hosts.numa.VmNumaSupportModel)2 VDS (org.ovirt.engine.core.common.businessentities.VDS)1 VM (org.ovirt.engine.core.common.businessentities.VM)1 NumaSupportModel (org.ovirt.engine.ui.uicommonweb.models.hosts.numa.NumaSupportModel)1