Class ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder

  • Enclosing interface:
    ZooKeeperServerEmbedded

    public static class ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder
    extends java.lang.Object
    Builder for ZooKeeperServerEmbedded.
    • Constructor Detail

      • ZookKeeperServerEmbeddedBuilder

        public ZookKeeperServerEmbeddedBuilder()
    • Method Detail

      • baseDir

        public ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder baseDir​(java.nio.file.Path baseDir)
        Base directory of the server. The system will create a temporary configuration file inside this directory. Please remember that dynamic configuration files wil be saved into this directory by default.

        If you do not set a 'dataDir' configuration entry the system will use a subdirectory of baseDir.

        Parameters:
        baseDir -
        Returns:
        the builder
      • configuration

        public ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder configuration​(java.util.Properties configuration)
        Set the contents of the main configuration as it would be in zk_server.conf file.
        Parameters:
        configuration - the configuration
        Returns:
        the builder