Package ru.bitel.bgbilling.server.util
Class Setup
java.lang.Object
ru.bitel.common.ParameterMap
ru.bitel.common.Preferences
ru.bitel.bgbilling.server.util.DefaultServerSetup
ru.bitel.bgbilling.server.util.Setup
- Direct Known Subclasses:
RadiusSetup
Главный setup приложений и сервера биллинга.
Конфиг объединяет файл-сетап и текущий активный бд-конфиг ядра.
Умеет получать и актуализировать конфиги модулей.
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.common.ParameterMap
ParameterMap.DefaultParameterMap -
Field Summary
FieldsFields inherited from class ru.bitel.bgbilling.server.util.DefaultServerSetup
RETURN_FAKE, RETURN_MASTER, RETURN_NULL, RETURN_SLAVEFields inherited from class ru.bitel.common.Preferences
bundleName, dataFields inherited from class ru.bitel.common.ParameterMap
mapPrint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <K extends bitel.billing.server.util.Config>
Kзагрузка/получение Config-конфига модуля, используется кешru.bitel.bgbilling.kernel.container.ws.common.DistributiongetFolderPathParam(String paramName, String defaultValue) getModuleSetup(Integer moduleId) Загрузка/получение конфига модуля по mid, используется кеш конфигов модуля, если косяк то будет nullgetPathProperty(String what, String def) Возвращает значение системной настройки для пути.static SetupgetSetup()ru.bitel.bgbilling.kernel.container.ws.server.WSClientvoidreloadConfig(int moduleId) static voidMethods inherited from class ru.bitel.bgbilling.server.util.DefaultServerSetup
getDBConnection, getDBConnection, getDBConnectionFromPool, getDBConnectionFromPool, getDBSlaveConnectionFromPool, getDBSlaveConnectionFromPool, getDBTrashConnectionFromPool, getDBTrashOrMasterConnectionFromPool, getDBTrashOrSlaveConnectionFromPool, getEnvironment, getMasterPoolLoad, getPoolStackTrace, getPoolStatus, getScheduledExecutorService, getSlaveBaseId, getSlaveConnectionFromPool, getTrashBaseId, getTrashConnectionFromPool, initConnectionPool, initJNDI, initMQ, initTrashPools, isReplicationAvailable, isReplicationEnabled, isReplicationNotBehindMaster, logConfigure, returnConToPool, setReplicationAvailable, setReplicationEnabled, setReplicationNotBehindMasterMethods inherited from class ru.bitel.common.Preferences
entrySet, extract, getMap, getObject, getObject, getOrderedValues, loadBundle, loadData, loadData, loadDataEntry, loadFromInputStream, loadModuleSetup, parseObjects, parseObjectsNoOrder, putObject, removeObject, set, updateDataMethods inherited from class ru.bitel.common.ParameterMap
addActionListener, filter, fingerprint, get, getBigDecimal, getBoolean, getChar, getDouble, getEnum, getFloat, getInt, getIntegerList, getLocalDate, getLong, inherit, sub, subIndexed, subKeyed, subLined, throwActionEvent, toReference, toString
-
Field Details
-
instance
-
-
Constructor Details
-
Setup
-
-
Method Details
-
getBundlePreferences
-
getInitDate
-
getDistribution
public ru.bitel.bgbilling.kernel.container.ws.common.Distribution getDistribution() -
getWSClient
public ru.bitel.bgbilling.kernel.container.ws.server.WSClient getWSClient() -
getConfig
загрузка/получение Config-конфига модуля, используется кеш -
getModuleSetup
Загрузка/получение конфига модуля по mid, используется кеш конфигов модуля, если косяк то будет null -
getFolderPathParam
-
getTempDirPath
-
getPathProperty
Возвращает значение системной настройки для пути. Если не находит - берет из сетапа, если и в сетапе нет - возвращает def.- Parameters:
what- название настройкиdef- значение по-умолчанию- Returns:
- значение
-
getSetup
-
setSetup
-
reloadConfig
public void reloadConfig(int moduleId) -
get
- Overrides:
getin classPreferences
-