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);
}
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);
}
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);
}
Aggregations