Package org.apache.accumulo.core.client
Class ClientConfiguration
java.lang.Object
org.apache.accumulo.core.client.ClientConfiguration
Deprecated.
Contains a list of property keys recognized by the Accumulo client and convenience methods for
setting them.
- Since:
- 1.6.0
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) Deprecated.static ClientConfiguration
create()
Deprecated.Initializes an empty configuration object to be further configured with other methods on the class.static ClientConfiguration
deserialize
(String serializedConfig) Deprecated.static ClientConfiguration
Deprecated.Initializes a configuration object from the contents of a configuration file.static ClientConfiguration
Deprecated.Initializes a configuration object from the contents of a map.Deprecated.Returns the value for prop, the default value if not present.Deprecated.Gets all properties under the given prefix in this configuration.getKeys()
Deprecated.Deprecated.boolean
hasSasl()
Deprecated.Show whether SASL has been set on this configuration.static ClientConfiguration
Deprecated.Attempts to load a configuration file from the system using the default search paths.Deprecated.void
setProperty
(String prop, String value) Deprecated.Sets the value of property to valuevoid
setProperty
(ClientConfiguration.ClientProperty prop, String value) Deprecated.Sets the value of property to valueDeprecated.Same assetProperty(String, String)
but returns the ClientConfiguration for chaining purposeswith
(ClientConfiguration.ClientProperty prop, String value) Deprecated.Same assetProperty(ClientProperty, String)
but returns the ClientConfiguration for chaining purposeswithInstance
(String instanceName) Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_NAMEwithInstance
(UUID instanceId) Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_IDwithKeystore
(String path) Deprecated.Same aswithKeystore(String, String, String)
with password null and type nullwithKeystore
(String path, String password, String type) Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_RPC_SSL_CLIENT_AUTH, ClientProperty.RPC_SSL_KEYSTORE_PATH, ClientProperty.RPC_SSL_KEYSTORE_PASSWORD, and ClientProperty.RPC_SSL_KEYSTORE_TYPEwithSasl
(boolean saslEnabled) Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_RPC_SASL_ENABLED.Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_RPC_SASL_ENABLED and ClientProperty.GENERAL_KERBEROS_PRINCIPAL.withSsl
(boolean sslEnabled) Deprecated.Same aswithSsl(boolean, boolean)
with useJsseConfig set to falsewithSsl
(boolean sslEnabled, boolean useJsseConfig) Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_RPC_SSL_ENABLED and ClientProperty.RPC_USE_JSSEwithTruststore
(String path) Deprecated.Same aswithTruststore(String, String, String)
with password null and type nullwithTruststore
(String path, String password, String type) Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.RPC_SSL_TRUSTORE_PATH, ClientProperty.RPC_SSL_TRUSTORE_PASSWORD, and ClientProperty.RPC_SSL_TRUSTORE_TYPEwithZkHosts
(String zooKeepers) Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_ZK_HOSTwithZkTimeout
(int timeout) Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_ZK_TIMEOUT
-
Field Details
-
USER_ACCUMULO_DIR_NAME
Deprecated.- See Also:
-
USER_CONF_FILENAME
Deprecated.- See Also:
-
GLOBAL_CONF_FILENAME
Deprecated.- See Also:
-
-
Method Details
-
loadDefault
Deprecated.Attempts to load a configuration file from the system using the default search paths. Uses the ACCUMULO_CLIENT_CONF_PATH environment variable, split on File.pathSeparator, for a list of target files.If ACCUMULO_CLIENT_CONF_PATH is not set, uses the following in this order:
- ~/.accumulo/config
- $ACCUMULO_CONF_DIR/client.conf, if $ACCUMULO_CONF_DIR is defined.
- /etc/accumulo/client.conf
- /etc/accumulo/conf/client.conf
A client configuration will then be read from each location using PropertiesConfiguration to construct a configuration. That means the latest item will be the one in the configuration.
- See Also:
-
PropertiesConfiguration
File.pathSeparator
-
create
Deprecated.Initializes an empty configuration object to be further configured with other methods on the class.- Since:
- 1.9.0
-
fromFile
Deprecated.Initializes a configuration object from the contents of a configuration file. Currently supports Java "properties" files. The returned object can be further configured with subsequent calls to other methods on this class.- Parameters:
file
- the path to the configuration file- Since:
- 1.9.0
-
fromMap
Deprecated.Initializes a configuration object from the contents of a map. The returned object can be further configured with subsequent calls to other methods on this class.- Parameters:
properties
- a map containing the configuration properties to use- Since:
- 1.9.0
-
deserialize
Deprecated. -
serialize
Deprecated. -
get
Deprecated.Returns the value for prop, the default value if not present. -
getAllPropertiesWithPrefix
Deprecated.Gets all properties under the given prefix in this configuration.- Parameters:
property
- prefix property, must be of type PropertyType.PREFIX- Returns:
- a map of property keys to values
- Throws:
IllegalArgumentException
- if property is not a prefix
-
setProperty
Deprecated.Sets the value of property to value -
with
Deprecated.Same assetProperty(ClientProperty, String)
but returns the ClientConfiguration for chaining purposes -
setProperty
Deprecated.Sets the value of property to value- Since:
- 1.9.0
-
with
Deprecated.Same assetProperty(String, String)
but returns the ClientConfiguration for chaining purposes- Since:
- 1.9.0
-
withInstance
Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_NAME -
withInstance
Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_ID -
withZkHosts
Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_ZK_HOST -
withZkTimeout
Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_ZK_TIMEOUT -
withSsl
Deprecated.Same aswithSsl(boolean, boolean)
with useJsseConfig set to false -
withSsl
Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_RPC_SSL_ENABLED and ClientProperty.RPC_USE_JSSE -
withTruststore
Deprecated.Same aswithTruststore(String, String, String)
with password null and type null -
withTruststore
Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.RPC_SSL_TRUSTORE_PATH, ClientProperty.RPC_SSL_TRUSTORE_PASSWORD, and ClientProperty.RPC_SSL_TRUSTORE_TYPE -
withKeystore
Deprecated.Same aswithKeystore(String, String, String)
with password null and type null -
withKeystore
Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_RPC_SSL_CLIENT_AUTH, ClientProperty.RPC_SSL_KEYSTORE_PATH, ClientProperty.RPC_SSL_KEYSTORE_PASSWORD, and ClientProperty.RPC_SSL_KEYSTORE_TYPE -
withSasl
Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_RPC_SASL_ENABLED.- Since:
- 1.7.0
-
hasSasl
public boolean hasSasl()Deprecated.Show whether SASL has been set on this configuration.- Since:
- 1.9.0
-
withSasl
Deprecated.Same aswith(ClientProperty, String)
for ClientProperty.INSTANCE_RPC_SASL_ENABLED and ClientProperty.GENERAL_KERBEROS_PRINCIPAL.- Parameters:
saslEnabled
- Should SASL(kerberos) be enabledkerberosServerPrimary
- The 'primary' component of the Kerberos principal Accumulo servers use to login (e.g. 'accumulo' in 'accumulo/_HOST@REALM')- Since:
- 1.7.0
-
containsKey
Deprecated. -
getKeys
Deprecated. -
getString
Deprecated.
-
Accumulo.newClient()