code: public static SocketAddress getDataPortSocketAddress(WorkerNetAddress netAddress,
        AlluxioConfiguration conf) {
      SocketAddress address;
      if (NettyUtils.isDomainSocketSupported(netAddress, conf)) {
        address = new DomainSocketAddress(netAddress.getDomainSocketPath());
      } else {
        String host = netAddress.getHost();
        int port = netAddress.getDataPort();
        address = new InetSocketAddress(host, port);
      }
      return address;
    }
docs: Extracts dataPort socket address from Alluxio representation of network address.
  
  @param netAddress the input network address representation
  @param conf Alluxio configuration
  @return the socket address