public class ConfigUtils extends Object
| Constructor and Description |
|---|
ConfigUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getClientConfigStr(String configData) |
static String[] |
getHostAndPort(String s)
Gets host and port by splitting server config
with support for IPv6 literals
|
public static String[] getHostAndPort(String s) throws QuorumPeerConfig.ConfigException
s - server config, server:portQuorumPeerConfig.ConfigExceptionCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.