Apache JMeter
2.0.1.20050615

org.apache.jmeter.protocol.jdbc.util
Class JMeter19ConnectionPool

java.lang.Object
  extended byorg.apache.jmeter.protocol.jdbc.util.JMeter19ConnectionPool
All Implemented Interfaces:
ConnectionPool

public class JMeter19ConnectionPool
extends Object
implements ConnectionPool

Version:
$Revision: 1.5 $
Author:
Jeremy Arnold

Field Summary
static String CONNECTIONS
           
static String MAXUSE
           
 
Constructor Summary
JMeter19ConnectionPool(DBKey key, Map properties)
           
 
Method Summary
 void close()
          Closes out this object and returns resources to the system.
 Connection getConnection()
          Rents out a database connection object.
 Connection newConnection(DBKey key)
          Returns a new java.sql.Connection object.
 void returnConnection(Connection c)
          Releases a connection back to the pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTIONS

public static final String CONNECTIONS
See Also:
Constant Field Values

MAXUSE

public static final String MAXUSE
See Also:
Constant Field Values
Constructor Detail

JMeter19ConnectionPool

public JMeter19ConnectionPool(DBKey key,
                              Map properties)
                       throws ConnectionPoolException
Method Detail

getConnection

public Connection getConnection()
                         throws ConnectionPoolException
Rents out a database connection object.

Specified by:
getConnection in interface ConnectionPool
Returns:
Connection object.
Throws:
ConnectionPoolException

returnConnection

public void returnConnection(Connection c)
Releases a connection back to the pool.

Specified by:
returnConnection in interface ConnectionPool
Parameters:
c - Connection object being returned

newConnection

public Connection newConnection(DBKey key)
                         throws SQLException
Returns a new java.sql.Connection object.

Throws:
SQLException

close

public void close()
Closes out this object and returns resources to the system.

Specified by:
close in interface ConnectionPool

Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.