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
public class Setup extends DefaultServerSetup
Главный setup приложения биллинга.
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.common.ParameterMap
ParameterMap.DefaultParameterMap -
Field Summary
Fields 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 Constructor Description Setup(java.lang.String bundleName) -
Method Summary
Modifier and Type Method Description PreferencesgetBundlePreferences()<K extends bitel.billing.server.util.Config>
KgetConfig(int mid, java.lang.Class<K> clazz)ru.bitel.bgbilling.kernel.container.ws.common.DistributiongetDistribution()java.lang.StringgetFolderPathParam(java.lang.String paramName, java.lang.String defaultValue)java.util.DategetInitDate()ModuleSetupgetModuleSetup(java.lang.Integer moduleId)java.lang.StringgetPathProperty(java.lang.String what, java.lang.String def)Возвращает значение системной настройки для пути.static SetupgetSetup()java.lang.StringgetTempDirPath()ru.bitel.bgbilling.kernel.container.ws.server.WSClientgetWSClient()voidreloadConfig(int moduleId)static voidsetSetup(Setup setup)Methods inherited from class ru.bitel.bgbilling.server.util.DefaultServerSetup
checkAndCreatePeriodicTableName, getDBConnection, getDBConnection, getDBConnectionFromPool, getDBConnectionFromPool, getDBSlaveConnectionFromPool, getDBSlaveConnectionFromPool, getDBTrashConnectionFromPool, getDBTrashOrMasterConnectionFromPool, getDBTrashOrSlaveConnectionFromPool, getEnvironment, getMasterPoolLoad, getPoolStackTrace, getPoolStatus, getScheduledExecutorService, getSlaveBaseId, getSlaveConnectionFromPool, getTrashBaseId, getTrashConnectionFromPool, initConnectionPool, initJNDI, initLocales, initMQ, initTrashPoolsAndCreateTableOptions, isReplicationAvailable, isReplicationEnabled, isReplicationNotBehindMaster, logConfigure, returnConToPool, setReplicationAvailable, setReplicationEnabled, setReplicationNotBehindMasterMethods inherited from class ru.bitel.common.Preferences
entrySet, extract, get, getMap, getObject, getObject, getOrderedValues, loadBundle, loadData, loadData, loadDataEntry, loadFromInputStream, loadModuleSetup, parseObjects, parseObjectsNoOrder, putObject, removeObject, set, updateDataMethods inherited from class ru.bitel.common.ParameterMap
addActionListener, fingerprint, get, getBigDecimal, getBoolean, getChar, getDouble, getEnum, getFloat, getInt, getIntegerList, getLocalDate, getLong, inherit, sub, subIndexed, subKeyed, subLined, throwActionEvent, toReference, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
instance
-
-
Constructor Details
-
Setup
public Setup(java.lang.String bundleName)
-
-
Method Details
-
getBundlePreferences
-
getInitDate
public java.util.Date getInitDate() -
getDistribution
public ru.bitel.bgbilling.kernel.container.ws.common.Distribution getDistribution() -
getWSClient
public ru.bitel.bgbilling.kernel.container.ws.server.WSClient getWSClient() -
getConfig
public final <K extends bitel.billing.server.util.Config> K getConfig(int mid, java.lang.Class<K> clazz) -
getModuleSetup
-
getFolderPathParam
public java.lang.String getFolderPathParam(java.lang.String paramName, java.lang.String defaultValue) -
getTempDirPath
public java.lang.String getTempDirPath() -
getPathProperty
public java.lang.String getPathProperty(java.lang.String what, java.lang.String def)Возвращает значение системной настройки для пути. Если не находит - берет из сетапа, если и в сетапе нет - возвращает def.- Parameters:
what- название настройкиdef- значение по-умолчанию- Returns:
- значение
-
getSetup
-
setSetup
-
reloadConfig
public void reloadConfig(int moduleId)
-