Package ru.bitel.bgbilling.modules.inet.common.bean

# Class InetConnection

java.lang.Object
ru.bitel.common.model.ContractId
ru.bitel.bgbilling.modules.inet.common.bean.InetConnection

All Implemented Interfaces:
  `Serializable`, `Cloneable`, `ContractIdable`

public class InetConnection extends ContractId implements Serializable, Cloneable

See Also:
  - Serialized Form

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `CREATED_BY_LOG_PROCESS`
  `static final int`
  `TYPE_CLOSED_BY_TIMEOUT`
  `static final int`
  `TYPE_DEVICE_STATE_CHANGED`
  `static final int`
  `TYPE_DHCP_DUAL_STACK`
  `static final int`
  `TYPE_DHCPv4`
  `static final int`
  `TYPE_DHCPv6`
  `static final int`
  `TYPE_DISABLE_AT_START`
  `static final int`
  `TYPE_FLOW`
  `static final int`
  `TYPE_IP_SUBSCRIPTION`
  `static final int`
  `TYPE_NOT_FROM_START`
  `static final int`
  `TYPE_RADIUS`
  `static final int`
  `TYPE_RADIUS_DUAL_STACK`
  `static final int`
  `TYPE_RADIUSv4`
  `static final int`
  `TYPE_RADIUSv6`
  `static final int`
  `TYPE_SPLITTED`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `InetConnection()`
  `InetConnection(InetSessionLog session)`
  Создание connection для нового соединения

