Class RadiusClient
java.lang.Object
ru.bitel.bgbilling.kernel.network.radius.RadiusClient
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRadiusClient(int sourcePort, InetAddress host, int port, byte[] secret) Deprecated.RadiusClient(int sourcePort, InetAddress host, int port, byte[] secret, Setup setup, ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger, boolean logCoA, boolean logPoD) Deprecated.RadiusClient(String sourceHost, int sourcePort, InetAddress host, int port, byte[] secret) RadiusClient(String sourceHost, int sourcePort, InetAddress host, int port, byte[] secret, Setup setup, ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger, boolean logCoA, boolean logPoD) RadiusClient(InetAddress host, int port, byte[] secret) RadiusClient(InetAddress host, int port, byte[] secret, Setup setup, ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger, boolean logCoA, boolean logPoD) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateRequest(byte code) voiddestroy()protected voidfinalize()request(RadiusPacket packet) request(RadiusPacket packet, long timeout, TimeUnit unit) booleansend(RadiusPacket packet) booleansend(RadiusPacket packet, long timeout, TimeUnit unit) sendAsync(RadiusPacket packet) voidsetConnectionId(long connectionId) voidvoidsetReuseAddress(boolean reuseAddress) protected intwriteRequestLog(RadiusPacket packet, ByteBuffer data, Date time) protected voidwriteResponseLog(ru.bitel.bgbilling.kernel.container.managed.ServerContext context, RadiusPacket packet, ByteBuffer data, Date time, int deviceId, int connectionLogEntryId)
-
Constructor Details
-
RadiusClient
-
RadiusClient
Deprecated. -
RadiusClient
-
RadiusClient
public RadiusClient(InetAddress host, int port, byte[] secret, Setup setup, ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger, boolean logCoA, boolean logPoD) -
RadiusClient
@Deprecated public RadiusClient(int sourcePort, InetAddress host, int port, byte[] secret, Setup setup, ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger, boolean logCoA, boolean logPoD) Deprecated. -
RadiusClient
public RadiusClient(String sourceHost, int sourcePort, InetAddress host, int port, byte[] secret, Setup setup, ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger, boolean logCoA, boolean logPoD)
-
-
Method Details
-
setReuseAddress
public void setReuseAddress(boolean reuseAddress) -
createRequest
-
createAccountingRequest
-
createModifyRequest
-
createDisconnectRequest
-
send
public boolean send(RadiusPacket packet) throws InvalidKeyException, SocketException, NoSuchAlgorithmException, InterruptedException, ExecutionException, TimeoutException -
send
public boolean send(RadiusPacket packet, long timeout, TimeUnit unit) throws InvalidKeyException, SocketException, NoSuchAlgorithmException, InterruptedException, ExecutionException, TimeoutException -
sendAsync
public Future<Boolean> sendAsync(RadiusPacket packet) throws InvalidKeyException, SocketException, NoSuchAlgorithmException -
request
public RadiusPacket request(RadiusPacket packet) throws InvalidKeyException, SocketException, NoSuchAlgorithmException, InterruptedException, ExecutionException, TimeoutException -
request
public RadiusPacket request(RadiusPacket packet, long timeout, TimeUnit unit) throws InvalidKeyException, SocketException, NoSuchAlgorithmException, InterruptedException, ExecutionException, TimeoutException -
setNas
-
setConnectionId
public void setConnectionId(long connectionId) -
writeRequestLog
-
writeResponseLog
protected void writeResponseLog(ru.bitel.bgbilling.kernel.container.managed.ServerContext context, RadiusPacket packet, ByteBuffer data, Date time, int deviceId, int connectionLogEntryId) -
beforeReceive
-
destroy
public void destroy() -
finalize
-