|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.protocol.jdbc.util.DBConnectionManager
This class manages a pool of Connection objects (ConnectionObject). This pool is constantly checked for old, over-used, or dead connections in a separated thread. Connections are rented out and then given back by the DBConnect object and its subclasses. This class is not directly accessed by the end-user objects. It is accessed by the DBConnect object and its subclasses.
Method Summary | |
Connection |
getConnection(DBKey key)
Rents out a database connection object. |
DBKey |
getKey(String url,
String username,
String password,
String driver,
Map properties)
Starts the connection manager going for a given database connection, and returns the DBKey object required to get a Connection object for this database. |
static DBConnectionManager |
getManager()
|
void |
releaseConnection(DBKey key,
Connection c)
Releases a connection back to the pool. |
void |
shutdown()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static DBConnectionManager getManager()
public DBKey getKey(String url, String username, String password, String driver, Map properties) throws ConnectionPoolException
url
- URL of database to be connected to.username
- username to use to connect to database.password
- password to use to connect to database.driver
- driver to use for the database.properties
- configuration properties to be used by the connection
pool.
ConnectionPoolException
public void shutdown()
public Connection getConnection(DBKey key) throws NoConnectionsAvailableException
NoConnectionsAvailableException
public void releaseConnection(DBKey key, Connection c)
c
- Connection object being returned
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |