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 Details

    • scheduledExecutorService

      protected final ScheduledExecutorService scheduledExecutorService
    • realtime

      public final boolean realtime
    • initialDate

      public final Date initialDate
    • setup

      public final Setup 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

      public final TvAccountRuntimeMap tvAccountRuntimeMap
    • tvAccountSpecRuntimeMap

      public TvAccountSpecRuntimeMap tvAccountSpecRuntimeMap
      Динамически обновляемый справочник типов сервисов
    • serviceSpecRuntimeMap

      public ServiceSpecRuntimeMap serviceSpecRuntimeMap
    • productSpecRuntimeMap

      public ProductSpecRuntimeMap productSpecRuntimeMap
    • childrenDeviceIds

      public volatile Set<Integer> childrenDeviceIds
      Все устройства-дети
    • deviceMap

      public final TvDeviceRuntimeMap 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

      protected final Date 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

      public void start() throws Exception
      Specified by:
      start in interface ru.bitel.bgbilling.kernel.application.server.Lifecycle
      Throws:
      Exception
    • load

      public void load()
    • stop

      public void stop() throws Exception
      Specified by:
      stop in interface ru.bitel.bgbilling.kernel.application.server.Lifecycle
      Throws:
      Exception
    • newThreadContext

      public ru.bitel.bgbilling.kernel.container.managed.ServerContext newThreadContext()
      Specified by:
      newThreadContext in interface ru.bitel.common.worker.ThreadContextFactory<ru.bitel.bgbilling.kernel.container.managed.ServerContext>
    • getCommandsHelp

      public String getCommandsHelp()
      Specified by:
      getCommandsHelp in interface ru.bitel.bgbilling.kernel.application.server.CommandListener
    • executeCommand

      public String executeCommand(String cmd, String param)
      Specified by:
      executeCommand in interface ru.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

      public TvAccountRuntimeMap getTvAccountRuntimeMap()
    • getTvAccountSpecRuntimeMap

      public TvAccountSpecRuntimeMap getTvAccountSpecRuntimeMap()
    • getProductSpecRuntimeMap

      public ProductSpecRuntimeMap getProductSpecRuntimeMap()
    • getTvDeviceRuntimeMap

      public TvDeviceRuntimeMap getTvDeviceRuntimeMap()