Class RadiusClient
java.lang.Object
ru.bitel.bgbilling.kernel.network.radius.RadiusClient
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionRadiusClient
(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 void
void
close()
createRequest
(byte code) void
destroy()
request
(RadiusPacket packet) request
(RadiusPacket packet, long timeout, TimeUnit unit) boolean
send
(RadiusPacket packet) boolean
send
(RadiusPacket packet, long timeout, TimeUnit unit) sendAsync
(RadiusPacket packet) void
setConnectionId
(long connectionId) void
void
setReuseAddress
(boolean reuseAddress) protected int
writeRequestLog
(RadiusPacket packet, ByteBuffer data, Date time) protected void
writeResponseLog
(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() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-