public class IPNResourceManager
extends bitel.billing.server.admin.resource.bean.ip.IPResourceRangeManager
| Modifier and Type | Class and Description |
|---|---|
static class |
IPNResourceManager.NumberChange |
con, mid, tableName| Constructor and Description |
|---|
IPNResourceManager(java.sql.Connection con,
int mid) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkResourceOutRange(int resourceId,
java.util.Calendar date1,
java.util.Calendar date2) |
void |
closeResourceUse(int cid,
java.util.Date date) |
void |
freeResources(int cid) |
java.lang.Iterable<bitel.billing.server.admin.resource.bean.ip.IPResourceRange> |
getBusyResourceIterator(int categoryId,
java.util.Calendar date,
long ip1,
long ip2,
boolean mask) |
java.lang.Iterable<bitel.billing.server.admin.resource.bean.ip.IPResourceRange> |
getFreeResourceIterator(int categoryId,
java.util.Calendar onDate) |
java.util.List<bitel.billing.server.admin.resource.bean.ip.IPResourceRangeUse> |
getResourceUse(int resourceId,
int itemId,
long ip1,
long ip2) |
int |
resourceAnalize(AddressRange addressOld,
AddressRange address) |
int |
resourceAnalize(AddressRange addressOld,
AddressRange address,
java.util.Map<java.lang.String,IPNResourceManager.NumberChange> numberMap)
Deprecated.
Использовать resourceAnalize( AddressRange addressOld, AddressRange address )
|
void |
syncResourceUse() |
boolean |
wasResourceUsed(java.lang.String resourceId) |
addFilters, addResources, checkResource, deleteResource, getResource, getResourceFromRs, getResourceIterator, getResourceList, getResourceListByIds, getResourceUseFromRs, getTableName, installModule, uninstallModule, updateResource, updateResourcePeriodchangeResourceCategory, getResourceCount, loadStandartResourceFromRs, newResourceManagerpublic java.util.List<bitel.billing.server.admin.resource.bean.ip.IPResourceRangeUse> getResourceUse(int resourceId,
int itemId,
long ip1,
long ip2)
public java.lang.Iterable<bitel.billing.server.admin.resource.bean.ip.IPResourceRange> getBusyResourceIterator(int categoryId,
java.util.Calendar date,
long ip1,
long ip2,
boolean mask)
public java.lang.Iterable<bitel.billing.server.admin.resource.bean.ip.IPResourceRange> getFreeResourceIterator(int categoryId,
java.util.Calendar onDate)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic boolean checkResourceOutRange(int resourceId,
java.util.Calendar date1,
java.util.Calendar date2)
public boolean wasResourceUsed(java.lang.String resourceId)
@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
addressOld - address - numberMap - ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGExceptionpublic int resourceAnalize(AddressRange addressOld, AddressRange address) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void freeResources(int cid)
public void closeResourceUse(int cid,
java.util.Date date)
public void syncResourceUse()
throws ru.bitel.bgbilling.common.BGException
syncResourceUse in class ResourceManager<bitel.billing.server.admin.resource.bean.ip.IPResourceRange>ru.bitel.bgbilling.common.BGException