public static class AccumuloClientImpl.AccumuloClientBuilderImpl extends Object implements AccumuloClient.InstanceArgs, AccumuloClient.PropertyOptions, AccumuloClient.ClientInfoOptions, AccumuloClient.AuthenticationArgs, AccumuloClient.ConnectionOptions, AccumuloClient.SslOptions, AccumuloClient.SaslOptions, AccumuloClient.AccumuloClientFactory, AccumuloClient.FromOptions
Constructor and Description |
---|
AccumuloClientBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
AccumuloClient |
build()
Builds AccumuloClient after all options have been specified
|
AccumuloClient.AuthenticationArgs |
forInstance(String instanceName,
String zookeepers) |
ClientInfo |
info()
Builds ClientInfo after all options have been specified
|
void |
setProperty(ClientProperty property,
Integer value) |
void |
setProperty(ClientProperty property,
Long value) |
void |
setProperty(ClientProperty property,
String value) |
AccumuloClient.SslOptions |
useJsse()
Use JSSE system properties to configure SSL
|
AccumuloClient.FromOptions |
usingClientInfo(ClientInfo clientInfo)
Build using Accumulo client information
|
AccumuloClient.ConnectionOptions |
usingKerberos(String principal,
String keyTabFile)
Build using Kerberos credentials
|
AccumuloClient.ConnectionOptions |
usingPassword(String principal,
CharSequence password)
Build using password-based credentials
|
AccumuloClient.AccumuloClientFactory |
usingProperties(Properties properties)
Build using Java properties object.
|
AccumuloClient.AccumuloClientFactory |
usingProperties(String configFile)
Build using properties file.
|
AccumuloClient.ConnectionOptions |
usingToken(String principal,
AuthenticationToken token)
Build using specified credentials
|
AccumuloClient.ConnectionOptions |
withBatchScannerQueryThreads(int numQueryThreads)
Build with default number of query threads for BatchScanner
|
AccumuloClient.ConnectionOptions |
withBatchWriterConfig(BatchWriterConfig batchWriterConfig)
Build with BatchWriterConfig defaults for BatchWriter, MultiTableBatchWriter &
BatchDeleter
|
AccumuloClient.SslOptions |
withKeystore(String path)
Build with SSL key store
|
AccumuloClient.SslOptions |
withKeystore(String path,
String password,
String type)
Build with SSL key store
|
AccumuloClient.SaslOptions |
withPrimary(String kerberosServerPrimary)
Build with Kerberos Server Primary
|
AccumuloClient.SaslOptions |
withQop(String qualityOfProtection)
Build with SASL quality of protection
|
AccumuloClient.SaslOptions |
withSasl()
Build with SASL options
|
AccumuloClient.ConnectionOptions |
withScannerBatchSize(int batchSize)
Build with default batch size for Scanner
|
AccumuloClient.SslOptions |
withSsl()
Build with SSL/TLS options
|
AccumuloClient.SslOptions |
withTruststore(String path)
Build with SSL trust store
|
AccumuloClient.SslOptions |
withTruststore(String path,
String password,
String type)
Build with SSL trust store
|
AccumuloClient.ConnectionOptions |
withZkTimeout(int timeout)
Build using Zookeeper timeout
|
public AccumuloClient build() throws AccumuloException, AccumuloSecurityException
AccumuloClient.AccumuloClientFactory
build
in interface AccumuloClient.AccumuloClientFactory
AccumuloException
AccumuloSecurityException
public ClientInfo info()
AccumuloClient.ClientInfoFactory
info
in interface AccumuloClient.ClientInfoFactory
public AccumuloClient.AuthenticationArgs forInstance(String instanceName, String zookeepers)
forInstance
in interface AccumuloClient.InstanceArgs
public AccumuloClient.SslOptions withTruststore(String path)
AccumuloClient.SslOptions
withTruststore
in interface AccumuloClient.SslOptions
path
- Path to trust storepublic AccumuloClient.SslOptions withTruststore(String path, String password, String type)
AccumuloClient.SslOptions
withTruststore
in interface AccumuloClient.SslOptions
path
- Path to trust storepassword
- Password used to encrypt trust storetype
- Trust store typepublic AccumuloClient.SslOptions withKeystore(String path)
AccumuloClient.SslOptions
withKeystore
in interface AccumuloClient.SslOptions
path
- Path to SSL key storepublic AccumuloClient.SslOptions withKeystore(String path, String password, String type)
AccumuloClient.SslOptions
withKeystore
in interface AccumuloClient.SslOptions
path
- Path to keystorepassword
- Password used to encrypt key storetype
- Key store typepublic AccumuloClient.SslOptions useJsse()
AccumuloClient.SslOptions
useJsse
in interface AccumuloClient.SslOptions
public AccumuloClient.ConnectionOptions withZkTimeout(int timeout)
AccumuloClient.ConnectionOptions
withZkTimeout
in interface AccumuloClient.ConnectionOptions
timeout
- Zookeeper timeout (in milliseconds)public AccumuloClient.SslOptions withSsl()
AccumuloClient.ConnectionOptions
withSsl
in interface AccumuloClient.ConnectionOptions
public AccumuloClient.SaslOptions withSasl()
AccumuloClient.ConnectionOptions
withSasl
in interface AccumuloClient.ConnectionOptions
public AccumuloClient.ConnectionOptions withBatchWriterConfig(BatchWriterConfig batchWriterConfig)
AccumuloClient.ConnectionOptions
withBatchWriterConfig
in interface AccumuloClient.ConnectionOptions
batchWriterConfig
- BatchWriterConfigpublic AccumuloClient.ConnectionOptions withBatchScannerQueryThreads(int numQueryThreads)
AccumuloClient.ConnectionOptions
withBatchScannerQueryThreads
in interface AccumuloClient.ConnectionOptions
public AccumuloClient.ConnectionOptions withScannerBatchSize(int batchSize)
AccumuloClient.ConnectionOptions
withScannerBatchSize
in interface AccumuloClient.ConnectionOptions
public AccumuloClient.SaslOptions withPrimary(String kerberosServerPrimary)
AccumuloClient.SaslOptions
withPrimary
in interface AccumuloClient.SaslOptions
kerberosServerPrimary
- Kerberos server primarypublic AccumuloClient.SaslOptions withQop(String qualityOfProtection)
AccumuloClient.SaslOptions
withQop
in interface AccumuloClient.SaslOptions
qualityOfProtection
- Quality of protectionpublic AccumuloClient.AccumuloClientFactory usingProperties(String configFile)
AccumuloClient.PropertyOptions
usingProperties
in interface AccumuloClient.PropertyOptions
configFile
- Path to properties filepublic AccumuloClient.AccumuloClientFactory usingProperties(Properties properties)
AccumuloClient.PropertyOptions
usingProperties
in interface AccumuloClient.PropertyOptions
properties
- Properties objectpublic AccumuloClient.ConnectionOptions usingPassword(String principal, CharSequence password)
AccumuloClient.AuthenticationArgs
usingPassword
in interface AccumuloClient.AuthenticationArgs
principal
- User namepassword
- Passwordpublic AccumuloClient.ConnectionOptions usingKerberos(String principal, String keyTabFile)
AccumuloClient.AuthenticationArgs
usingKerberos
in interface AccumuloClient.AuthenticationArgs
principal
- PrincipalkeyTabFile
- Path to keytab filepublic AccumuloClient.ConnectionOptions usingToken(String principal, AuthenticationToken token)
AccumuloClient.AuthenticationArgs
usingToken
in interface AccumuloClient.AuthenticationArgs
principal
- Principal/usernametoken
- Authentication tokenpublic AccumuloClient.FromOptions usingClientInfo(ClientInfo clientInfo)
AccumuloClient.ClientInfoOptions
usingClientInfo
in interface AccumuloClient.ClientInfoOptions
clientInfo
- ClientInfo objectpublic void setProperty(ClientProperty property, String value)
public void setProperty(ClientProperty property, Long value)
public void setProperty(ClientProperty property, Integer value)
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.