Class ZookeeperCuratorFrameworkBuilder

    • Constructor Detail

      • ZookeeperCuratorFrameworkBuilder

        public ZookeeperCuratorFrameworkBuilder()
    • Method Detail

      • curator

        public org.apache.curator.framework.CuratorFramework curator​(java.lang.String connectionString)
        Specified by:
        curator in interface CuratorFrameworkBuilder
        Returns:
        a connected CuratorFramework instance
      • lookupClientBasedService

        public <T> java.lang.Class<?> lookupClientBasedService​(java.lang.Class<T> clazz)
        Description copied from interface: CuratorFrameworkBuilder
        Provides the builder an opportunity to return an implementation of the class if it was not found registered within Zookeeper.
        Specified by:
        lookupClientBasedService in interface CuratorFrameworkBuilder
        Returns:
        null or an alternative impl of clazz
      • allowProjectlessServices

        public boolean allowProjectlessServices()
        Specified by:
        allowProjectlessServices in interface CuratorFrameworkBuilder
        Returns:
        true if services unbound to a project can be returned. This is used by the test environment where mock and local services are created for unit tests with no projects deployed. See PLAT-39471