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 ; }
Extracts dataPort socket address from Alluxio representation of network address .