use of org.ovirt.engine.core.common.queries.GetConfigurationValueParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getStorageDomainMaxNameLength.
public void getStorageDomainMaxNameLength(AsyncQuery<Integer> aQuery) {
aQuery.converterCallback = new DefaultValueConverter<>(1);
getConfigFromCache(new GetConfigurationValueParameters(ConfigValues.StorageDomainNameSizeLimit, getDefaultConfigurationVersion()), aQuery);
}
use of org.ovirt.engine.core.common.queries.GetConfigurationValueParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getClusterDesktopMemoryOverCommit.
public void getClusterDesktopMemoryOverCommit(AsyncQuery<Integer> aQuery) {
aQuery.converterCallback = new DefaultValueConverter<>(0);
getConfigFromCache(new GetConfigurationValueParameters(ConfigValues.MaxVdsMemOverCommit, getDefaultConfigurationVersion()), aQuery);
}
use of org.ovirt.engine.core.common.queries.GetConfigurationValueParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getPmTypeList.
public void getPmTypeList(AsyncQuery<List<String>> aQuery, Version version) {
aQuery.converterCallback = source -> {
ArrayList<String> list = new ArrayList<>();
if (source != null) {
// $NON-NLS-1$
String[] array = ((String) source).split("[,]", -1);
for (String item : array) {
list.add(item);
}
}
return list;
};
GetConfigurationValueParameters param = new GetConfigurationValueParameters(ConfigValues.VdsFenceType);
param.setVersion(version != null ? version.toString() : getDefaultConfigurationVersion());
Frontend.getInstance().runQuery(QueryType.GetFenceConfigurationValue, param, aQuery);
}
use of org.ovirt.engine.core.common.queries.GetConfigurationValueParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getSpiceUsbAutoShare.
public void getSpiceUsbAutoShare(AsyncQuery<Boolean> aQuery) {
aQuery.converterCallback = new DefaultValueConverter<>(Boolean.TRUE);
getConfigFromCache(new GetConfigurationValueParameters(ConfigValues.SpiceUsbAutoShare, getDefaultConfigurationVersion()), aQuery);
}
use of org.ovirt.engine.core.common.queries.GetConfigurationValueParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getMaxNumOfCPUsPerSocket.
public void getMaxNumOfCPUsPerSocket(AsyncQuery<Integer> aQuery, String version) {
aQuery.converterCallback = new DefaultValueConverter<>(1);
GetConfigurationValueParameters tempVar = new GetConfigurationValueParameters(ConfigValues.MaxNumOfCpuPerSocket);
tempVar.setVersion(version);
getConfigFromCache(tempVar, aQuery);
}
Aggregations