use of org.ovirt.engine.core.common.queries.gluster.GlusterHookQueryParameters 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.GlusterHookQueryParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getGlusterHook.
public void getGlusterHook(AsyncQuery<GlusterHookEntity> aQuery, Guid hookId, boolean includeServerHooks) {
aQuery.converterCallback = new CastingConverter<>();
Frontend.getInstance().runQuery(QueryType.GetGlusterHookById, new GlusterHookQueryParameters(hookId, includeServerHooks), aQuery);
}
Aggregations