public static PeerId getPeerId(final String s) {
        final PeerId peer = new PeerId();
        if (StringUtils.isBlank(s)) {
            return peer;
        }
        if (peer.parse(s)) {
            return peer;
        }
        throw new IllegalArgumentException("Invalid peer str:" + s);
    }
Create a peer from a string in the form of "host:port[:idx]",
returns a empty peer when string is blank.
jraft-core/src/main/java/com/alipay/sofa/jraft/JRaftUtils.java