public class HBaseConnectionManager extends Object
CloudGraphContext,
TableMapping| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTION_POOL_BLOCK_WHEN_EXHAUSTED
The property name for the
blockWhenExhausted configuration
attribute for connection pools. |
static String |
CONNECTION_POOL_EVICTION_POLICY_CLASS_NAME
The property name for the
evictionPolicyClassName configuration
attribute for connection pools. |
static String |
CONNECTION_POOL_JMX_ENABLED
The property name of the flag that determines if JMX will be enabled for
connection pools.
|
static String |
CONNECTION_POOL_JMX_NAME_BASE
The property name of the JMX name base that will be used as part of the
name assigned to JMX enabled pools created with this configuration
instance.
|
static String |
CONNECTION_POOL_JMX_NAME_PREFIX
The property name of the JMX name prefix that will be used as part of the
name assigned to JMX enabled pools created with this configuration
instance.
|
static String |
CONNECTION_POOL_LIFO
The property name for the
lifo configuration attribute for pools
created with this configuration instance. |
static String |
CONNECTION_POOL_MAX_IDLE
The property name for the
maxIdle configuration attribute for
connection pools. |
static String |
CONNECTION_POOL_MAX_SIZE
Synonym for max total.
|
static String |
CONNECTION_POOL_MAX_TOTAL
The property name for the
maxTotal configuration attribute for
connection pools. |
static String |
CONNECTION_POOL_MAX_WAIT_MILLIS
The property name for the
maxWait configuration attribute for pools
created with this configuration instance. |
static String |
CONNECTION_POOL_MIN_EVICTABLE_IDLE_TIME_MILLIS
The property name for the
minEvictableIdleTimeMillis configuration
attribute for connection pools. |
static String |
CONNECTION_POOL_MIN_IDLE
The property name for the
minIdle configuration attribute for
connection pools. |
static String |
CONNECTION_POOL_MIN_SIZE
Synonym for min idle.
|
static String |
CONNECTION_POOL_NUM_TESTS_PER_EVICTION_RUN
The property name for the
numTestsPerEvictionRun configuration
attribute for connection pools. |
static String |
CONNECTION_POOL_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS
The property name for the
softMinEvictableIdleTimeMillis
configuration attribute for pools created with this configuration instance. |
static String |
CONNECTION_POOL_TEST_ON_BORROW
The property name for the
testOnBorrow configuration attribute for
connection pools. |
static String |
CONNECTION_POOL_TEST_ON_CREATE
The property name for the
testOnCreate configuration attribute for
connection pools. |
static String |
CONNECTION_POOL_TEST_ON_RETURN
The property name for the
testOnReturn configuration attribute for
connection pools. |
static String |
CONNECTION_POOL_TEST_WHILE_IDLE
The property name for the
testWhileIdle configuration attribute for
connection pools. |
static String |
CONNECTION_POOL_TIME_BETWEEN_EVICTION_RUNS_MILLIS
The property name for the
timeBetweenEvictionRunsMillis
configuration attribute for connection pools. |
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(Connection connection,
org.apache.hadoop.hbase.TableName name,
StoreMappingContext mappingContext) |
void |
deleteTable(Connection connection,
org.apache.hadoop.hbase.TableName name) |
protected void |
finalize() |
Connection |
getConnection() |
static HBaseConnectionManager |
instance() |
public static final String CONNECTION_POOL_MIN_SIZE
minIdle
configuration attribute for connection pools.public static final String CONNECTION_POOL_MAX_SIZE
maxTotal
configuration attribute for connection pools.public static final String CONNECTION_POOL_MAX_TOTAL
maxTotal configuration attribute for
connection pools.BaseGenericObjectPool.setMaxTotal(int),
Constant Field Valuespublic static final String CONNECTION_POOL_MAX_IDLE
maxIdle configuration attribute for
connection pools.GenericObjectPool.setMaxIdle(int),
Constant Field Valuespublic static final String CONNECTION_POOL_MIN_IDLE
minIdle configuration attribute for
connection pools.GenericObjectPool.setMinIdle(int),
Constant Field Valuespublic static final String CONNECTION_POOL_LIFO
lifo configuration attribute for pools
created with this configuration instance.BaseGenericObjectPool.getLifo(),
BaseGenericObjectPool.getLifo(),
Constant Field Valuespublic static final String CONNECTION_POOL_MAX_WAIT_MILLIS
maxWait configuration attribute for pools
created with this configuration instance.BaseGenericObjectPool.getMaxWaitMillis(),
BaseGenericObjectPool.getMaxWaitMillis(),
Constant Field Valuespublic static final String CONNECTION_POOL_MIN_EVICTABLE_IDLE_TIME_MILLIS
minEvictableIdleTimeMillis configuration
attribute for connection pools.BaseGenericObjectPool.getMinEvictableIdleTimeMillis(),
BaseGenericObjectPool.getMinEvictableIdleTimeMillis(),
Constant Field Valuespublic static final String CONNECTION_POOL_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS
softMinEvictableIdleTimeMillis
configuration attribute for pools created with this configuration instance.BaseGenericObjectPool.getSoftMinEvictableIdleTimeMillis(),
BaseGenericObjectPool.getSoftMinEvictableIdleTimeMillis(),
Constant Field Valuespublic static final String CONNECTION_POOL_NUM_TESTS_PER_EVICTION_RUN
numTestsPerEvictionRun configuration
attribute for connection pools.BaseGenericObjectPool.getNumTestsPerEvictionRun(),
BaseGenericObjectPool.getNumTestsPerEvictionRun(),
Constant Field Valuespublic static final String CONNECTION_POOL_TEST_ON_CREATE
testOnCreate configuration attribute for
connection pools.BaseGenericObjectPool.getTestOnCreate(),
BaseGenericObjectPool.getTestOnCreate(),
Constant Field Valuespublic static final String CONNECTION_POOL_TEST_ON_BORROW
testOnBorrow configuration attribute for
connection pools.BaseGenericObjectPool.getTestOnBorrow(),
BaseGenericObjectPool.getTestOnBorrow(),
Constant Field Valuespublic static final String CONNECTION_POOL_TEST_ON_RETURN
testOnReturn configuration attribute for
connection pools.BaseGenericObjectPool.getTestOnReturn(),
BaseGenericObjectPool.getTestOnReturn(),
Constant Field Valuespublic static final String CONNECTION_POOL_TEST_WHILE_IDLE
testWhileIdle configuration attribute for
connection pools.public static final String CONNECTION_POOL_TIME_BETWEEN_EVICTION_RUNS_MILLIS
timeBetweenEvictionRunsMillis
configuration attribute for connection pools.public static final String CONNECTION_POOL_EVICTION_POLICY_CLASS_NAME
evictionPolicyClassName configuration
attribute for connection pools.public static final String CONNECTION_POOL_BLOCK_WHEN_EXHAUSTED
blockWhenExhausted configuration
attribute for connection pools.public static final String CONNECTION_POOL_JMX_ENABLED
public static final String CONNECTION_POOL_JMX_NAME_BASE
null means that the pool will define the
JMX name base.public static final String CONNECTION_POOL_JMX_NAME_PREFIX
public static HBaseConnectionManager instance()
public Connection getConnection()
public void createTable(Connection connection, org.apache.hadoop.hbase.TableName name, StoreMappingContext mappingContext)
public void deleteTable(Connection connection, org.apache.hadoop.hbase.TableName name)
Copyright © 2021. All Rights Reserved.