Class Util
- java.lang.Object
-
- com.mapr.org.apache.hadoop.metrics.spi.Util
-
@Public @Evolving public class Util extends java.lang.ObjectStatic utility methods
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.net.InetSocketAddress>parse(java.lang.String specs, int defaultPort)Parses a space and/or comma separated sequence of server specifications of the form hostname or hostname:port.
-
-
-
Method Detail
-
parse
public static java.util.List<java.net.InetSocketAddress> parse(java.lang.String specs, int defaultPort)Parses a space and/or comma separated sequence of server specifications of the form hostname or hostname:port. If the specs string is null, defaults to localhost:defaultPort.- Returns:
- a list of InetSocketAddress objects.
-
-