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