public abstract class TvApplication
extends java.lang.Object
implements ru.bitel.bgbilling.kernel.application.server.CommandListener, ru.bitel.common.worker.ThreadContextFactory<ru.bitel.bgbilling.kernel.container.managed.ServerContext>, ru.bitel.bgbilling.kernel.application.server.Lifecycle
Modifier and Type | Field and Description |
---|---|
int |
applicationId |
static int |
CHECK_TARIFF_PRICE_DISABLE |
static int |
CHECK_TARIFF_PRICE_ENABLE |
static int |
CHECK_TARIFF_PRICE_ENABLE_WITHOUT_TIME |
static int |
CHECK_TARIFF_PRICE_STRICT |
static int |
CHECK_TARIFF_PRICE_STRICT_WITHOUT_TIME |
int |
checkTariffPrice
Нужно ли выдавать ошибку, если цена не найдена
|
java.util.Set<java.lang.Integer> |
childrenDeviceIds
Все устройства-дети
|
ru.bitel.bgbilling.kernel.contract.runtime.ContractRuntimeMap |
contractRuntimeMap |
ru.bitel.bgbilling.kernel.contract.balance.server.ConvergenceBalanceManager |
convergenceBalanceManager |
protected java.util.Date |
dateFrom |
TvDeviceRuntimeMap |
deviceMap
Мап устройств
|
static int |
EMPTY_ROOT_DEVICE_ID |
java.util.Date |
initialDate |
int |
moduleId |
ProductSpecRuntimeMap |
productSpecRuntimeMap |
boolean |
realtime |
int |
rootDeviceId |
protected java.util.concurrent.ScheduledExecutorService |
scheduledExecutorService |
ServiceSpecRuntimeMap |
serviceSpecRuntimeMap |
Setup |
setup |
TvAccountRuntimeMap |
tvAccountRuntimeMap |
TvAccountSpecRuntimeMap |
tvAccountSpecRuntimeMap
Динамически обновляемый справочник типов сервисов
|
ru.bitel.bgbilling.modules.tv.tariff.server.TvTariffContext |
tvTariffContext |
Constructor and Description |
---|
TvApplication(boolean realtime,
Setup setup,
int applicationId,
int moduleId,
boolean loadSaScripts) |
TvApplication(boolean realtime,
Setup setup,
int applicationId,
int moduleId,
boolean loadSaScripts,
int rootDeviceId,
java.util.Date dateFrom) |
Modifier and Type | Method and Description |
---|---|
AuthResult |
authorization(ConnectionSet connectionSet,
TvAccountRuntime tvAccountRuntime,
java.util.Date now,
java.math.BigDecimal accountDelta) |
java.lang.String |
executeCommand(java.lang.String cmd,
java.lang.String param) |
java.lang.String |
getCommandsHelp() |
ru.bitel.bgbilling.kernel.contract.runtime.ContractRuntimeMap |
getContractRuntimeMap() |
ProductSpecRuntimeMap |
getProductSpecRuntimeMap() |
TvAccountRuntimeMap |
getTvAccountRuntimeMap() |
TvAccountSpecRuntimeMap |
getTvAccountSpecRuntimeMap() |
TvDeviceRuntimeMap |
getTvDeviceRuntimeMap() |
void |
load() |
ru.bitel.bgbilling.kernel.container.managed.ServerContext |
newThreadContext() |
void |
start() |
void |
stop() |
java.util.Set<java.lang.Integer> |
tvAccountOptionSet(ConnectionSet connectionSet,
TvAccountRuntime tvAccountRuntime,
java.util.Date now) |
protected final java.util.concurrent.ScheduledExecutorService scheduledExecutorService
public final boolean realtime
public final java.util.Date initialDate
public final Setup setup
public final int applicationId
public final int moduleId
public final int rootDeviceId
public final ru.bitel.bgbilling.modules.tv.tariff.server.TvTariffContext tvTariffContext
public final ru.bitel.bgbilling.kernel.contract.runtime.ContractRuntimeMap contractRuntimeMap
public final TvAccountRuntimeMap tvAccountRuntimeMap
public TvAccountSpecRuntimeMap tvAccountSpecRuntimeMap
public ServiceSpecRuntimeMap serviceSpecRuntimeMap
public ProductSpecRuntimeMap productSpecRuntimeMap
public volatile java.util.Set<java.lang.Integer> childrenDeviceIds
public final TvDeviceRuntimeMap deviceMap
public final ru.bitel.bgbilling.kernel.contract.balance.server.ConvergenceBalanceManager convergenceBalanceManager
public static final int EMPTY_ROOT_DEVICE_ID
protected final java.util.Date dateFrom
public static final int CHECK_TARIFF_PRICE_DISABLE
public static final int CHECK_TARIFF_PRICE_ENABLE
public static final int CHECK_TARIFF_PRICE_STRICT
public static final int CHECK_TARIFF_PRICE_ENABLE_WITHOUT_TIME
public static final int CHECK_TARIFF_PRICE_STRICT_WITHOUT_TIME
public final int checkTariffPrice
public TvApplication(boolean realtime, Setup setup, int applicationId, int moduleId, boolean loadSaScripts) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public TvApplication(boolean realtime, Setup setup, int applicationId, int moduleId, boolean loadSaScripts, int rootDeviceId, java.util.Date dateFrom) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void start() throws java.lang.Exception
start
in interface ru.bitel.bgbilling.kernel.application.server.Lifecycle
java.lang.Exception
public void load()
public void stop() throws java.lang.Exception
stop
in interface ru.bitel.bgbilling.kernel.application.server.Lifecycle
java.lang.Exception
public ru.bitel.bgbilling.kernel.container.managed.ServerContext newThreadContext()
newThreadContext
in interface ru.bitel.common.worker.ThreadContextFactory<ru.bitel.bgbilling.kernel.container.managed.ServerContext>
public java.lang.String getCommandsHelp()
getCommandsHelp
in interface ru.bitel.bgbilling.kernel.application.server.CommandListener
public java.lang.String executeCommand(java.lang.String cmd, java.lang.String param)
executeCommand
in interface ru.bitel.bgbilling.kernel.application.server.CommandListener
public java.util.Set<java.lang.Integer> tvAccountOptionSet(ConnectionSet connectionSet, TvAccountRuntime tvAccountRuntime, java.util.Date now) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public AuthResult authorization(ConnectionSet connectionSet, TvAccountRuntime tvAccountRuntime, java.util.Date now, java.math.BigDecimal accountDelta) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public ru.bitel.bgbilling.kernel.contract.runtime.ContractRuntimeMap getContractRuntimeMap()
public TvAccountRuntimeMap getTvAccountRuntimeMap()
public TvAccountSpecRuntimeMap getTvAccountSpecRuntimeMap()
public ProductSpecRuntimeMap getProductSpecRuntimeMap()
public TvDeviceRuntimeMap getTvDeviceRuntimeMap()