Search in sources :

Example 1 with GlusterHookContentQueryParameters

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;
}
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 GlusterHookContentQueryParameters

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

Aggregations

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