Class InetSessionDao
java.lang.Object
ru.bitel.bgbilling.modules.inet.server.bean.InetSessionDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancloseSession(long connectionId, long id, Date sessionStop) booleandelete(long sessionId) getAsLog(List<InetServType> servTypeDirectory, long sessionId) static Object[]getCall(Connection con, int moduleId, InetConnection connection, Date connectionStart, long parentConnectionId, boolean start, boolean acctSessIdAlwaysPresent, boolean ipAlwaysPresent, boolean nasPortCorrect) Получение активной call сессии, если таковая есть в базе
Она может там быть, если стартовала на другом accounting сервере.
Или если занесена запись после удачной авторизации.static Map<Integer,AccountingTrafficAmount> getCountersFromDB(Connection con, int moduleId, ru.bitel.bgbilling.modules.inet.server.runtime.InetServTypeRuntime servType, long sessionId) longstatic InetSessionvoidlist(long connectionId, int status) protected List<InetSessionLog>listAsLog(List<InetServType> servTypeDirectory, Set<Integer> deviceIds, Set<Integer> servTypeIds, Set<Integer> cids, String contract, Set<Integer> servIds, String login, long sessionId, String ip, String callingStation, Date timeFrom, Date timeTo, Page page, int idDivizor, int idRemainder, boolean onlyTopSessions) listAsLog(List<InetServType> servTypeDirectory, Set<Integer> deviceIds, Set<Integer> servTypeIds, Set<Integer> contractIds, String contract, Set<Integer> servIds, String login, String ip, String callingStation, Date timeFrom, Date timeTo, Page page, int idDivizor, int idRemainder, boolean onlyTopSessions) listAsLog(List<InetServType> servTypeDirectory, Set<Integer> deviceIds, Set<Integer> servTypeIds, Set<Integer> contractIds, Set<Integer> servIds, Date timeFrom, Date timeTo, Page page, int idDivizor, int idRemainder, boolean onlyTopSessions) Получение auto сервисов и связанных auto сессий, если они есть.Список активных call сессий
-
Constructor Details
-
InetSessionDao
- Throws:
ru.bitel.bgbilling.common.BGException
-
-
Method Details
-
insert
- Throws:
ru.bitel.bgbilling.common.BGException
-
getNextSessionId
- Throws:
SQLException
-
closeSession
public boolean closeSession(long connectionId, long id, Date sessionStop) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getSessionFromRS
- Throws:
SQLException
-
list
public List<InetSession> list(long connectionId, int status) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
listAuto
public List<Object> listAuto(int deviceId, Set<Integer> servTypeIds, Date date) throws ru.bitel.bgbilling.common.BGException Получение auto сервисов и связанных auto сессий, если они есть.- Parameters:
deviceId-servTypeIds-date-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
listCall
public List<Object[]> listCall(int deviceId, Set<Integer> servTypeIds) throws ru.bitel.bgbilling.common.BGException Список активных call сессий- Parameters:
deviceId- - код устройства - наса, к которому привязаны сессии (не сервисы, а сессии!)servTypeIds- - коды типов сервиса. обычно это все типы сервиса, у которыхInetServType.SESSION_INITIATION_CALL- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
getCall
public static Object[] getCall(Connection con, int moduleId, InetConnection connection, Date connectionStart, long parentConnectionId, boolean start, boolean acctSessIdAlwaysPresent, boolean ipAlwaysPresent, boolean nasPortCorrect) throws ru.bitel.bgbilling.common.BGException Получение активной call сессии, если таковая есть в базе
Она может там быть, если стартовала на другом accounting сервере.
Или если занесена запись после удачной авторизации.- Parameters:
deviceId- - код устройства - наса, к которому привязаны сессии (не сервисы, а сессии!)nasPort-inetServId-acctSessionId-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
listAsLog
public List<InetSessionLog> listAsLog(List<InetServType> servTypeDirectory, Set<Integer> deviceIds, Set<Integer> servTypeIds, Set<Integer> contractIds, Set<Integer> servIds, Date timeFrom, Date timeTo, Page page, int idDivizor, int idRemainder, boolean onlyTopSessions) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
listAsLog
public List<InetSessionLog> listAsLog(List<InetServType> servTypeDirectory, Set<Integer> deviceIds, Set<Integer> servTypeIds, Set<Integer> contractIds, String contract, Set<Integer> servIds, String login, String ip, String callingStation, Date timeFrom, Date timeTo, Page page, int idDivizor, int idRemainder, boolean onlyTopSessions) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getAsLog
public InetSessionLog getAsLog(List<InetServType> servTypeDirectory, long sessionId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
listAsLog
protected List<InetSessionLog> listAsLog(List<InetServType> servTypeDirectory, Set<Integer> deviceIds, Set<Integer> servTypeIds, Set<Integer> cids, String contract, Set<Integer> servIds, String login, long sessionId, String ip, String callingStation, Date timeFrom, Date timeTo, Page page, int idDivizor, int idRemainder, boolean onlyTopSessions) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getCountersFromDB
public static Map<Integer,AccountingTrafficAmount> getCountersFromDB(Connection con, int moduleId, ru.bitel.bgbilling.modules.inet.server.runtime.InetServTypeRuntime servType, long sessionId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
delete
public boolean delete(long sessionId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-