@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)
Set the maximum number of boss threads.
|
KuduClient |
build()
Creates a new client that connects to the masters.
|
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)
Sets the default timeout to use when waiting on data from a socket.
|
KuduClient.KuduClientBuilder |
disableStatistics()
Disable this client's collection of statistics.
|
KuduClient.KuduClientBuilder |
nioExecutors(Executor bossExecutor,
Executor workerExecutor)
Set the executors which will be used for the embedded Netty boss and workers.
|
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 defaultSocketReadTimeoutMs(long timeoutMs)
timeoutMs
- a timeout in millisecondspublic KuduClient.KuduClientBuilder disableStatistics()
public KuduClient.KuduClientBuilder nioExecutors(Executor bossExecutor, Executor workerExecutor)
public KuduClient.KuduClientBuilder bossCount(int bossCount)
public KuduClient.KuduClientBuilder workerCount(int workerCount)
public KuduClient build()
Copyright © 2018 The Apache Software Foundation. All rights reserved.