Arik Hadas has posted comments on this change.
Change subject: core: fix the hierarchy of memory images removers
......................................................................
Patch Set 4: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/memory/MemoryImageRemoverOnDataDomain.java
Line 15: super(vm, enclosingCommand);
Line 16: }
Line 17:
Line 18: @Override
Line 19: protected DeleteImageGroupVDSCommandParameters
buildDeleteMemoryImageParams(List<Guid> guids) {
yes they are the same, but I think it is better to let the subclasses to have
full control over the parameters initialization because tomorrow we will add
another remover that wants to set 'forceDelete' to true - then we'll add
another abstract method for it? so I think that in that case the abstract class
just needs to remove the image group, it is not interested in the parameters
initialization - it is the responsibility of the subclasses to set them as they
want.
Line 20: return new DeleteImageGroupVDSCommandParameters(
Line 21: guids.get(1), guids.get(0), guids.get(2),
isPostZero(), false);
Line 22: }
Line 23:
--
To view, visit http://gerrit.ovirt.org/16826
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Id7cada7b6f9a3356afcac0dd2856d6a02cf1f9fd
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches