protected String getEngineRpmVersion(String sessionId) { return (String) runPublicQuery(QueryType.GetConfigurationValue, new GetConfigurationValueParameters(ConfigValues.ProductRPMVersion, ConfigCommon.defaultConfigurationVersion), sessionId); }
protected Integer getApplicationMode(String sessionId) { return (Integer) runPublicQuery(QueryType.GetConfigurationValue, new GetConfigurationValueParameters(ConfigValues.ApplicationMode, ConfigCommon.defaultConfigurationVersion), sessionId); }
public void getStorageDomainMaxNameLength(AsyncQuery<Integer> aQuery) { aQuery.converterCallback = new DefaultValueConverter<>(1); getConfigFromCache( new GetConfigurationValueParameters(ConfigValues.StorageDomainNameSizeLimit, getDefaultConfigurationVersion()), aQuery); }
public void getCustomBondNameSupported(AsyncQuery<Boolean> aQuery, Version version) { aQuery.converterCallback = new DefaultValueConverter<>(Boolean.TRUE); getConfigFromCache( new GetConfigurationValueParameters(ConfigValues.CustomBondNameSupported, version.getValue()), aQuery); }
public void getClusterDesktopMemoryOverCommit(AsyncQuery<Integer> aQuery) { aQuery.converterCallback = new DefaultValueConverter<>(0); getConfigFromCache( new GetConfigurationValueParameters(ConfigValues.MaxVdsMemOverCommit, getDefaultConfigurationVersion()), aQuery); }
public void getWANColorDepth(AsyncQuery<WanColorDepth> aQuery) { aQuery.converterCallback = source -> source != null ? WanColorDepth.fromInt((Integer) source) : WanColorDepth.depth16; getConfigFromCache( new GetConfigurationValueParameters(ConfigValues.WANColorDepth, getDefaultConfigurationVersion()), aQuery); }
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); }
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); }
public void getNetworkConnectivityCheckTimeoutInSeconds(AsyncQuery<Integer> aQuery) { aQuery.converterCallback = new DefaultValueConverter<>(120); getConfigFromCache( new GetConfigurationValueParameters(ConfigValues.NetworkConnectivityCheckTimeoutInSeconds, getDefaultConfigurationVersion()), aQuery); }
public void getMaxNumOfThreadsPerCpu(AsyncQuery<Integer> aQuery, String version) { aQuery.converterCallback = new DefaultValueConverter<>(1); GetConfigurationValueParameters tempVar = new GetConfigurationValueParameters(ConfigValues.MaxNumOfThreadsPerCpu); tempVar.setVersion(version); getConfigFromCache(tempVar, aQuery); }
public void getSearchResultsLimit(AsyncQuery<Integer> aQuery) { aQuery.converterCallback = new DefaultValueConverter<>(100); getConfigFromCache( new GetConfigurationValueParameters(ConfigValues.SearchResultsLimit, getDefaultConfigurationVersion()), aQuery); }
public void getClusterServerMemoryOverCommit(AsyncQuery<Integer> aQuery) { aQuery.converterCallback = new DefaultValueConverter<>(0); getConfigFromCache( new GetConfigurationValueParameters(ConfigValues.MaxVdsMemOverCommitForServers, getDefaultConfigurationVersion()), aQuery); }
public void getAllowClusterWithVirtGlusterEnabled(AsyncQuery<Boolean> aQuery) { aQuery.converterCallback = new DefaultValueConverter<>(Boolean.TRUE); getConfigFromCache( new GetConfigurationValueParameters(ConfigValues.AllowClusterWithVirtGlusterEnabled, getDefaultConfigurationVersion()), aQuery); }
@SuppressWarnings("unchecked") protected <T> T getConfigurationValueDefault(ConfigValues config) { QueryReturnValue result = runQuery( QueryType.GetConfigurationValue, new GetConfigurationValueParameters(config, ConfigCommon.defaultConfigurationVersion) ); if (result.getSucceeded()) { return (T) result.getReturnValue(); } return null; }
public void getMaxVmsInPool(AsyncQuery<Integer> aQuery) { aQuery.converterCallback = new DefaultValueConverter<>(1000); getConfigFromCache( new GetConfigurationValueParameters(ConfigValues.MaxVmsInPool, getDefaultConfigurationVersion()), aQuery); }
public void getMaxNumOfVmCpus(AsyncQuery<Integer> aQuery, String version) { aQuery.converterCallback = new DefaultValueConverter<>(1); GetConfigurationValueParameters tempVar = new GetConfigurationValueParameters(ConfigValues.MaxNumOfVmCpus); tempVar.setVersion(version); getConfigFromCache(tempVar, aQuery); }
public void getMaxVmPriority(AsyncQuery<Integer> aQuery) { aQuery.converterCallback = new DefaultValueConverter<>(100); getConfigFromCache( new GetConfigurationValueParameters(ConfigValues.VmPriorityMaxValue, getDefaultConfigurationVersion()), aQuery); }
public void getDataCenterMaxNameLength(AsyncQuery<Integer> aQuery) { aQuery.converterCallback = new DefaultValueConverter<>(1); getConfigFromCache( new GetConfigurationValueParameters(ConfigValues.StoragePoolNameSizeLimit, getDefaultConfigurationVersion()), aQuery); }
private Object getBackendParameter(final ConfigValues key) throws ServletException { final GetConfigurationValueParameters parameters = new GetConfigurationValueParameters(); parameters.setConfigValue(key); parameters.setVersion(ConfigCommon.defaultConfigurationVersion); QueryReturnValue value = backend.runPublicQuery(QueryType.GetConfigurationValue, parameters); if (!value.getSucceeded()) { throw new ServletException("Can't get value of backend parameter \"" + key + "\"."); } return value.getReturnValue(); }
private ApplicationMode findApplicationMode(String sessionId) { GetConfigurationValueParameters parameters = new GetConfigurationValueParameters( ConfigValues.ApplicationMode, ConfigCommon.defaultConfigurationVersion ); parameters.setSessionId(sessionId); QueryReturnValue result = backend.runPublicQuery( QueryType.GetConfigurationValue, parameters); return ApplicationMode.from(result.getReturnValue()); }