Search in sources :

Example 1 with GlusterParameters

use of org.ovirt.engine.core.common.queries.gluster.GlusterParameters in project ovirt-engine by oVirt.

the class GetGlusterVolumeOptionsInfoQueryTest method setupExpectedGlusterVolumeOptionInfo.

private void setupExpectedGlusterVolumeOptionInfo() {
    parameters = new GlusterParameters(CLUSTER_ID);
    expected = new ArrayList<>();
    GlusterVolumeOptionInfo option = new GlusterVolumeOptionInfo();
    option.setKey("cluster.self-heal-window-size");
    option.setDefaultValue("1");
    option.setDescription("Maximum number blocks per file for which self-heal process would be applied simultaneously.");
    expected.add(option);
}
Also used : GlusterVolumeOptionInfo(org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionInfo) GlusterParameters(org.ovirt.engine.core.common.queries.gluster.GlusterParameters)

Example 2 with GlusterParameters

use of org.ovirt.engine.core.common.queries.gluster.GlusterParameters in project ovirt-engine by oVirt.

the class AsyncDataProvider method getGlusterHooks.

public void getGlusterHooks(AsyncQuery<List<GlusterHookEntity>> aQuery, Guid clusterId) {
    aQuery.converterCallback = new ListConverter<>();
    Frontend.getInstance().runQuery(QueryType.GetGlusterHooks, new GlusterParameters(clusterId), aQuery);
}
Also used : GlusterParameters(org.ovirt.engine.core.common.queries.gluster.GlusterParameters)

Aggregations

GlusterParameters (org.ovirt.engine.core.common.queries.gluster.GlusterParameters)2 GlusterVolumeOptionInfo (org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionInfo)1