Class IPNResourceManager


public class IPNResourceManager
extends IPResourceRangeManager
  • Constructor Details

    • IPNResourceManager

      public IPNResourceManager​(java.sql.Connection con, int mid)
  • Method Details

    • getResourceUse

      public java.util.List<IPResourceRangeUse> getResourceUse​(int resourceId, int itemId, long ip1, long ip2)
    • getBusyResourceIterator

      public java.lang.Iterable<IPResourceRange> getBusyResourceIterator​(int categoryId, java.util.Calendar date, long ip1, long ip2, boolean mask)
    • getFreeResourceIterator

      public java.lang.Iterable<IPResourceRange> getFreeResourceIterator​(int categoryId, java.util.Calendar onDate) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • checkResourceOutRange

      public boolean checkResourceOutRange​(int resourceId, java.util.Calendar date1, java.util.Calendar date2)
    • wasResourceUsed

      public boolean wasResourceUsed​(java.lang.String resourceId)
    • resourceAnalize

      @Deprecated public int resourceAnalize​(AddressRange addressOld, AddressRange address, java.util.Map<java.lang.String,​IPNResourceManager.NumberChange> numberMap) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGException
      Deprecated.
      Использовать resourceAnalize( AddressRange addressOld, AddressRange address )
      Parameters:
      addressOld -
      address -
      numberMap -
      Returns:
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGException
    • resourceAnalize

      public int resourceAnalize​(AddressRange addressOld, AddressRange address) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
      ru.bitel.bgbilling.common.BGException
    • freeResources

      public void freeResources​(int cid)
    • closeResourceUse

      public void closeResourceUse​(int cid, java.util.Date date)
    • syncResourceUse

      public void syncResourceUse() throws ru.bitel.bgbilling.common.BGException
      Overrides:
      syncResourceUse in class ResourceManager<IPResourceRange>
      Throws:
      ru.bitel.bgbilling.common.BGException