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
|
static String |
getPropertyBackwardCompatibleWay(String newPropertyKey)
Some old configuration properties are not configurable in zookeeper configuration file
zoo.cfg.
|
public static String[] getHostAndPort(String s) throws QuorumPeerConfig.ConfigException
s - server config, server:portQuorumPeerConfig.ConfigExceptionpublic static String getPropertyBackwardCompatibleWay(String newPropertyKey)
newPropertyKey - new property key which starts with zookeeper.Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.