use of org.ovirt.engine.core.common.queries.GetConfigurationValueParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getAllowClusterWithVirtGlusterEnabled.
public void getAllowClusterWithVirtGlusterEnabled(AsyncQuery<Boolean> aQuery) {
aQuery.converterCallback = new DefaultValueConverter<>(Boolean.TRUE);
getConfigFromCache(new GetConfigurationValueParameters(ConfigValues.AllowClusterWithVirtGlusterEnabled, getDefaultConfigurationVersion()), aQuery);
}
use of org.ovirt.engine.core.common.queries.GetConfigurationValueParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getWANColorDepth.
public void getWANColorDepth(AsyncQuery<WanColorDepth> aQuery) {
aQuery.converterCallback = source -> source != null ? WanColorDepth.fromInt((Integer) source) : WanColorDepth.depth16;
getConfigFromCache(new GetConfigurationValueParameters(ConfigValues.WANColorDepth, getDefaultConfigurationVersion()), aQuery);
}
use of org.ovirt.engine.core.common.queries.GetConfigurationValueParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getClusterServerMemoryOverCommit.
public void getClusterServerMemoryOverCommit(AsyncQuery<Integer> aQuery) {
aQuery.converterCallback = new DefaultValueConverter<>(0);
getConfigFromCache(new GetConfigurationValueParameters(ConfigValues.MaxVdsMemOverCommitForServers, getDefaultConfigurationVersion()), aQuery);
}
use of org.ovirt.engine.core.common.queries.GetConfigurationValueParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getSearchResultsLimit.
public void getSearchResultsLimit(AsyncQuery<Integer> aQuery) {
aQuery.converterCallback = new DefaultValueConverter<>(100);
getConfigFromCache(new GetConfigurationValueParameters(ConfigValues.SearchResultsLimit, getDefaultConfigurationVersion()), aQuery);
}
use of org.ovirt.engine.core.common.queries.GetConfigurationValueParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getMaxNumOfVmSockets.
public void getMaxNumOfVmSockets(AsyncQuery<Integer> aQuery, String version) {
aQuery.converterCallback = new DefaultValueConverter<>(1);
GetConfigurationValueParameters tempVar = new GetConfigurationValueParameters(ConfigValues.MaxNumOfVmSockets);
tempVar.setVersion(version);
getConfigFromCache(tempVar, aQuery);
}
Aggregations