- createSocketAddr
Create an InetSocketAddress from the given target string and default port. If
the string cannot be p
- getConnectAddress
Returns InetSocketAddress that a client can use to connect to the server.
Server.getListenerAddress(
- createSocketAddrForHost
Create a socket address with the given host and port. The hostname might be
replaced with another ho
- getDefaultSocketFactory
Get the default socket factory as specified by the configuration parameter
hadoop.rpc.socket.factor
- getHostPortString
Compose a "host:port" string from the address.
- addStaticResolution
Adds a static resolution for host. This can be used for setting up hostnames
with names that are fak
- connect
Like NetUtils#connect(Socket,SocketAddress,int) but also takes a local address
and port to bind the
- getInputStream
Return a SocketInputWrapper for the socket and set the given timeout. If the
socket does not have an
- getOutputStream
Returns OutputStream for the socket. If the socket has an associated
SocketChannel then it returns a
- getSocketFactory
Get the socket factory for the given class according to its configuration
parameterhadoop.rpc.socket
- isLocalAddress
Given an InetAddress, checks to see if the address is a local address, by
comparing the address with
- getHostname
Return hostname without throwing exception.