Allon Mureinik has posted comments on this change.

Change subject: core: change vdsSpmId related command to support numerous vdss
......................................................................


Patch Set 11: I would prefer that you didn't submit this

(4 inline comments)

see inline

....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/VdsSpmIdParameters.java
Line 6: import org.ovirt.engine.core.compat.Guid;
Line 7: 
Line 8: public class VdsSpmIdParameters extends VdsActionParameters {
Line 9: 
Line 10:     private static final long serialVersionUID = 1L;
Use the autogenerated one, not the default 1
Line 11:     private List<VdsStatic> vdss;
Line 12:     Guid storagePoolId;
Line 13: 
Line 14:     public Guid getStoragePoolId() {


Line 7: 
Line 8: public class VdsSpmIdParameters extends VdsActionParameters {
Line 9: 
Line 10:     private static final long serialVersionUID = 1L;
Line 11:     private List<VdsStatic> vdss;
Is the order of the VDSs meaningful?
Why not a Set?
Line 12:     Guid storagePoolId;
Line 13: 
Line 14:     public Guid getStoragePoolId() {
Line 15:         return storagePoolId;


Line 8: public class VdsSpmIdParameters extends VdsActionParameters {
Line 9: 
Line 10:     private static final long serialVersionUID = 1L;
Line 11:     private List<VdsStatic> vdss;
Line 12:     Guid storagePoolId;
shouldn't this be private?
Line 13: 
Line 14:     public Guid getStoragePoolId() {
Line 15:         return storagePoolId;
Line 16:     }


Line 27:         this.vdss = vdss;
Line 28:     }
Line 29: 
Line 30:     public VdsSpmIdParameters(List<VdsStatic> vdss, Guid 
storagePoolId) {
Line 31:         super(null);
this is somewhat of an abuse of the hierarchy - why not extends 
VdcActionParametersBase?
Line 32:         setVdss(vdss);
Line 33:         setStoragePoolId(storagePoolId);
Line 34:     }
Line 35: 


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I7531b9edb763d32b96c58104385349d587de3416
Gerrit-PatchSet: 11
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Vered Volansky <vvola...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to