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
Parameter name for client pause when server is overloaded, denoted by an exception whereHBaseServerException.isServerOverloaded(Throwable)
is true.static final String
static final boolean
private static final org.slf4j.Logger
static final int
static final String
private final int
private final int
private final int
private final int
private final int
private final int
private final long
private final long
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
private final int
private final boolean
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
long
long
int
int
int
int
int
int
long
int
long
long
long
int
boolean
boolean
-
Field Details
-
LOG
-
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:
-
HBASE_CLIENT_PAUSE_FOR_SERVER_OVERLOADED
Parameter name for client pause when server is overloaded, denoted by an exception whereHBaseServerException.isServerOverloaded(Throwable)
is true.- See Also:
-
HBASE_CLIENT_META_READ_RPC_TIMEOUT_KEY
- See Also:
-
HBASE_CLIENT_META_SCANNER_TIMEOUT
- See Also:
-
HBASE_CLIENT_USE_SCANNER_TIMEOUT_PERIOD_FOR_NEXT_CALLS
- See Also:
-
HBASE_CLIENT_USE_SCANNER_TIMEOUT_PERIOD_FOR_NEXT_CALLS_DEFAULT
- See Also:
-
writeBufferSize
-
writeBufferPeriodicFlushTimeoutMs
-
writeBufferPeriodicFlushTimerTickMs
-
metaOperationTimeout
-
operationTimeout
-
scannerCaching
-
scannerMaxResultSize
-
-
replicaCallTimeoutMicroSecondScan
-
metaReplicaCallTimeoutMicroSecondScan
-
retries
-
maxKeyValueSize
-
rpcTimeout
-
readRpcTimeout
-
metaReadRpcTimeout
-
writeRpcTimeout
-
scanTimeout
-
metaScanTimeout
-
clientScannerAsyncPrefetch
-
pauseMs
-
pauseMsForServerOverloaded
-
useScannerTimeoutForNextCalls
-
-
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
-
getScanTimeout
-
isUseScannerTimeoutForNextCalls
-
getMetaScanTimeout
-
getPauseMillis
-
getPauseMillisForServerOverloaded
-