Examples of CuratorACLManager


Examples of io.fabric8.zookeeper.curator.CuratorACLManager

                .connectString(connectString)
                .retryPolicy(new ExponentialBackoffRetry(5, 10))
                .connectionTimeoutMs(getTimeout());

        if (password != null && !password.isEmpty()) {
            builder.aclProvider(new CuratorACLManager());
            builder.authorization("digest", ("fabric:"+password).getBytes("UTF-8"));
        }

        this.curator = builder.build();
        LOG.debug("Starting curator " + curator);
View Full Code Here

Examples of io.fabric8.zookeeper.curator.CuratorACLManager

                .retryPolicy(new RetryOneTime(1000))
                .connectionTimeoutMs(10000);

        String password = System.getProperty("zookeeper.password", "admin");
        if (password != null && !password.isEmpty()) {
            builder.aclProvider(new CuratorACLManager());
            builder.authorization("digest", ("fabric:"+password).getBytes());
        }

        CuratorFramework client = builder.build();
        client.start();
View Full Code Here

Examples of io.fabric8.zookeeper.curator.CuratorACLManager

        // password
        String zkPassword = System.getenv("FABRIC8_ZOOKEEPER_PASSWORD");
        if (zkPassword != null) {
            password = PasswordEncoder.decode(zkPassword);
            setAclProvider(new CuratorACLManager());
        }

        super.init();
    }
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.