public static ServerName valueOf(final String serverName) {
    int firstSep = serverName.indexOf(SERVERNAME_SEPARATOR);
    int lastSep = serverName.lastIndexOf(SERVERNAME_SEPARATOR);
    String hostname = serverName.substring(0, firstSep);
    int port = Integer.parseInt(serverName.substring(firstSep + 1, lastSep));
    long startCode = Long.parseLong(serverName.substring(lastSep + 1));
    return valueOf(hostname, port, startCode);
  }
Retrieve an instance of ServerName. Callers should use the equals method to compare returned
instances, though we may return a shared immutable object as an internal optimization.
hbase-common/src/main/java/org/apache/hadoop/hbase/ServerName.java