public class InetRadiusHelperProcessor extends InetRadiusProcessor
InetRadiusProcessor.AuthAcceptEventRadiusProcessor.ConnectionIterator<C extends ru.bitel.bgbilling.kernel.network.radius.nas.NasConnection<?>,N extends ru.bitel.bgbilling.kernel.network.radius.nas.Nas<C,?,?>>access, ACCESS_CODE, accounting, AGENT_CIRCUIT_ID, AGENT_REMOTE_ID, AGENT_SVLAN, applicationId, DEVICE_STATE, IDENTIFIER, INTERFACE_ID, MAC_ADDRESS, MAC_ADDRESS_BYTES, PARENT_ACCT_SESSION_ID, REALM_DEFAULT, REALM_DISABLE, SERVICE_NAME, VLAN_IDaccountingIgnoreCount, accountingStartCounter, accountingStopCounter, accountingUpdateCounter, accountingUpdateIgnoreCount, antispamIgnoreCount, authenticationAcceptCounter, authenticationIgnoreCount, authenticationRejectCounter, forwardAccessAnswer, forwardAccessRequest, forwardAccountingResponse, forwardAfterPreprocess, forwardAfterProcess, module, nasList, setup| Constructor and Description |
|---|
InetRadiusHelperProcessor(Setup setup,
ru.bitel.bgbilling.modules.inet.access.Access access,
ru.bitel.bgbilling.modules.inet.accounting.Accounting accounting) |
| Modifier and Type | Method and Description |
|---|---|
protected InetNasConnection |
accounting(RadiusListenerWorker<InetNas> req,
InetNas nas,
RadiusPacket request,
RadiusPacket response,
ConnectionSet connectionSet,
java.util.Date time)
Обработка Accounting-Request по умолчанию.
|
protected ru.bitel.bgbilling.modules.inet.runtime.ServSearchResult |
findServRuntime(ru.bitel.bgbilling.modules.inet.runtime.InetApplication application,
RadiusListenerWorker<?> req,
InetNas nas,
java.lang.String userName,
RadiusPacket request,
java.util.Date time)
Вызывается при Access-Request и при Accounting-Request, если сессии еще нет.
|
protected InetConnection |
getConnection(ru.bitel.bgbilling.modules.inet.radius.InetRadiusHelperProcessor.Entry entry) |
protected void |
reloadNasList()
Корректная перезагрузка насов (конфига, инспекторов и т.п.).
|
void |
start() |
accessRequestImpl, addToLog, authentication, authenticationImpl, authorization, destroy, executeCommand, getCommandsHelp, getModuleId, getNas, getNasConnection, getStatus, init, insertToLog, newRadiusSession, notify, postprocessAccessRequest, postprocessAccountingRequest, preprocessAccessRequest, preprocessAccountingRequest, reloadConfig, stopaccessRequest, accountingRequest, afterNasListReload, connections, getAccessAcceptPerMinute, getAccessRejectPerMinute, getAccessRequestIgnorePerMinute, getAccountingStartPerMinute, getAccountingStopPerMinute, getAccountingUpdateIgnorePerMinute, getAccountingUpdatePerMinute, getActiveConnectionsCount, getAntispamIgnorePerMinute, getConnectionList, getNasList, getStoppedConnectionCount, getSuspendedConnectionCount, newInstance, processConnections@ConstructorProperties(value={"setup","access","accounting"})
public InetRadiusHelperProcessor(Setup setup,
ru.bitel.bgbilling.modules.inet.access.Access access,
ru.bitel.bgbilling.modules.inet.accounting.Accounting accounting)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void start()
throws java.lang.Exception
start in interface ru.bitel.bgbilling.kernel.application.server.Lifecyclestart in class InetRadiusProcessorjava.lang.Exceptionprotected void reloadNasList()
RadiusProcessorreloadNasList in class InetRadiusProcessorprotected InetNasConnection accounting(RadiusListenerWorker<InetNas> req, InetNas nas, RadiusPacket request, RadiusPacket response, ConnectionSet connectionSet, java.util.Date time)
RadiusProcessoraccounting in class RadiusProcessor<InetNasConnection,InetNas,InetRadiusSessionParams>req - TODOconnectionSet - экземпляры соединений с БД: master, slave, trashprotected ru.bitel.bgbilling.modules.inet.runtime.ServSearchResult findServRuntime(ru.bitel.bgbilling.modules.inet.runtime.InetApplication application,
RadiusListenerWorker<?> req,
InetNas nas,
java.lang.String userName,
RadiusPacket request,
java.util.Date time)
InetRadiusProcessorfindServRuntime in class InetRadiusProcessorprotected InetConnection getConnection(ru.bitel.bgbilling.modules.inet.radius.InetRadiusHelperProcessor.Entry entry)