Search in sources :

Example 1 with NumaSupportModel

use of org.ovirt.engine.ui.uicommonweb.models.hosts.numa.NumaSupportModel in project ovirt-engine by oVirt.

the class HostListModel method numaSupport.

private void numaSupport() {
    if (getWindow() != null) {
        return;
    }
    VDS host = getSelectedItem();
    List<VDS> hosts = getSelectedItems();
    NumaSupportModel model = new NumaSupportModel(hosts, host, this);
    setWindow(model);
}
Also used : VDS(org.ovirt.engine.core.common.businessentities.VDS) NumaSupportModel(org.ovirt.engine.ui.uicommonweb.models.hosts.numa.NumaSupportModel)

Example 2 with NumaSupportModel

use of org.ovirt.engine.ui.uicommonweb.models.hosts.numa.NumaSupportModel in project ovirt-engine by oVirt.

the class HostListModel method onNumaSupport.

private void onNumaSupport() {
    if (getWindow() == null) {
        return;
    }
    NumaSupportModel model = (NumaSupportModel) getWindow();
    ArrayList<ActionParametersBase> updateParamsList = model.getUpdateParameters();
    if (!updateParamsList.isEmpty()) {
        Frontend.getInstance().runMultipleAction(ActionType.UpdateVmNumaNodes, updateParamsList);
    }
    setWindow(null);
}
Also used : NumaSupportModel(org.ovirt.engine.ui.uicommonweb.models.hosts.numa.NumaSupportModel) ActionParametersBase(org.ovirt.engine.core.common.action.ActionParametersBase)

Example 3 with NumaSupportModel

use of org.ovirt.engine.ui.uicommonweb.models.hosts.numa.NumaSupportModel 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)

Aggregations

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