java.lang.Object
com.mapr.org.apache.hadoop.metrics.spi.Util

@Public @Evolving public class Util extends Object
Static utility methods
  • Method Details

    • parse

      public static List<InetSocketAddress> parse(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.