Moti Asayag has posted comments on this change.
Change subject: core: Move status check methods from VM to VMStatus
......................................................................
Patch Set 1: (1 inline comment)
Agree with Roy, since you're already in the context of VmStatus, no need to
repeat it within method's name.
I'd shorten it a bit more to:
running()
up()
qualifiedForMigration() or even migratable()
Than using it looks like:
if (vmStatus.running()) {
...
}
if (vmStatus.migratable()) {
...
}
migratable -
http://en.wiktionary.org/wiki/migratable
....................................................
File
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VMStatus.java
Line 21: ImageIllegal(14),
Line 22: ImageLocked(15),
Line 23: PoweringDown(16);
Line 24:
Line 25: private int value;
maybe change value to id ? since value is too generic.
Line 26: private static HashMap<Integer, VMStatus> valueToStatus = new
HashMap<Integer, VMStatus>();
Line 27:
Line 28: static {
Line 29: for (VMStatus status : values()) {
--
To view, visit http://gerrit.ovirt.org/10795
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I82b4f109751773ff2d46407ccea26ea0be2661f5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches