public static Endpoint getEndPoint(final String s) {
        if (StringUtils.isBlank(s)) {
            return null;
        }
        final String[] tmps = StringUtils.split(s, ':');
        if (tmps.length != 2) {
            throw new IllegalArgumentException("Invalid endpoint string: " + s);
        }
        return new Endpoint(tmps[0], Integer.parseInt(tmps[1]));
    }
Create a Endpoint instance from  a string in the form of "host:port",
returns null when string is blank.
jraft-core/src/main/java/com/alipay/sofa/jraft/JRaftUtils.java