public class HostPortPair extends Object
| Constructor and Description |
|---|
HostPortPair() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getHostname(String hostPortPair)
Parses and returns the hostname string of a hostport pair
|
static int |
getPort(String hostPortPair)
Parses and returns the port of a hostport pair
|
static InetSocketAddress |
getSocket(String hostPortPair)
Parses a hostPort pair into the socket it represents.
|
static Set<InetSocketAddress> |
getSockets(String hostPortPairs)
Parses hostPort pairs into sockets it represents.
|
static String |
getString(String host,
int port) |
public static final String SEPARATOR
public static InetSocketAddress getSocket(String hostPortPair)
hostPortPair - IllegalArgumentException - via ReplicatedEnvironment and Monitor
ctors.public static Set<InetSocketAddress> getSockets(String hostPortPairs)
hostPortPairs - public static String getHostname(String hostPortPair)
public static int getPort(String hostPortPair)
Copyright © 2024. All rights reserved.