public static ServerName parseServerName(final String str) {
    return SERVERNAME_PATTERN.matcher(str).matches() ? valueOf(str) : valueOf(str, NON_STARTCODE);
  }
Parse a ServerName from a string
@param str Either an instance of {@link #toString()} or a "'&lt;hostname&gt;' ':'
           '&lt;port&gt;'".
@return A ServerName instance.
hbase-common/src/main/java/org/apache/hadoop/hbase/ServerName.java