@InterfaceAudience.Public public class ZKClientConfig extends ZKConfig
Modifier and Type | Field and Description |
---|---|
static int |
CLIENT_MAX_PACKET_LENGTH_DEFAULT |
static String |
DISABLE_AUTO_WATCH_RESET
This controls whether automatic watch resetting is enabled.
|
static String |
ENABLE_CLIENT_SASL_DEFAULT |
static String |
ENABLE_CLIENT_SASL_KEY |
static String |
LOGIN_CONTEXT_NAME_KEY |
static String |
LOGIN_CONTEXT_NAME_KEY_DEFAULT |
static String |
SECURE_CLIENT
Setting this to "true" will enable encrypted client-server communication.
|
static String |
ZK_SASL_CLIENT_CANONICALIZE_HOSTNAME |
static String |
ZK_SASL_CLIENT_CANONICALIZE_HOSTNAME_DEFAULT |
static String |
ZK_SASL_CLIENT_USERNAME |
static String |
ZK_SASL_CLIENT_USERNAME_DEFAULT |
static String |
ZOOKEEPER_CLIENT_CNXN_SOCKET |
static String |
ZOOKEEPER_REQUEST_TIMEOUT |
static long |
ZOOKEEPER_REQUEST_TIMEOUT_DEFAULT
Feature is disabled by default.
|
static String |
ZOOKEEPER_SERVER_REALM |
JGSS_NATIVE, JUTE_MAXBUFFER, KINIT_COMMAND
Constructor and Description |
---|
ZKClientConfig() |
ZKClientConfig(File configFile) |
ZKClientConfig(String configPath) |
Modifier and Type | Method and Description |
---|---|
long |
getLong(String key,
long defaultValue)
Get the value of the
key property as an long . |
protected void |
handleBackwardCompatibility()
Now onwards client code will use properties from this class but older
clients still be setting properties through system properties.
|
boolean |
isSaslClientEnabled()
Returns true if the SASL client is enabled.
|
addConfiguration, addConfiguration, getBoolean, getBoolean, getInt, getJaasConfKey, getProperty, getProperty, setProperty
public static final String ZK_SASL_CLIENT_USERNAME
public static final String ZK_SASL_CLIENT_USERNAME_DEFAULT
public static final String ZK_SASL_CLIENT_CANONICALIZE_HOSTNAME
public static final String ZK_SASL_CLIENT_CANONICALIZE_HOSTNAME_DEFAULT
public static final String LOGIN_CONTEXT_NAME_KEY
public static final String LOGIN_CONTEXT_NAME_KEY_DEFAULT
public static final String ENABLE_CLIENT_SASL_KEY
public static final String ENABLE_CLIENT_SASL_DEFAULT
public static final String ZOOKEEPER_SERVER_REALM
public static final String DISABLE_AUTO_WATCH_RESET
public static final String ZOOKEEPER_CLIENT_CNXN_SOCKET
public static final String SECURE_CLIENT
public static final int CLIENT_MAX_PACKET_LENGTH_DEFAULT
public static final String ZOOKEEPER_REQUEST_TIMEOUT
public static final long ZOOKEEPER_REQUEST_TIMEOUT_DEFAULT
public ZKClientConfig()
public ZKClientConfig(File configFile) throws QuorumPeerConfig.ConfigException
QuorumPeerConfig.ConfigException
public ZKClientConfig(String configPath) throws QuorumPeerConfig.ConfigException
QuorumPeerConfig.ConfigException
protected void handleBackwardCompatibility()
ZKConfig
handleBackwardCompatibility
in class ZKConfig
public boolean isSaslClientEnabled()
zookeeper.sasl.client
to false
. See
ZOOKEEPER-1657 for more information.public long getLong(String key, long defaultValue)
key
property as an long
.
If property is not set, the provided defaultValue
is
returnedkey
- property key.defaultValue
- default value.long
, or
defaultValue
NumberFormatException
- when the value is invalidCopyright © 2008–2019 The Apache Software Foundation. All rights reserved.