Sahina Bose has posted comments on this change.

Change subject: gluster: Entities for gluster volume snapshot
......................................................................


Patch Set 14:

(5 comments)

http://gerrit.ovirt.org/#/c/23199/14/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeSnapshotConfigParam.java
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeSnapshotConfigParam.java:

Line 2: 
Line 3: import org.ovirt.engine.core.common.businessentities.IVdcQueryable;
Line 4: import org.ovirt.engine.core.compat.Guid;
Line 5: 
Line 6: public class GlusterVolumeSnapshotConfigParam extends IVdcQueryable {
rename to GlusterVolumeSnapshotConfig? Param suffix seems to indicate this is a 
parameter class for commands, IMO
Line 7:     private static final long serialVersionUID = 3432543544365L;
Line 8:     private Guid clusterId;
Line 9:     private Guid volumeId;
Line 10:     private String paramName;


Line 54:     }
Line 55: 
Line 56:     @Override
Line 57:     public boolean equals(Object obj) {
Line 58:         if (!(obj instanceof GlusterVolumeSnapshotConfigParam)) {
null check for obj missing
Line 59:             return false;
Line 60:         }
Line 61: 
Line 62:         GlusterVolumeSnapshotConfigParam config = 
(GlusterVolumeSnapshotConfigParam)obj;


Line 60:         }
Line 61: 
Line 62:         GlusterVolumeSnapshotConfigParam config = 
(GlusterVolumeSnapshotConfigParam)obj;
Line 63: 
Line 64:         if (!(clusterId.equals(config.getClusterId()))) {
use ObjectUtils to compare
Line 65:             return false;
Line 66:         }
Line 67: 
Line 68:         if (!(volumeId.equals(config.getVolumeId()))) {


http://gerrit.ovirt.org/#/c/23199/14/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeSnapshotEntity.java
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/gluster/GlusterVolumeSnapshotEntity.java:

Line 84:     }
Line 85: 
Line 86:     @Override
Line 87:     public boolean equals(Object obj) {
Line 88:         if (!(obj instanceof GlusterVolumeSnapshotEntity)) {
same comments as previous class
Line 89:             return false;
Line 90:         }
Line 91: 
Line 92:         GlusterVolumeSnapshotEntity snapshot = 
(GlusterVolumeSnapshotEntity) obj;


http://gerrit.ovirt.org/#/c/23199/14/packaging/dbscripts/create_views.sql
File packaging/dbscripts/create_views.sql:

Line 1698: 
Line 1699: CREATE OR REPLACE VIEW gluster_volume_snapshots_view
Line 1700: AS
Line 1701: SELECT gluster_volume_snapshots.*,
Line 1702:        gluster_volumes.cluster_id AS cluster_id
how about returning volume name in the view?
Line 1703: FROM gluster_volume_snapshots
Line 1704: INNER JOIN gluster_volumes ON gluster_volume_snapshots.volume_id = 
gluster_volumes.id;
Line 1705: 
Line 1706: CREATE OR REPLACE VIEW gluster_volume_bricks_view


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Idafc74e193fd0d957ee134b53231d99c4ab2e9d8
Gerrit-PatchSet: 14
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shubhendu Tripathi <shtri...@redhat.com>
Gerrit-Reviewer: Eli Mesika <emes...@redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayi...@redhat.com>
Gerrit-Reviewer: Nishanth Thomas <nishusem...@gmail.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Ramesh N <rnach...@redhat.com>
Gerrit-Reviewer: Sahina Bose <sab...@redhat.com>
Gerrit-Reviewer: Shubhendu Tripathi <shtri...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
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