Arik Hadas has posted comments on this change.

Change subject: core: enable migration to a different cluster
......................................................................


Patch Set 5:

(1 comment)

http://gerrit.ovirt.org/#/c/34316/5/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVmClusterValidator.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVmClusterValidator.java:

Line 24: 
Line 25:     private VDSGroup targetCluster;
Line 26: 
Line 27:     public ChangeVmClusterValidator(VmCommand parentCommand, Guid 
targetClusterId) {
Line 28:         this.parentCommand = parentCommand;
> well, I think it is better to have the parent passed explicitly, because I 
right, but in the validator you should not call those methods. the validator 
should return ValidationResult and the command needs to validate them 
(CommandBase#validate calls addCanDoActionMessages for you, and return boolean 
so you don't need to call failCanDoAction). see StorageDomainValidator
Line 29:         this.targetClusterId = targetClusterId;
Line 30:     }
Line 31: 
Line 32:     protected boolean validate() {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I9eb4fd7f10d3b0e63455a81f0b5c1389586a43f4
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tomas Jelinek <tjeli...@redhat.com>
Gerrit-Reviewer: Arik Hadas <aha...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjeli...@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