Class IPNResourceManager
java.lang.Object
bitel.billing.server.admin.resource.bean.ResourceManager<IPResourceRange>
bitel.billing.server.admin.resource.bean.ip.IPResourceRangeManager
ru.bitel.bgbilling.modules.ipn.server.bean.IPNResourceManager
-
Nested Class Summary
-
Field Summary
Fields inherited from class bitel.billing.server.admin.resource.bean.ResourceManager
con, mid, tableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkResourceOutRange
(int resourceId, Calendar date1, Calendar date2) void
closeResourceUse
(int cid, Date date) void
freeResources
(int cid) getBusyResourceIterator
(int categoryId, Calendar date, long ip1, long ip2, boolean mask) getFreeResourceIterator
(int categoryId, Calendar onDate) getResourceUse
(int resourceId, int itemId, long ip1, long ip2) int
resourceAnalize
(AddressRange addressOld, AddressRange address) int
resourceAnalize
(AddressRange addressOld, AddressRange address, Map<String, IPNResourceManager.NumberChange> numberMap) Deprecated.Использовать resourceAnalize( AddressRange addressOld, AddressRange address )void
boolean
wasResourceUsed
(String resourceId) Methods inherited from class bitel.billing.server.admin.resource.bean.ip.IPResourceRangeManager
addFilters, addResources, checkResource, deleteResource, getResource, getResourceFromRs, getResourceIterator, getResourceList, getResourceListByIds, getResourceUseFromRs, getTableName, installModule, uninstallModule, updateResource, updateResourcePeriod
Methods inherited from class bitel.billing.server.admin.resource.bean.ResourceManager
changeResourceCategory, getResourceCount, loadStandartResourceFromRs, newResourceManager
-
Constructor Details
-
IPNResourceManager
-
-
Method Details
-
getResourceUse
-
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
-
wasResourceUsed
-
resourceAnalize
@Deprecated public int resourceAnalize(AddressRange addressOld, AddressRange address, Map<String, IPNResourceManager.NumberChange> numberMap) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGExceptionDeprecated.Использовать 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
-
syncResourceUse
public void syncResourceUse() throws ru.bitel.bgbilling.common.BGException- Overrides:
syncResourceUse
in classResourceManager<IPResourceRange>
- Throws:
ru.bitel.bgbilling.common.BGException
-