Allon Mureinik has posted comments on this change.

Change subject: core: GetAllVmSnapshotsFromConfigurationByVmIdQuery
......................................................................


Patch Set 5: Code-Review+1

(2 comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetVmConfigurationBySnapshotQuery.java
Line 38:         return getDbFacade().getSnapshotDao();
Line 39:     }
Line 40: 
Line 41:     protected SnapshotVmConfigurationHelper 
getSnapshotVmConfigurationHelper() {
Line 42:         return new SnapshotVmConfigurationHelper();
no - this should remain an instance method for testing. Especially is the 
constructor of SnapshotVmConfigurationHelper costs nothing.
Line 43:     }
Line 44: 


....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/snapshots/SnapshotVmConfigurationHelper.java
Line 23: public class SnapshotVmConfigurationHelper {
Line 24: 
Line 25:     private static final Log log = 
LogFactory.getLog(SnapshotVmConfigurationHelper.class);
Line 26: 
Line 27:     public VM getVmFromConfiguration(String configuration, Guid vmId, 
Guid snapshotId) {
How about makeVmFromOVFString?
Line 28:         VM vm = null;
Line 29:         if (configuration != null) {
Line 30:             vm = getVmWithConfiguration(configuration, vmId);
Line 31:             markImagesIllegalIfNotInDb(vm, snapshotId);


-- 
To view, visit http://gerrit.ovirt.org/22774
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I23aa4de4d233fade33d2a5ea174a9a1802b49370
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Liron Ar <lara...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to