public class InetConnection
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
CREATED_BY_LOG_PROCESS |
static int |
STATUS_ALIVE |
static int |
STATUS_CLOSED |
static int |
STATUS_FINISHED |
static int |
STATUS_SUSPENDED |
static int |
STATUS_WAIT |
static int |
TYPE_CLOSED_BY_TIMEOUT |
static int |
TYPE_DEVICE_STATE_CHANGED |
static int |
TYPE_DHCP_DUAL_STACK |
static int |
TYPE_DHCPv4 |
static int |
TYPE_DHCPv6 |
static int |
TYPE_DISABLE_AT_START |
static int |
TYPE_FLOW |
static int |
TYPE_IP_SUBSCRIPTION |
static int |
TYPE_NOT_FROM_START |
static int |
TYPE_RADIUS |
static int |
TYPE_RADIUS_DUAL_STACK |
static int |
TYPE_RADIUSv4 |
static int |
TYPE_RADIUSv6 |
static int |
TYPE_SPLITTED |
Constructor and Description |
---|
InetConnection() |
InetConnection(InetSessionLog session)
Создание connection для нового соединения
|
Modifier and Type | Method and Description |
---|---|
InetConnection |
clone() |
boolean |
equals(java.lang.Object obj) |
int |
getAccessCode() |
java.lang.String |
getAcctSessionId() |
int |
getAgentDeviceId() |
java.lang.String |
getCalledStationId() |
java.lang.String |
getCallingStationId() |
java.lang.Object |
getCircuitId() |
java.util.Date |
getConnectionStart() |
int |
getConnectionStatus() |
java.util.Date |
getConnectionStop() |
int |
getContractId() |
byte[] |
getDelegatedPrefix() |
short |
getDelegatedPrefixLength() |
int |
getDelegatedPrefixResourceId() |
int |
getDeviceId() |
java.util.Set<java.lang.Integer> |
getDeviceOptions()
Текущие опции для соединения.
|
int |
getDevicePort() |
short |
getDeviceState() |
long |
getId() |
byte[] |
getInetAddressBytes() |
int |
getIpResourceId() |
long |
getParentConnectionId() |
byte[] |
getPrefix() |
short |
getPrefixLength() |
int |
getPrefixResourceId() |
java.util.List<IpNet> |
getRouteList() |
int |
getServId() |
int |
getType() |
java.lang.String |
getUsername() |
int |
hashCode()
hashCode является connectionId - чтобы можно было в hashmap хранить по одному connectionId
|
static boolean |
isType(InetConnection connection,
int type) |
void |
setAccessCode(int accessCode) |
void |
setAcctSessionId(java.lang.String acctSessionId) |
void |
setAgentDeviceId(int agentDeviceId) |
void |
setCalledStationId(java.lang.String calledStationId) |
void |
setCallingStationId(java.lang.String callingStationId) |
void |
setCircuitId(java.lang.Object circuitId) |
void |
setConnectionStart(java.util.Date connectionStart) |
void |
setConnectionStatus(int status) |
void |
setConnectionStop(java.util.Date connectionStop) |
void |
setContractId(int contractId) |
void |
setDelegatedPrefix(byte[] delegatedPrefix) |
void |
setDelegatedPrefixLength(short delegatedPrefixLength) |
void |
setDelegatedPrefixResourceId(int delegatedPrefixResourceId) |
void |
setDeviceId(int deviceId) |
void |
setDeviceOptions(java.util.Set<java.lang.Integer> deviceOptions)
Установка текущих опций для соединения.
|
void |
setDevicePort(int devicePort) |
void |
setDeviceState(short deviceState) |
void |
setId(long id) |
void |
setInetAddressBytes(byte[] inetAddressBytes) |
void |
setIpResourceId(int ipResourceId) |
void |
setParentConnectionId(long parentConnectionId) |
void |
setPrefix(byte[] prefix) |
void |
setPrefixLength(short prefixLength) |
void |
setPrefixResourceId(int prefixResourceId) |
void |
setRouteList(java.util.List<IpNet> routeList) |
void |
setServId(int inetServId) |
static void |
setType(InetConnection connection,
int type,
boolean set) |
void |
setType(int type) |
void |
setUsername(java.lang.String username) |
java.lang.String |
toString() |
public static final int TYPE_NOT_FROM_START
public static final int TYPE_SPLITTED
public static final int TYPE_CLOSED_BY_TIMEOUT
public static final int TYPE_DEVICE_STATE_CHANGED
public static final int CREATED_BY_LOG_PROCESS
public static final int TYPE_DISABLE_AT_START
public static final int TYPE_FLOW
public static final int TYPE_RADIUS
public static final int TYPE_DHCPv4
public static final int TYPE_DHCPv6
public static final int TYPE_IP_SUBSCRIPTION
public static final int TYPE_RADIUSv4
public static final int TYPE_RADIUSv6
public static final int TYPE_RADIUS_DUAL_STACK
public static final int TYPE_DHCP_DUAL_STACK
public static final int STATUS_WAIT
public static final int STATUS_ALIVE
public static final int STATUS_SUSPENDED
public static final int STATUS_CLOSED
public static final int STATUS_FINISHED
public InetConnection()
public InetConnection(InetSessionLog session)
session
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public long getId()
public void setId(long id)
public java.util.Date getConnectionStart()
public void setConnectionStart(java.util.Date connectionStart)
public java.util.Date getConnectionStop()
public void setConnectionStop(java.util.Date connectionStop)
public int getContractId()
public void setContractId(int contractId)
public int getServId()
public void setServId(int inetServId)
public long getParentConnectionId()
public void setParentConnectionId(long parentConnectionId)
public int getDeviceId()
public void setDeviceId(int deviceId)
public int getDevicePort()
public void setDevicePort(int devicePort)
public int getAgentDeviceId()
public void setAgentDeviceId(int agentDeviceId)
public java.lang.String getAcctSessionId()
public void setAcctSessionId(java.lang.String acctSessionId)
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public java.lang.String getCalledStationId()
public void setCalledStationId(java.lang.String calledStationId)
public java.lang.String getCallingStationId()
public void setCallingStationId(java.lang.String callingStationId)
public java.lang.Object getCircuitId()
public void setCircuitId(java.lang.Object circuitId)
public int getIpResourceId()
public void setIpResourceId(int ipResourceId)
public byte[] getInetAddressBytes()
public void setInetAddressBytes(byte[] inetAddressBytes)
public java.util.List<IpNet> getRouteList()
public void setRouteList(java.util.List<IpNet> routeList)
public int getType()
public void setType(int type)
public int getAccessCode()
public void setAccessCode(int accessCode)
public int getConnectionStatus()
public void setConnectionStatus(int status)
public short getDeviceState()
public void setDeviceState(short deviceState)
public java.util.Set<java.lang.Integer> getDeviceOptions()
public void setDeviceOptions(java.util.Set<java.lang.Integer> deviceOptions)
deviceOptions
- public java.lang.String toString()
toString
in class java.lang.Object
public static void setType(InetConnection connection, int type, boolean set)
public static boolean isType(InetConnection connection, int type)
public InetConnection clone()
clone
in class java.lang.Object
public int getPrefixResourceId()
public void setPrefixResourceId(int prefixResourceId)
public byte[] getPrefix()
public void setPrefix(byte[] prefix)
public short getPrefixLength()
public void setPrefixLength(short prefixLength)
public int getDelegatedPrefixResourceId()
public void setDelegatedPrefixResourceId(int delegatedPrefixResourceId)
public byte[] getDelegatedPrefix()
public void setDelegatedPrefix(byte[] delegatedPrefix)
public short getDelegatedPrefixLength()
public void setDelegatedPrefixLength(short delegatedPrefixLength)