Liron Ar has posted comments on this change.

Change subject: [wip] core: refactor MoveOrCopy/RemoveImage commands and 
parameters
......................................................................


Patch Set 2: (4 inline comments)

....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/MoveOrCopyImageGroupParameters.java
Line 18:     private boolean addImageDomainMapping;
Line 19:     private boolean forceOverride;
Line 20:     private NGuid sourceDomainId;
Line 21:     private Guid destImageGroupId;
Line 22:     private boolean shouldAttemptToRevert;
shouldAttemptToRevert - used to determine whether we should attempt to revert.
performRevertDbOperationsStage - used for a case in which we do revert, to 
signal when db operations should be done (basically we can attempt to revert 
without performing any db operation during the revert).
Line 23:     private PerformOperationStage performRevertDbOperationsStage;
Line 24: 
Line 25:     public MoveOrCopyImageGroupParameters() {
Line 26:     }


Line 19:     private boolean forceOverride;
Line 20:     private NGuid sourceDomainId;
Line 21:     private Guid destImageGroupId;
Line 22:     private boolean shouldAttemptToRevert;
Line 23:     private PerformOperationStage performRevertDbOperationsStage;
the enum name is more general in purpose (i'll change it to be "operations" 
instead of operation) , so we could use it for other needs as well without it 
making no sense.
Line 24: 
Line 25:     public MoveOrCopyImageGroupParameters() {
Line 26:     }
Line 27: 


....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/RemoveImageParameters.java
Line 8:     private static final long serialVersionUID = -7905125604587768041L;
Line 9: 
Line 10:     private DiskImage diskImage;
Line 11:     private boolean removeFromDB;
Line 12:     private PerformOperationStage performDbOperationsStage = 
PerformOperationStage.EXECUTION;
1. I'll change it to "PerformOperationsStage"
2. yep, it's just default as it's the current implementation in order to avoid 
regressions.
Line 13: 
Line 14:     public RemoveImageParameters(Guid imageId) {
Line 15:         super(imageId, null);
Line 16:         setForceDelete(false);


....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/PerformOperationStage.java
Line 1: package org.ovirt.engine.core.common.businessentities;
Line 2: 
Line 3: public enum PerformOperationStage {
take a look on RemoveImage (part of this patch) - I think that the values names 
are clear, but if you have suggestions for better names i'd be happy to change 
it
Line 4:     EXECUTION, TASKS_ENDED, NEVER;


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I92036258512d385b7296e1f75d9dcebfdd129d4a
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Ar <lara...@redhat.com>
Gerrit-Reviewer: Alissa Bonas <abo...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Anonymous Coward #1000370
Gerrit-Reviewer: Ayal Baron <aba...@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: 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