org.apache.hadoop.hbase.hbql.impl
Class HConnectionPoolImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.hbql.impl.ElementPool<HConnectionImpl>
      extended by 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)
           
 
Method Summary
 org.apache.hadoop.conf.Configuration getConfiguration()
           
 int getMaxReferencesPerTable()
           
protected  HConnectionImpl newElement()
           
 HConnection takeConnection()
           
 
Methods inherited from class org.apache.hadoop.hbase.hbql.impl.ElementPool
addElementToPool, getCreatedCount, getElementPool, getMaxPoolSize, getName, getTakenCount, release, take
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hbase.hbql.client.HConnectionPool
getName
 

Constructor Detail

HConnectionPoolImpl

public HConnectionPoolImpl(int initPoolSize,
                           int maxPoolSize,
                           String poolName,
                           org.apache.hadoop.conf.Configuration configuration,
                           int maxPoolReferencesPerTablePerConnection)
                    throws HBqlException
Throws:
HBqlException
Method Detail

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.