- ## Method Summary

  Modifier and Type
  Method
  Description
  `InetConnection`
  `clone()`
  `boolean`
  `equals(Object obj)`
  `int`
  `getAccessCode()`
  `String`
  `getAcctSessionId()`
  `int`
  `getAgentDeviceId()`
  `String`
  `getCalledStationId()`
  `String`
  `getCallingStationId()`
  `Object`
  `getCircuitId()`
  `Date`
  `getConnectionStart()`
  `InetConnectionStatus`
  `getConnectionStatus()`
  `Date`
  `getConnectionStop()`
  `byte[]`
  `getDelegatedPrefix()`
  `short`
  `getDelegatedPrefixLength()`
  `int`
  `getDelegatedPrefixResourceId()`
  `int`
  `getDeviceId()`
  `Set<Integer>`
  `getDeviceOptions()`
  Текущие опции для соединения.
  Нужно для call сессий (которых может быть несколко на один сервис)
  `int`
  `getDevicePort()`
  `short`
  `getDeviceState()`
  `long`
  `getId()`
  `byte[]`
  `getInetAddressBytes()`
  `int`
  `getIpResourceId()`
  `long`
  `getParentConnectionId()`
  `byte[]`
  `getPrefix()`
  `short`
  `getPrefixLength()`
  `int`
  `getPrefixResourceId()`
  `List<IpNet>`
  `getRouteList()`
  `int`
  `getServId()`
  `int`
  `getType()`
  `String`
  `getUsername()`
  `int`
  `hashCode()`
  hashCode является connectionId - чтобы можно было в hashmap хранить по одному connectionId
  `static 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)`
  `InetConnection`
  `setConnectionStatus(InetConnectionStatus status)`
  `void`
  `setConnectionStop(Date connectionStop)`
  `InetConnection`
  `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)`
  `String`
  `toString()`

  ### Methods inherited from class ru.bitel.common.model.ContractId

  `getContractId`

  ### Methods inherited from class java.lang.Object

  `finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### TYPE_NOT_FROM_START

    public static final int TYPE_NOT_FROM_START
    See Also:
      - Constant Field Values

  - ### TYPE_SPLITTED

    public static final int TYPE_SPLITTED
    See Also:
      - Constant Field Values

  - ### TYPE_CLOSED_BY_TIMEOUT

    public static final int TYPE_CLOSED_BY_TIMEOUT
    See Also:
      - Constant Field Values

  - ### TYPE_DEVICE_STATE_CHANGED

    public static final int TYPE_DEVICE_STATE_CHANGED
    See Also:
      - Constant Field Values

  - ### CREATED_BY_LOG_PROCESS

    public static final int CREATED_BY_LOG_PROCESS
    See Also:
      - Constant Field Values

  - ### TYPE_DISABLE_AT_START

    public static final int TYPE_DISABLE_AT_START
    See Also:
      - Constant Field Values

  - ### TYPE_FLOW

    public static final int TYPE_FLOW
    See Also:
      - Constant Field Values

  - ### TYPE_RADIUS

    public static final int TYPE_RADIUS
    See Also:
      - Constant Field Values

  - ### TYPE_DHCPv4

    public static final int TYPE_DHCPv4
    See Also:
      - Constant Field Values

  - ### TYPE_DHCPv6

    public static final int TYPE_DHCPv6
    See Also:
      - Constant Field Values

  - ### TYPE_IP_SUBSCRIPTION

    public static final int TYPE_IP_SUBSCRIPTION
    See Also:
      - Constant Field Values

  - ### TYPE_RADIUSv4

    public static final int TYPE_RADIUSv4
    See Also:
      - Constant Field Values

  - ### TYPE_RADIUSv6

    public static final int TYPE_RADIUSv6
    See Also:
      - Constant Field Values

  - ### TYPE_RADIUS_DUAL_STACK

    public static final int TYPE_RADIUS_DUAL_STACK
    See Also:
      - Constant Field Values

  - ### TYPE_DHCP_DUAL_STACK

    public static final int TYPE_DHCP_DUAL_STACK
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### InetConnection

    public InetConnection()

  - ### InetConnection

    public InetConnection(InetSessionLog session)
    Создание connection для нового соединения
    Parameters:
      `session` -

- ## Method Details

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    hashCode является connectionId - чтобы можно было в hashmap хранить по одному connectionId
    Overrides:
      `hashCode` in class `Object`

  - ### getId

    public long getId()

  - ### setId

    public void setId(long id)

  - ### getConnectionStart

    public Date getConnectionStart()

  - ### setConnectionStart

    public void setConnectionStart(Date connectionStart)

  - ### getConnectionStop

    public Date getConnectionStop()

  - ### setConnectionStop

    public void setConnectionStop(Date connectionStop)

  - ### setContractId

    public InetConnection setContractId(int contractId)
    Overrides:
      `setContractId` in class `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

    public String getAcctSessionId()

  - ### setAcctSessionId

    public void setAcctSessionId(String acctSessionId)

  - ### getUsername

    public String getUsername()

  - ### setUsername

    public void setUsername(String username)

  - ### getCalledStationId

    public String getCalledStationId()

  - ### setCalledStationId

    public void setCalledStationId(String calledStationId)

  - ### getCallingStationId

    public String getCallingStationId()

  - ### setCallingStationId

    public void setCallingStationId(String callingStationId)

  - ### getCircuitId

    public Object getCircuitId()

  - ### setCircuitId

    public void setCircuitId(Object circuitId)

  - ### getIpResourceId

    public int getIpResourceId()

  - ### setIpResourceId

    public void setIpResourceId(int ipResourceId)

  - ### getInetAddressBytes

    public byte[] getInetAddressBytes()

  - ### setInetAddressBytes

    public void setInetAddressBytes(byte[] inetAddressBytes)

  - ### getRouteList

    public List<IpNet> getRouteList()

  - ### setRouteList

    public void setRouteList(List<IpNet> routeList)

  - ### getType

    public int getType()

  - ### setType

    public void setType(int type)

  - ### getAccessCode

    public int getAccessCode()

  - ### setAccessCode

    public void setAccessCode(int accessCode)

  - ### getConnectionStatus

    public InetConnectionStatus getConnectionStatus()

  - ### setConnectionStatus

    public InetConnection setConnectionStatus(InetConnectionStatus status)

  - ### getDeviceState

    public short getDeviceState()

  - ### setDeviceState

    public void setDeviceState(short deviceState)

  - ### getDeviceOptions

    public Set<Integer> getDeviceOptions()
    Текущие опции для соединения.
    Нужно для call сессий (которых может быть несколко на один сервис)
    Returns:

  - ### setDeviceOptions

    public void setDeviceOptions(Set<Integer> deviceOptions)
    Установка текущих опций для соединения.
    Parameters:
      `deviceOptions` -

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### setType

    public static void setType(InetConnection connection, int type, boolean set)

  - ### isType

    public static boolean isType(InetConnection connection, int type)

  - ### clone

    public InetConnection clone()
    Overrides:
      `clone` in class `Object`

  - ### 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)