org.apache.hadoop.hbase.jdbc
Class ConnectionPool
java.lang.Object
org.apache.hadoop.hbase.jdbc.ConnectionPool
- All Implemented Interfaces:
- CommonDataSource, ConnectionPoolDataSource
public class ConnectionPool
- extends Object
- implements ConnectionPoolDataSource
Constructor Summary |
ConnectionPool(int initPoolSize,
int maxConnectionPoolSize)
|
ConnectionPool(int initConnectionPoolSize,
int maxConnectionPoolSize,
org.apache.hadoop.hbase.HBaseConfiguration config)
|
ConnectionPool(int initPoolSize,
int maxConnectionPoolSize,
String connectionPoolName)
|
ConnectionPool(int initPoolSize,
int maxConnectionPoolSize,
String poolName,
org.apache.hadoop.hbase.HBaseConfiguration config)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionPool
public ConnectionPool(int initPoolSize,
int maxConnectionPoolSize)
throws HBqlException
- Throws:
HBqlException
ConnectionPool
public ConnectionPool(int initPoolSize,
int maxConnectionPoolSize,
String connectionPoolName)
throws HBqlException
- Throws:
HBqlException
ConnectionPool
public ConnectionPool(int initConnectionPoolSize,
int maxConnectionPoolSize,
org.apache.hadoop.hbase.HBaseConfiguration config)
throws HBqlException
- Throws:
HBqlException
ConnectionPool
public ConnectionPool(int initPoolSize,
int maxConnectionPoolSize,
String poolName,
org.apache.hadoop.hbase.HBaseConfiguration config)
throws HBqlException
- Throws:
HBqlException
getMaxPoolReferencesPerTablePerConnection
public static int getMaxPoolReferencesPerTablePerConnection()
setMaxPoolReferencesPerTablePerConnection
public static void setMaxPoolReferencesPerTablePerConnection(int maxPoolReferencesPerTablePerConnection)
getPooledConnection
public PooledConnection getPooledConnection()
throws SQLException
- Specified by:
getPooledConnection
in interface ConnectionPoolDataSource
- Throws:
SQLException
getPooledConnection
public PooledConnection getPooledConnection(String s,
String s1)
throws SQLException
- Specified by:
getPooledConnection
in interface ConnectionPoolDataSource
- Throws:
SQLException
getLogWriter
public PrintWriter getLogWriter()
throws SQLException
- Specified by:
getLogWriter
in interface CommonDataSource
- Throws:
SQLException
setLogWriter
public void setLogWriter(PrintWriter printWriter)
throws SQLException
- Specified by:
setLogWriter
in interface CommonDataSource
- Throws:
SQLException
setLoginTimeout
public void setLoginTimeout(int i)
throws SQLException
- Specified by:
setLoginTimeout
in interface CommonDataSource
- Throws:
SQLException
getLoginTimeout
public int getLoginTimeout()
throws SQLException
- Specified by:
getLoginTimeout
in interface CommonDataSource
- Throws:
SQLException
Copyright © 2011. All Rights Reserved.