use of org.ovirt.engine.core.common.queries.gluster.GlusterHookContentQueryParameters in project ovirt-engine by oVirt.
the class BackendGlusterHookResource method get.
@Override
public GlusterHook get() {
GlusterHook hook = performGet(QueryType.GetGlusterHookById, new GlusterHookQueryParameters(guid, true));
QueryReturnValue result = runQuery(QueryType.GetGlusterHookContent, new GlusterHookContentQueryParameters(guid));
if (result != null && result.getSucceeded() && result.getReturnValue() != null) {
hook.setContent(result.getReturnValue());
}
return hook;
}
use of org.ovirt.engine.core.common.queries.gluster.GlusterHookContentQueryParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getGlusterHookContent.
public void getGlusterHookContent(AsyncQuery<String> aQuery, Guid hookId, Guid serverId) {
aQuery.converterCallback = new StringConverter();
GlusterHookContentQueryParameters parameters = new GlusterHookContentQueryParameters(hookId);
parameters.setGlusterServerId(serverId);
Frontend.getInstance().runQuery(QueryType.GetGlusterHookContent, parameters, aQuery);
}
Aggregations