public class RpcUtils extends Object
| Constructor and Description |
|---|
RpcUtils() |
| Modifier and Type | Method and Description |
|---|---|
static InetSocketAddress |
createSocketAddr(String host,
int port)
Util method to build socket addr from either:
|
static InetSocketAddress |
createUnresolved(String addr) |
static InetSocketAddress |
getConnectAddress(InetSocketAddress addr)
Returns InetSocketAddress that a client can use to
connect to the server.
|
static String |
normalizeInetSocketAddress(InetSocketAddress addr) |
public static String normalizeInetSocketAddress(InetSocketAddress addr)
public static InetSocketAddress createSocketAddr(String host, int port)
public static InetSocketAddress getConnectAddress(InetSocketAddress addr)
addr - of a listenerpublic static InetSocketAddress createUnresolved(String addr)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.