Class ZooKeeperServerConf

java.lang.Object
org.apache.zookeeper.server.ZooKeeperServerConf

public class ZooKeeperServerConf extends Object
Configuration data for a ZooKeeperServer. This class is immutable.
  • Field Details

  • Method Details

    • getClientPort

      public int getClientPort()
      Gets the client port.
      Returns:
      client port
    • getDataDir

      public String getDataDir()
      Gets the data directory.
      Returns:
      data directory
    • getDataLogDir

      public String getDataLogDir()
      Gets the data log directory.
      Returns:
      data log directory
    • getTickTime

      public int getTickTime()
      Gets the tick time.
      Returns:
      tick time
    • getMaxClientCnxnsPerHost

      public int getMaxClientCnxnsPerHost()
      Gets the maximum client connections per host.
      Returns:
      maximum client connections per host
    • getMinSessionTimeout

      public int getMinSessionTimeout()
      Gets the minimum session timeout.
      Returns:
      minimum session timeout
    • getMaxSessionTimeout

      public int getMaxSessionTimeout()
      Gets the maximum session timeout.
      Returns:
      maximum session timeout
    • getServerId

      public long getServerId()
      Gets the server ID.
      Returns:
      server ID
    • getClientPortListenBacklog

      public int getClientPortListenBacklog()
      Returns the server socket listen backlog length.
    • toMap

      public Map<String,Object> toMap()
      Converts this configuration to a map. The returned map is mutable, and changes to it do not reflect back into this configuration.
      Returns:
      map representation of configuration