org.apache.hadoop.hbase.hbql.impl
Class HConnectionPoolImpl
java.lang.Object
org.apache.hadoop.hbase.hbql.impl.ElementPool<HConnectionImpl>
org.apache.hadoop.hbase.hbql.impl.HConnectionPoolImpl
- All Implemented Interfaces:
- HConnectionPool
public class HConnectionPoolImpl
- extends ElementPool<HConnectionImpl>
- implements HConnectionPool
Constructor Summary |
HConnectionPoolImpl(int initPoolSize,
int maxPoolSize,
String poolName,
org.apache.hadoop.conf.Configuration configuration,
int maxPoolReferencesPerTablePerConnection)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HConnectionPoolImpl
public HConnectionPoolImpl(int initPoolSize,
int maxPoolSize,
String poolName,
org.apache.hadoop.conf.Configuration configuration,
int maxPoolReferencesPerTablePerConnection)
throws HBqlException
- Throws:
HBqlException
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration()
- Specified by:
getConfiguration
in interface HConnectionPool
getMaxReferencesPerTable
public int getMaxReferencesPerTable()
newElement
protected HConnectionImpl newElement()
throws HBqlException
- Specified by:
newElement
in class ElementPool<HConnectionImpl>
- Throws:
HBqlException
takeConnection
public HConnection takeConnection()
throws HBqlException
- Specified by:
takeConnection
in interface HConnectionPool
- Throws:
HBqlException
Copyright © 2011. All Rights Reserved.