|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.rep.utilint.HostPortPair
public class HostPortPair
Encapsulates the functionality around dealing with HostPort string pairs having the format: host[:port]
Field Summary | |
---|---|
static String |
SEPARATOR
|
Constructor Summary | |
---|---|
HostPortPair()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SEPARATOR
Constructor Detail |
---|
public HostPortPair()
Method Detail |
---|
public static InetSocketAddress getSocket(String hostPortPair)
hostPortPair
-
IllegalArgumentException
- via ReplicatedEnvironment and Monitor
ctors.public static Set<InetSocketAddress> getSockets(String hostPortPairs)
hostPortPairs
-
public static String getString(String host, int port)
public static String getHostname(String hostPortPair)
public static int getPort(String hostPortPair)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |