Examples of ZooKeeperServerFactory


Examples of io.fabric8.zookeeper.bootstrap.ZooKeeperServerFactory

        String zookeeperUrl = curatorConfig.getZookeeperUrl();
        System.out.println("ZK URL: " + zookeeperUrl);
        System.out.println("ZK config: " + curatorConfig);
        if (Strings.isNullOrBlank(zookeeperUrl)) {
            System.out.println("No ZooKeeper URL has been configured so creating a local ensemble server");
            serverFactory = new ZooKeeperServerFactory(peerConfig, "rootEnsembleNode");
            zookeeperUrl = serverFactory.getZooKeeperUrl();
            Objects.notNull(zookeeperUrl, "zookeeperUrl");
            System.out.println("======= connecting to: " + zookeeperUrl);
            curatorConfig.setZookeeperUrl(zookeeperUrl);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.