Java Code Examples for org.apache.hadoop.hbase.HConstants#DEFAULT_HBASE_CLIENT_RETRIES_NUMBER

The following examples show how to use org.apache.hadoop.hbase.HConstants#DEFAULT_HBASE_CLIENT_RETRIES_NUMBER . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConnectionConfiguration.java    From hbase with Apache License 2.0 6 votes vote down vote up
/**
 * Constructor
 * This is for internal testing purpose (using the default value).
 * In real usage, we should read the configuration from the Configuration object.
 */
@VisibleForTesting
protected ConnectionConfiguration() {
  this.writeBufferSize = WRITE_BUFFER_SIZE_DEFAULT;
  this.writeBufferPeriodicFlushTimeoutMs = WRITE_BUFFER_PERIODIC_FLUSH_TIMEOUT_MS_DEFAULT;
  this.writeBufferPeriodicFlushTimerTickMs = WRITE_BUFFER_PERIODIC_FLUSH_TIMERTICK_MS_DEFAULT;
  this.metaOperationTimeout = HConstants.DEFAULT_HBASE_CLIENT_OPERATION_TIMEOUT;
  this.operationTimeout = HConstants.DEFAULT_HBASE_CLIENT_OPERATION_TIMEOUT;
  this.scannerCaching = HConstants.DEFAULT_HBASE_CLIENT_SCANNER_CACHING;
  this.scannerMaxResultSize = HConstants.DEFAULT_HBASE_CLIENT_SCANNER_MAX_RESULT_SIZE;
  this.primaryCallTimeoutMicroSecond = 10000;
  this.replicaCallTimeoutMicroSecondScan = 1000000;
  this.metaReplicaCallTimeoutMicroSecondScan =
      HConstants.HBASE_CLIENT_META_REPLICA_SCAN_TIMEOUT_DEFAULT;
  this.retries = HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER;
  this.clientScannerAsyncPrefetch = Scan.DEFAULT_HBASE_CLIENT_SCANNER_ASYNC_PREFETCH;
  this.maxKeyValueSize = MAX_KEYVALUE_SIZE_DEFAULT;
  this.readRpcTimeout = HConstants.DEFAULT_HBASE_RPC_TIMEOUT;
  this.writeRpcTimeout = HConstants.DEFAULT_HBASE_RPC_TIMEOUT;
  this.rpcTimeout = HConstants.DEFAULT_HBASE_RPC_TIMEOUT;
}