public class ZookeeperClient extends Object
ZKSignerSecretProvider
.
The class implements a fluid API to set up all the different properties. A very basic setup
would seem like:
ZookeeperClient.configure() .withConnectionString(<connectionString>) .create();Mandatory parameters to be set:
ZKSignerSecretProvider
Constructor and Description |
---|
ZookeeperClient() |
public static ZookeeperClient configure()
public ZookeeperClient withConnectionString(String conn)
public ZookeeperClient withNamespace(String ns)
public ZookeeperClient withAuthType(String authType)
public ZookeeperClient withKeytab(String keytabPath)
public ZookeeperClient withPrincipal(String princ)
public ZookeeperClient withJaasLoginEntryName(String entryName)
public ZookeeperClient withSessionTimeout(int timeoutMS)
public ZookeeperClient withConnectionTimeout(int timeoutMS)
public ZookeeperClient withRetryPolicy(org.apache.curator.RetryPolicy policy)
public ZookeeperClient withZookeeperFactory(org.apache.curator.utils.ZookeeperFactory factory)
public ZookeeperClient enableSSL(boolean enable)
public ZookeeperClient withKeystore(String keystorePath)
public ZookeeperClient withKeystorePassword(String keystorePass)
public ZookeeperClient withTruststore(String truststorePath)
public ZookeeperClient withTruststorePassword(String truststorePass)
public org.apache.curator.framework.CuratorFramework create()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.