Class ControllerServerConfig

java.lang.Object
org.apache.zookeeper.server.quorum.QuorumPeerConfig
org.apache.zookeeper.server.controller.ControllerServerConfig

public class ControllerServerConfig extends QuorumPeerConfig
Config for the ControllerService. Responsible for providing the minimum set of configurations that's required to spin up a single member ensemble.
  • Field Details

  • Constructor Details

    • ControllerServerConfig

      public ControllerServerConfig(String configFile) throws QuorumPeerConfig.ConfigException
      Instantiate a new config via a zk config file.
      Parameters:
      configFile - path to the configuration file
      Throws:
      QuorumPeerConfig.ConfigException
    • ControllerServerConfig

      public ControllerServerConfig(InetAddress hostAddress, int controllerPort, int zkServerPort, String dataDirPath)
      Instantiate a config object with required parameters.
      Parameters:
      hostAddress - The address to bind to (likely loopback or localhost)
      controllerPort - Port the controller will listen for incoming control command sent from CommandClient.
      zkServerPort - Port the ZooKeeper server will listen on.
      dataDirPath - Path to the data directory that ZooKeeperServer uses.
    • ControllerServerConfig

      public ControllerServerConfig(int controllerPort, int zkServerPort, String dataDirPath)
      Instantiate a config object with required parameters.
      Parameters:
      controllerPort - Port the controller will listen for incoming control command sent from CommandClient.
      zkServerPort - Port the ZooKeeper server will listen on.
      dataDirPath - Path to the data directory that ZooKeeperServer uses.
  • Method Details