Search in sources :

Example 1 with GetConfigurationValueParameters

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

Example 2 with GetConfigurationValueParameters

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

Example 3 with GetConfigurationValueParameters

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

Example 4 with GetConfigurationValueParameters

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

Example 5 with GetConfigurationValueParameters

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

Aggregations

GetConfigurationValueParameters (org.ovirt.engine.core.common.queries.GetConfigurationValueParameters)25 ArrayList (java.util.ArrayList)4 ConfigValues (org.ovirt.engine.core.common.config.ConfigValues)3 ServletException (javax.servlet.ServletException)2 QueryReturnValue (org.ovirt.engine.core.common.queries.QueryReturnValue)2 IOException (java.io.IOException)1 MalformedURLException (java.net.MalformedURLException)1 Collections (java.util.Collections)1 Iterator (java.util.Iterator)1 List (java.util.List)1 Locale (java.util.Locale)1 RequestDispatcher (javax.servlet.RequestDispatcher)1 ActionReturnValue (org.ovirt.engine.core.common.action.ActionReturnValue)1 ActionType (org.ovirt.engine.core.common.action.ActionType)1 CreateBrickParameters (org.ovirt.engine.core.common.action.gluster.CreateBrickParameters)1 SyncGlusterStorageDevicesParameter (org.ovirt.engine.core.common.action.gluster.SyncGlusterStorageDevicesParameter)1 RaidType (org.ovirt.engine.core.common.businessentities.RaidType)1 VDS (org.ovirt.engine.core.common.businessentities.VDS)1 VDSStatus (org.ovirt.engine.core.common.businessentities.VDSStatus)1 StorageDevice (org.ovirt.engine.core.common.businessentities.gluster.StorageDevice)1