Selvasundaram has posted comments on this change.
Change subject: engine: Gluster hook content query
......................................................................
Patch Set 1: (2 inline comments)
....................................................
File
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/gluster/GlusterHookQueryParameters.java
Line 5:
Line 6: /**
Line 7: * Parameter class with Gluster Hook Id as parameters. <br>
Line 8: * This will be used by Gluster Hook Content query. <br>
Line 9: */
This query always return the hook content from the db (typically it is sync in
all server). In case of any conflicts (in_sync==false), call another bll
command to get the specific server hook content.
Line 10: public class GlusterHookQueryParameters extends VdcQueryParametersBase
{
Line 11: private static final long serialVersionUID = 4564573475511998657L;
Line 12:
Line 13: private Guid glusterHookId;
....................................................
File
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/gluster/GlusterHooksDaoDbFacadeImpl.java
Line 88: entity.setStatus(glusterServerHook.getStatus());
Line 89: }
Line 90: return entity;
Line 91: }
Line 92:
Yes. It will return null for Binary. In case of binary content, we wont stored
in db. UI won't call if content type is BINARY.
Line 93: @Override
Line 94: public String getGlusterHookcontent(Guid hookId) {
Line 95: String content =
getCallsHandler().executeRead("GetGlusterHookById", GlusterHookContentRowMapper,
Line 96: createGlusterHookIdParams(hookId));
--
To view, visit http://gerrit.ovirt.org/12219
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie24d1132fc214661cd2c2e3071f641812d19cd4f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Selvasundaram <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Selvasundaram <[email protected]>
Gerrit-Reviewer: Shireesh Anjal <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches