Class 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.
    • Constructor Detail

      • 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.