Sahina Bose has posted comments on this change.

Change subject: gluster: BLL commands for gluster volume snapshot
......................................................................


Patch Set 1:

(2 comments)

http://gerrit.ovirt.org/#/c/37325/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/ActivateGlusterVolumeSnapshotCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/ActivateGlusterVolumeSnapshotCommand.java:

Line 18: import org.ovirt.engine.core.common.vdscommands.VDSReturnValue;
Line 19: import 
org.ovirt.engine.core.common.vdscommands.gluster.GlusterVolumeActivateSnapshotVDSParameters;
Line 20: import org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotDao;
Line 21: 
Line 22: public class ActivateGlusterVolumeSnapshotCommand extends 
GlusterVolumeCommandBase<GlusterVolumeSnapshotActionParameters> {
You could extend from a GlusterVolumeSnapshotCommandBase and move common logic 
there
Line 23:     GlusterVolumeSnapshotEntity snapshot;
Line 24: 
Line 25:     public 
ActivateGlusterVolumeSnapshotCommand(GlusterVolumeSnapshotActionParameters 
params) {
Line 26:         super(params);


Line 74:     }
Line 75: 
Line 76:     @Override
Line 77:     protected Map<String, Pair<String, String>> getExclusiveLocks() {
Line 78:         if (!isInternalExecution()) {
Check the locking group. Should use the same as the one used in sync job
Line 79:             return 
Collections.singletonMap(getGlusterVolumeId().toString(),
Line 80:                     
LockMessagesMatchUtil.makeLockingPair(LockingGroup.GLUSTER,
Line 81:                             
VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED));
Line 82:         }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I74fa567e0910a8f97c3d127951481448983e3fd3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shubhendu Tripathi <[email protected]>
Gerrit-Reviewer: Kanagaraj M <[email protected]>
Gerrit-Reviewer: Ramesh N <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to