Package ru.bgcrm.util
Class Setup
java.lang.Object
java.util.AbstractMap<String,String>
ru.bgcrm.util.ParameterMap
ru.bgcrm.util.Preferences
ru.bgcrm.util.Setup
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields inherited from class ru.bgcrm.util.Preferences
data
Fields inherited from class ru.bgcrm.util.ParameterMap
configMap, EMPTY, mapPrint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Deprecated.getGlobalConfig
(int id) Возвращает глобальную конфигурацию по её коду.Отчет по статусу пулов соединенийstatic Setup
getSetup()
Use this singleton call wisely, because introducing that everywhere makes code hardly testable.static Setup
Deprecated.static void
resetSetup
(ConnectionPool pool) Methods inherited from class ru.bgcrm.util.Preferences
entrySet, get, getDataMap, getHashValuesWithPrefix, insertVariablesValues, loadBundle, loadData, parseObjects, parseObjectsNoOrder, processIncludes, put, putAll, removeSub
Methods inherited from class ru.bgcrm.util.ParameterMap
fingerprint, get, getBigDecimal, getBoolean, getBoolean, getConfig, getConfig, getDataString, getDataString, getDataString, getInt, getInt, getLong, getLong, getSok, getSok, getSokBoolean, getSokBoolean, getSokLong, getSokLong, of, removeConfig, sub, subIndexed, subKeyed, validateConfig
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, remove, size, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
Setup
-
-
Method Details
-
getSetup
Use this singleton call wisely, because introducing that everywhere makes code hardly testable.- Returns:
-
getBundleName
-
getSetup
-
resetSetup
-
getDataSource
Deprecated. -
getSlaveDataSource
Deprecated. -
getConnectionPool
-
getDBConnectionFromPool
-
getDBSlaveConnectionFromPool
-
getGlobalConfig
Возвращает глобальную конфигурацию по её коду.- Parameters:
id
-- Returns:
-
getPoolStatus
Отчет по статусу пулов соединений- Returns:
-