| java.lang.Object org.continuent.sequoia.controller.connection.AbstractConnectionManager org.continuent.sequoia.controller.connection.AbstractPoolConnectionManager org.continuent.sequoia.controller.connection.VariablePoolConnectionManager
VariablePoolConnectionManager | public class VariablePoolConnectionManager extends AbstractPoolConnectionManager (Code) | | This connection manager provides connection pooling with a dynamically
adjustable pool size.
If the maximum number of active connections is not reached, the
VariablePoolConnectionManager.getConnection() method creates a connection. Else, the execution is
blocked until a connection is freed or the timeout expires. blocked until a
connection is freed or the timeout expires.
Idle connections in the pool are removed after the timeout idleTimeout if the
minimum pool size has not been reached.
author: Emmanuel Cecchet author: Mathieu Peltier author: Nicolas Modrzyk version: 1.0 |
Inner Class :protected class RemoveIdleConnectionsThread extends Thread | |
Constructor Summary | |
public | VariablePoolConnectionManager(String backendUrl, String backendName, String rLogin, String rPassword, String driverPath, String driverClassName, int minPoolSize, int maxPoolSize, int idleTimeout, int waitTimeout) Creates a new VariablePoolConnectionManager instance with
the default minPoolSize(initial pool size to be initialized at startup).
Parameters: backendUrl - URL of the DatabaseBackend owning thisconnection manager Parameters: backendName - name of the DatabaseBackend owning thisconnection manager Parameters: rLogin - backend connection login to be used by this connectionmanager Parameters: rPassword - backend connection password to be used by this connectionmanager Parameters: driverPath - path for driver Parameters: driverClassName - class name for driver Parameters: minPoolSize - minimum pool size. Parameters: maxPoolSize - maximum pool size. | public | VariablePoolConnectionManager(String backendUrl, String backendName, String rLogin, String rPassword, String driverPath, String driverClassName, int initPoolSize, int minPoolSize, int maxPoolSize, int idleTimeout, int waitTimeout) Creates a new VariablePoolConnectionManager instance.
Parameters: backendUrl - URL of the DatabaseBackend owning thisconnection manager Parameters: backendName - name of the DatabaseBackend owning thisconnection manager Parameters: rLogin - backend connection login to be used by this connectionmanager Parameters: rPassword - backend connection password to be used by this connectionmanager Parameters: driverPath - path for driver Parameters: driverClassName - class name for driver Parameters: initPoolSize - initial pool size to be intialized at startup Parameters: minPoolSize - minimum pool size. Parameters: maxPoolSize - maximum pool size. |
VariablePoolConnectionManager | public VariablePoolConnectionManager(String backendUrl, String backendName, String rLogin, String rPassword, String driverPath, String driverClassName, int minPoolSize, int maxPoolSize, int idleTimeout, int waitTimeout)(Code) | | Creates a new VariablePoolConnectionManager instance with
the default minPoolSize(initial pool size to be initialized at startup).
Parameters: backendUrl - URL of the DatabaseBackend owning thisconnection manager Parameters: backendName - name of the DatabaseBackend owning thisconnection manager Parameters: rLogin - backend connection login to be used by this connectionmanager Parameters: rPassword - backend connection password to be used by this connectionmanager Parameters: driverPath - path for driver Parameters: driverClassName - class name for driver Parameters: minPoolSize - minimum pool size. Parameters: maxPoolSize - maximum pool size. 0 means no limit. Parameters: idleTimeout - time a connection can stay idle before begin released(removed from the pool) in seconds. 0 means no timeout: onceallocated, connections are never released. Parameters: waitTimeout - maximum time to wait for a connection in seconds. 0means no timeout: waits until one connection is freed. |
VariablePoolConnectionManager | public VariablePoolConnectionManager(String backendUrl, String backendName, String rLogin, String rPassword, String driverPath, String driverClassName, int initPoolSize, int minPoolSize, int maxPoolSize, int idleTimeout, int waitTimeout)(Code) | | Creates a new VariablePoolConnectionManager instance.
Parameters: backendUrl - URL of the DatabaseBackend owning thisconnection manager Parameters: backendName - name of the DatabaseBackend owning thisconnection manager Parameters: rLogin - backend connection login to be used by this connectionmanager Parameters: rPassword - backend connection password to be used by this connectionmanager Parameters: driverPath - path for driver Parameters: driverClassName - class name for driver Parameters: initPoolSize - initial pool size to be intialized at startup Parameters: minPoolSize - minimum pool size. Parameters: maxPoolSize - maximum pool size. 0 means no limit. Parameters: idleTimeout - time a connection can stay idle before begin released(removed from the pool) in seconds. 0 means no timeout: onceallocated, connections are never released. Parameters: waitTimeout - maximum time to wait for a connection in seconds. 0means no timeout: waits until one connection is freed. |
getIdleTimeout | public int getIdleTimeout()(Code) | | Gets the idle timeout.
a int value. |
getMaxPoolSize | public int getMaxPoolSize()(Code) | | Gets the max pool size.
a int value. |
getMinPoolSize | public int getMinPoolSize()(Code) | | Gets the min pool size.
a int value. |
getWaitTimeout | public int getWaitTimeout()(Code) | | Gets the wait timeout.
a int value. |
|
|