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