@InterfaceAudience.Public @InterfaceStability.Evolving public static final class KuduClient.KuduClientBuilder extends Object
Constructor and Description |
---|
KuduClientBuilder(List<String> masterAddresses)
Creates a new builder for a client that will connect to the specified masters.
|
KuduClientBuilder(String masterAddresses)
Creates a new builder for a client that will connect to the specified masters.
|
Modifier and Type | Method and Description |
---|---|
KuduClient.KuduClientBuilder |
bossCount(int bossCount)
Deprecated.
the bossExecutor is no longer used and will have no effect if provided
|
KuduClient |
build()
Creates a new client that connects to the masters.
|
KuduClient.KuduClientBuilder |
connectionNegotiationTimeoutMs(long timeoutMs)
Sets the default timeout used for connection negotiation.
|
KuduClient.KuduClientBuilder |
defaultAdminOperationTimeoutMs(long timeoutMs)
Sets the default timeout used for administrative operations (e.g.
|
KuduClient.KuduClientBuilder |
defaultOperationTimeoutMs(long timeoutMs)
Sets the default timeout used for user operations (using sessions and scanners).
|
KuduClient.KuduClientBuilder |
defaultSocketReadTimeoutMs(long timeoutMs)
Deprecated.
socket read timeouts are no longer used
|
KuduClient.KuduClientBuilder |
disableStatistics()
Disable this client's collection of statistics.
|
KuduClient.KuduClientBuilder |
encryptionPolicy(org.apache.kudu.client.AsyncKuduClient.EncryptionPolicy encryptionPolicy)
Require encryption for the connection to a remote server.
|
KuduClient.KuduClientBuilder |
nioExecutor(Executor workerExecutor)
Set the executor which will be used for the embedded Netty workers.
|
KuduClient.KuduClientBuilder |
nioExecutors(Executor bossExecutor,
Executor workerExecutor)
Deprecated.
the bossExecutor is no longer used and will have no effect if provided
|
KuduClient.KuduClientBuilder |
requireAuthentication(boolean requireAuthentication)
Require authentication for the connection to a remote server.
|
KuduClient.KuduClientBuilder |
saslProtocolName(String saslProtocolName)
Set the SASL protocol name.
|
KuduClient.KuduClientBuilder |
workerCount(int workerCount)
Set the maximum number of worker threads.
|
public KuduClientBuilder(String masterAddresses)
masterAddresses
- comma-separated list of "host:port" pairs of the masterspublic KuduClientBuilder(List<String> masterAddresses)
Here are some examples of recognized formats:
masterAddresses
- list of master addressespublic KuduClient.KuduClientBuilder defaultAdminOperationTimeoutMs(long timeoutMs)
timeoutMs
- a timeout in millisecondspublic KuduClient.KuduClientBuilder defaultOperationTimeoutMs(long timeoutMs)
timeoutMs
- a timeout in millisecondspublic KuduClient.KuduClientBuilder connectionNegotiationTimeoutMs(long timeoutMs)
timeoutMs
- a timeout in milliseconds@Deprecated public KuduClient.KuduClientBuilder defaultSocketReadTimeoutMs(long timeoutMs)
timeoutMs
- a timeout in millisecondspublic KuduClient.KuduClientBuilder disableStatistics()
@Deprecated public KuduClient.KuduClientBuilder nioExecutors(Executor bossExecutor, Executor workerExecutor)
public KuduClient.KuduClientBuilder nioExecutor(Executor workerExecutor)
@Deprecated public KuduClient.KuduClientBuilder bossCount(int bossCount)
public KuduClient.KuduClientBuilder workerCount(int workerCount)
public KuduClient.KuduClientBuilder saslProtocolName(String saslProtocolName)
public KuduClient.KuduClientBuilder requireAuthentication(boolean requireAuthentication)
public KuduClient.KuduClientBuilder encryptionPolicy(org.apache.kudu.client.AsyncKuduClient.EncryptionPolicy encryptionPolicy)
public KuduClient build()