Class IPNResourceManager


public class IPNResourceManager extends IPResourceRangeManager
  • Constructor Details

    • IPNResourceManager

      public IPNResourceManager(Connection con, int mid)
  • Method Details

    • getResourceUse

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

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

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

      public boolean checkResourceOutRange(int resourceId, Calendar date1, Calendar date2)
    • wasResourceUsed

      public boolean wasResourceUsed(String resourceId)
    • resourceAnalize

      @Deprecated public int resourceAnalize(AddressRange addressOld, AddressRange address, Map<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, Date date)
    • syncResourceUse

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