Package org.apache.hadoop.hbase.client
Class ConnectionConfiguration
java.lang.Object
org.apache.hadoop.hbase.client.ConnectionConfiguration
Configuration parameters for the connection. Configuration is a heavy weight registry that does a
lot of string operations and regex matching. Method calls into Configuration account for high CPU
usage and have huge performance impact. This class caches connection-related configuration values
in the ConnectionConfiguration object so that expensive conf.getXXX() calls are avoided every
time HTable, etc is instantiated. see HBASE-12128
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
static final String
static final String
static final String
static final int
static final String
private final int
private final int
private final int
private final int
private final int
static final String
static final int
static final String
static final int
private final int
private final int
private final int
private final int
private final int
private final int
private final long
static final String
static final long
static final String
static final long
static final long
static final String
private final long
private final long
private final long
private final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor This is for internal testing purpose (using the default value).(package private)
ConnectionConfiguration
(org.apache.hadoop.conf.Configuration conf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
int
int
int
int
int
int
long
long
long
long
int
boolean
-
Field Details
-
WRITE_BUFFER_SIZE_KEY
- See Also:
-
WRITE_BUFFER_SIZE_DEFAULT
- See Also:
-
WRITE_BUFFER_PERIODIC_FLUSH_TIMEOUT_MS
- See Also:
-
WRITE_BUFFER_PERIODIC_FLUSH_TIMERTICK_MS
- See Also:
-
WRITE_BUFFER_PERIODIC_FLUSH_TIMEOUT_MS_DEFAULT
- See Also:
-
WRITE_BUFFER_PERIODIC_FLUSH_TIMERTICK_MS_DEFAULT
- See Also:
-
MAX_KEYVALUE_SIZE_KEY
- See Also:
-
MAX_KEYVALUE_SIZE_DEFAULT
- See Also:
-
PRIMARY_CALL_TIMEOUT_MICROSECOND
- See Also:
-
PRIMARY_CALL_TIMEOUT_MICROSECOND_DEFAULT
- See Also:
-
PRIMARY_SCAN_TIMEOUT_MICROSECOND
- See Also:
-
PRIMARY_SCAN_TIMEOUT_MICROSECOND_DEFAULT
- See Also:
-
LOG_SCANNER_ACTIVITY
- See Also:
-
HBASE_CLIENT_META_READ_RPC_TIMEOUT_KEY
- See Also:
-
HBASE_CLIENT_META_SCANNER_TIMEOUT
- See Also:
-
writeBufferSize
-
writeBufferPeriodicFlushTimeoutMs
-
writeBufferPeriodicFlushTimerTickMs
-
metaOperationTimeout
-
operationTimeout
-
scannerCaching
-
scannerMaxResultSize
-
-
replicaCallTimeoutMicroSecondScan
-
metaReplicaCallTimeoutMicroSecondScan
-
retries
-
maxKeyValueSize
-
rpcTimeout
-
readRpcTimeout
-
metaReadRpcTimeout
-
writeRpcTimeout
-
clientScannerAsyncPrefetch
-
-
Constructor Details
-
ConnectionConfiguration
ConnectionConfiguration(org.apache.hadoop.conf.Configuration conf) Constructor- Parameters:
conf
- Configuration object
-
ConnectionConfiguration
protected ConnectionConfiguration()Constructor This is for internal testing purpose (using the default value). In real usage, we should read the configuration from the Configuration object.
-
-
Method Details
-
getReadRpcTimeout
-
getMetaReadRpcTimeout
-
getWriteRpcTimeout
-
getWriteBufferSize
-
getWriteBufferPeriodicFlushTimeoutMs
-
getWriteBufferPeriodicFlushTimerTickMs
-
getMetaOperationTimeout
-
getOperationTimeout
-
getScannerCaching
-
getPrimaryCallTimeoutMicroSecond
-
getReplicaCallTimeoutMicroSecondScan
-
getMetaReplicaCallTimeoutMicroSecondScan
-
getRetriesNumber
-
getMaxKeyValueSize
-
getScannerMaxResultSize
-
isClientScannerAsyncPrefetch
-
getRpcTimeout
-