Gilad Chaplik has posted comments on this change. Change subject: core: Add CRUD commands and queries for QoS objects (storage) ......................................................................
Patch Set 19: (3 comments) http://gerrit.ovirt.org/#/c/27096/19/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetQosByIdQuery.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetQosByIdQuery.java: Line 9: } Line 10: Line 11: @Override Line 12: protected void executeQueryCommand() { Line 13: getQueryReturnValue().setReturnValue(getDbFacade().getStorageQosDao().get(getParameters().getId())); > so the name here is bit confusing, as this query will work only for storage right, currently storage is the only qos that's supported by infra. when I will aggregate networkQos into it, StorageQosDao will be deleted. Line 14: } Line 15: http://gerrit.ovirt.org/#/c/27096/19/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/QosValidator.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/QosValidator.java: Line 41: /** Line 42: * Verify that the QoS entity had previously existed in the database. Line 43: */ Line 44: public ValidationResult qosExists() { Line 45: return (qos != null && getOldQos() == null) > if it can't and we rely on the run of the "exists" method prior to those ch Done Line 46: ? new ValidationResult(VdcBllMessages.ACTION_TYPE_FAILED_QOS_NOT_FOUND) Line 47: : ValidationResult.VALID; Line 48: } Line 49: Line 49: Line 50: /** Line 51: * Verify that the QoS entity has the same DC ID as the one stored in the database. Line 52: */ Line 53: public ValidationResult consistentDataCenter() { > consistent isn't really a good term in that place imo. Done Line 54: return (qos != null && (getOldQos() == null || !qos.getStoragePoolId().equals(getOldQos().getStoragePoolId()))) Line 55: ? new ValidationResult(VdcBllMessages.ACTION_TYPE_FAILED_QOS_INVALID_DC_ID) Line 56: : ValidationResult.VALID; Line 57: } -- To view, visit http://gerrit.ovirt.org/27096 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I1a9af59277b5055453159f002f19046c00522ddb Gerrit-PatchSet: 19 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Gilad Chaplik <[email protected]> Gerrit-Reviewer: Allon Mureinik <[email protected]> Gerrit-Reviewer: Daniel Erez <[email protected]> Gerrit-Reviewer: Doron Fediuck <[email protected]> Gerrit-Reviewer: Gilad Chaplik <[email protected]> Gerrit-Reviewer: Kobi Ianko <[email protected]> Gerrit-Reviewer: Liron Aravot <[email protected]> Gerrit-Reviewer: Maor Lipchuk <[email protected]> Gerrit-Reviewer: Moti Asayag <[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
