public class RadiusClient
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RadiusClient.ResponseFuture<V> |
Constructor and Description |
---|
RadiusClient(java.net.InetAddress host,
int port,
byte[] secret) |
RadiusClient(java.net.InetAddress host,
int port,
byte[] secret,
Setup setup,
ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger,
boolean logCoA,
boolean logPoD) |
RadiusClient(int sourcePort,
java.net.InetAddress host,
int port,
byte[] secret)
Deprecated.
|
RadiusClient(int sourcePort,
java.net.InetAddress host,
int port,
byte[] secret,
Setup setup,
ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger,
boolean logCoA,
boolean logPoD)
Deprecated.
|
RadiusClient(java.lang.String sourceHost,
int sourcePort,
java.net.InetAddress host,
int port,
byte[] secret) |
RadiusClient(java.lang.String sourceHost,
int sourcePort,
java.net.InetAddress host,
int port,
byte[] secret,
Setup setup,
ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger,
boolean logCoA,
boolean logPoD) |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeReceive(java.nio.ByteBuffer bb) |
RadiusPacket |
createAccountingRequest() |
RadiusPacket |
createDisconnectRequest() |
RadiusPacket |
createModifyRequest() |
RadiusPacket |
createRequest(byte code) |
void |
destroy() |
protected void |
finalize() |
RadiusPacket |
request(RadiusPacket packet) |
RadiusPacket |
request(RadiusPacket packet,
long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
send(RadiusPacket packet) |
boolean |
send(RadiusPacket packet,
long timeout,
java.util.concurrent.TimeUnit unit) |
java.util.concurrent.Future<java.lang.Boolean> |
sendAsync(RadiusPacket packet) |
void |
setConnectionId(long connectionId) |
void |
setNas(Idable nas) |
void |
setReuseAddress(boolean reuseAddress) |
protected int |
writeRequestLog(RadiusPacket packet,
java.nio.ByteBuffer data,
java.util.Date time) |
protected void |
writeResponseLog(ru.bitel.bgbilling.kernel.container.managed.ServerContext context,
RadiusPacket packet,
java.nio.ByteBuffer data,
java.util.Date time,
int deviceId,
int connectionLogEntryId) |
public RadiusClient(java.net.InetAddress host, int port, byte[] secret)
@Deprecated public RadiusClient(int sourcePort, java.net.InetAddress host, int port, byte[] secret)
public RadiusClient(java.lang.String sourceHost, int sourcePort, java.net.InetAddress host, int port, byte[] secret)
public RadiusClient(java.net.InetAddress host, int port, byte[] secret, Setup setup, ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger, boolean logCoA, boolean logPoD)
@Deprecated public RadiusClient(int sourcePort, java.net.InetAddress host, int port, byte[] secret, Setup setup, ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger, boolean logCoA, boolean logPoD)
public RadiusClient(java.lang.String sourceHost, int sourcePort, java.net.InetAddress host, int port, byte[] secret, Setup setup, ru.bitel.bgbilling.kernel.network.radius.datalog.hourly.RadiusHourlyDataLogger dataLogger, boolean logCoA, boolean logPoD)
public void setReuseAddress(boolean reuseAddress)
public RadiusPacket createRequest(byte code)
public RadiusPacket createAccountingRequest()
public RadiusPacket createModifyRequest()
public RadiusPacket createDisconnectRequest()
public boolean send(RadiusPacket packet) throws java.security.InvalidKeyException, java.net.SocketException, java.security.NoSuchAlgorithmException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.security.InvalidKeyException
java.net.SocketException
java.security.NoSuchAlgorithmException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public boolean send(RadiusPacket packet, long timeout, java.util.concurrent.TimeUnit unit) throws java.security.InvalidKeyException, java.net.SocketException, java.security.NoSuchAlgorithmException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.security.InvalidKeyException
java.net.SocketException
java.security.NoSuchAlgorithmException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public java.util.concurrent.Future<java.lang.Boolean> sendAsync(RadiusPacket packet) throws java.security.InvalidKeyException, java.net.SocketException, java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.net.SocketException
java.security.NoSuchAlgorithmException
public RadiusPacket request(RadiusPacket packet) throws java.security.InvalidKeyException, java.net.SocketException, java.security.NoSuchAlgorithmException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.security.InvalidKeyException
java.net.SocketException
java.security.NoSuchAlgorithmException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public RadiusPacket request(RadiusPacket packet, long timeout, java.util.concurrent.TimeUnit unit) throws java.security.InvalidKeyException, java.net.SocketException, java.security.NoSuchAlgorithmException, java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.security.InvalidKeyException
java.net.SocketException
java.security.NoSuchAlgorithmException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void setNas(Idable nas)
public void setConnectionId(long connectionId)
protected int writeRequestLog(RadiusPacket packet, java.nio.ByteBuffer data, java.util.Date time)
protected void writeResponseLog(ru.bitel.bgbilling.kernel.container.managed.ServerContext context, RadiusPacket packet, java.nio.ByteBuffer data, java.util.Date time, int deviceId, int connectionLogEntryId)
protected void beforeReceive(java.nio.ByteBuffer bb)
public void destroy()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable