public class AddrUtil extends Object
| 构造器和说明 |
|---|
AddrUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<InetSocketAddress> |
getAddresses(String s)
Split a string in the form of "host:port host2:port" into a List of
InetSocketAddress instances suitable for instantiating a MemcachedClient.
|
static Map<InetSocketAddress,InetSocketAddress> |
getAddressMap(String s)
Split a string in the form of
"host1:port1,host2:port2 host3:port3,host4:port4" into a Map of
InetSocketAddress instances suitable for instantiating a
MemcachedClient,map's key is the main memcached node,and value is the
standby node for main node.
|
static InetSocketAddress |
getOneAddress(String server) |
public static Map<InetSocketAddress,InetSocketAddress> getAddressMap(String s)
s - public static List<InetSocketAddress> getAddresses(String s)
public static InetSocketAddress getOneAddress(String server)
Copyright © 2013. All Rights Reserved.