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

org.apache.zookeeper.client

## Class ConnectStringParser

- java.lang.Object
- - org.apache.zookeeper.client.ConnectStringParser

-     public final class ConnectStringParser
      extends Object

  A parser for ZooKeeper Client connect strings. This class is not meant to be seen or used outside of ZooKeeper itself. The chrootPath member should be replaced by a Path object in issue ZOOKEEPER-849.
  See Also:
    `ZooKeeper`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConnectStringParser(String connectString)` Parse host and port by spliting client connectString with support for IPv6 literals

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getChrootPath()`
    `ArrayList<InetSocketAddress>` | `getServerAddresses()`

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

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

- - ### Constructor Detail

    - #### ConnectStringParser

          public ConnectStringParser(String connectString)

      Parse host and port by spliting client connectString with support for IPv6 literals
      Throws:
        `IllegalArgumentException` - for an invalid chroot path.

  - ### Method Detail

    - #### getChrootPath

          public String getChrootPath()

    - #### getServerAddresses

          public ArrayList<InetSocketAddress> getServerAddresses()

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