ConfigUtils (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.server.util

## Class ConfigUtils

- java.lang.Object
- - org.apache.zookeeper.server.util.ConfigUtils

-     public class ConfigUtils
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConfigUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    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

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ConfigUtils

          public ConfigUtils()

  - ### Method Detail

    - #### getClientConfigStr

          public static String getClientConfigStr(String configData)

    - #### getHostAndPort

          public static String[] getHostAndPort(String s)
                                         throws QuorumPeerConfig.ConfigException

      Gets host and port by splitting server config with support for IPv6 literals
      Parameters:
        `s` - server config, server:port
      Returns:
        String[] first element being the IP address and the next being the port
      Throws:
        `QuorumPeerConfig.ConfigException`

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.