Package com.landawn.abacus.util
Class AddrUtil
java.lang.Object
com.landawn.abacus.util.AddrUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic InetSocketAddress
getAddressFromURL
(URL url) Gets the address from URL.static List<InetSocketAddress>
getAddressList
(String servers) Split a string containing whitespace or comma separated host or IP addresses and port numbers of the form "host:port host2:port" or "host:port, host2:port" into a List of InetSocketAddress instances suitable for instantiating a MemcachedClient.static List<InetSocketAddress>
getAddressList
(Collection<String> servers) Gets the address list.static List<InetSocketAddress>
getAddressListFromURL
(Collection<URL> urls) Gets the address list from URL.getServerList
(String servers) Split a string containing whitespace or comma separated host or IP addresses and port numbers of the form "host:port host2:port" or "host:port, host2:port" into a List of server.
-
Method Details
-
getServerList
Split a string containing whitespace or comma separated host or IP addresses and port numbers of the form "host:port host2:port" or "host:port, host2:port" into a List of server.- Parameters:
servers
-- Returns:
-
getAddressList
Split a string containing whitespace or comma separated host or IP addresses and port numbers of the form "host:port host2:port" or "host:port, host2:port" into a List of InetSocketAddress instances suitable for instantiating a MemcachedClient. Note that colon-delimited IPv6 is also supported. For example: ::1:11211- Parameters:
servers
-- Returns:
-
getAddressList
Gets the address list.- Parameters:
servers
-- Returns:
-
getAddressFromURL
Gets the address from URL.- Parameters:
url
-- Returns:
-
getAddressListFromURL
Gets the address list from URL.- Parameters:
urls
-- Returns:
-