Search in sources :

Example 1 with GlusterHookQueryParameters

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;
}
Also used : QueryReturnValue(org.ovirt.engine.core.common.queries.QueryReturnValue) GlusterHookContentQueryParameters(org.ovirt.engine.core.common.queries.gluster.GlusterHookContentQueryParameters) GlusterHook(org.ovirt.engine.api.model.GlusterHook) GlusterHookQueryParameters(org.ovirt.engine.core.common.queries.gluster.GlusterHookQueryParameters)

Example 2 with GlusterHookQueryParameters

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);
}
Also used : GlusterHookQueryParameters(org.ovirt.engine.core.common.queries.gluster.GlusterHookQueryParameters)

Aggregations

GlusterHookQueryParameters (org.ovirt.engine.core.common.queries.gluster.GlusterHookQueryParameters)2 GlusterHook (org.ovirt.engine.api.model.GlusterHook)1 QueryReturnValue (org.ovirt.engine.core.common.queries.QueryReturnValue)1 GlusterHookContentQueryParameters (org.ovirt.engine.core.common.queries.gluster.GlusterHookContentQueryParameters)1