Package org.h2.util

Class NetworkConnectionInfo

java.lang.Object
org.h2.util.NetworkConnectionInfo

public final class NetworkConnectionInfo extends Object
Network connection information.
  • Field Details

    • server

      private final String server
    • clientAddr

      private final byte[] clientAddr
    • clientPort

      private final int clientPort
    • clientInfo

      private final String clientInfo
  • Constructor Details

    • NetworkConnectionInfo

      public NetworkConnectionInfo(String server, String clientAddr, int clientPort) throws UnknownHostException
      Creates new instance of network connection information.
      Parameters:
      server - the protocol and port of the server
      clientAddr - the client address
      clientPort - the client port
      Throws:
      UnknownHostException - if clientAddr cannot be resolved
    • NetworkConnectionInfo

      public NetworkConnectionInfo(String server, byte[] clientAddr, int clientPort, String clientInfo)
      Creates new instance of network connection information.
      Parameters:
      server - the protocol and port of the server
      clientAddr - the client address
      clientPort - the client port
      clientInfo - additional client information, or null
  • Method Details

    • getServer

      public String getServer()
      Returns the protocol and port of the server.
      Returns:
      the protocol and port of the server
    • getClientAddr

      public byte[] getClientAddr()
      Returns the client address.
      Returns:
      the client address
    • getClientPort

      public int getClientPort()
      Returns the client port.
      Returns:
      the client port
    • getClientInfo

      public String getClientInfo()
      Returns additional client information, or null.
      Returns:
      additional client information, or null
    • getClient

      public String getClient()
      Returns the client address and port.
      Returns:
      the client address and port