use of org.ovirt.engine.core.common.action.gluster.ResetGlusterVolumeOptionsParameters in project ovirt-engine by oVirt.
the class VolumeParameterListModel method onResetAllParameters.
private void onResetAllParameters() {
ConfirmationModel model = (ConfirmationModel) getWindow();
if (model.getProgress() != null) {
return;
}
if (getEntity() == null) {
return;
}
GlusterVolumeEntity volume = getEntity();
ResetGlusterVolumeOptionsParameters parameters = new ResetGlusterVolumeOptionsParameters(volume.getId(), null, false);
model.startProgress();
Frontend.getInstance().runAction(ActionType.ResetGlusterVolumeOptions, parameters, result -> {
ConfirmationModel localModel = (ConfirmationModel) result.getState();
localModel.stopProgress();
cancel();
}, model);
}
use of org.ovirt.engine.core.common.action.gluster.ResetGlusterVolumeOptionsParameters in project ovirt-engine by oVirt.
the class VolumeParameterListModel method onResetParameter.
private void onResetParameter() {
ConfirmationModel model = (ConfirmationModel) getWindow();
if (model.getProgress() != null) {
return;
}
if (getSelectedItem() == null) {
return;
}
GlusterVolumeOptionEntity selectedOption = getSelectedItem();
ResetGlusterVolumeOptionsParameters parameters = new ResetGlusterVolumeOptionsParameters(selectedOption.getVolumeId(), selectedOption, false);
model.startProgress();
Frontend.getInstance().runAction(ActionType.ResetGlusterVolumeOptions, parameters, result -> {
ConfirmationModel localModel = (ConfirmationModel) result.getState();
localModel.stopProgress();
cancel();
}, model);
}
Aggregations