Gilad Chaplik has posted comments on this change.
Change subject: core: RunVmCommand.canDoAction cleanup (1)
......................................................................
Patch Set 2: (5 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
Line 73: @LockIdNameAttribute
Line 74: @NonTransactiveCommandAttribute
Line 75: public class RunVmCommand<T extends RunVmParams> extends
RunVmCommandBase<T>
Line 76: implements QuotaVdsDependent {
Line 77:
Done
Line 78: private final RunVmValidator runVmValidator = new RunVmValidator();
Line 79: private static final long serialVersionUID = 3317745769686161108L;
Line 80: private String _cdImagePath = "";
Line 81: private String _floppyImagePath = "";
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/RunVmValidator.java
Line 14: vm.getVdsGroupCompatibilityVersion(),
Line 15: vm.getStaticData());
Line 16:
Line 17: if (!validationErrors.isEmpty()) {
Line 18: VmHandler.handleCustomPropertiesError(validationErrors,
messages);
Thought about moving it, but other commands than 'run' use it, so it better off
stay in vmHandler.
Line 19: return false;
Line 20: }
Line 21:
Line 22: return true;
Line 20: }
Line 21:
Line 22: return true;
Line 23: }
Line 24:
Done
Line 25: public VmPropertiesUtils getVmPropertiesUtils() {
Line 26: return VmPropertiesUtils.getInstance();
Line 27: }
Line 28:
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmPoolCommandBase.java
Line 262: runVmParams.getDestinationVdsId() :
vm.getDedicatedVmForVds(),
Line 263: true,
Line 264: new VdsFreeMemoryChecker(new
NonWaitingDelayer()));
Line 265:
Line 266: return getRunVmValidator().canRunVm(vm, messages) &&
I can squash all patches or submit http://gerrit.ovirt.org/13696 (it's last)
Line 267: VmRunHandler.getInstance().canRunVm(vm,
Line 268: messages,
Line 269: runVmParams,
Line 270: vdsSelector,
Line 269: runVmParams,
Line 270: vdsSelector,
Line 271: new SnapshotsValidator());
Line 272: }
Line 273:
Done
Line 274: private static RunVmValidator getRunVmValidator() {
Line 275: return new RunVmValidator();
Line 276: }
Line 277:
--
To view, visit http://gerrit.ovirt.org/13397
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I60bbdb54d150878123968893c23169de253e1ba2
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Laszlo Hornyak <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: ofri masad <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches