@Plugin(name="PoolingDriver", category="Core", elementType="connectionSource", printObject=true) public final class PoolingDriverConnectionSource extends AbstractDriverManagerConnectionSource
ConnectionSource
that uses a JDBC connection string, a user name, and a password to call
DriverManager.getConnection(String, String, String)
. The connections are served from an
Apache Commons DBCP pooling driver.Modifier and Type | Class and Description |
---|---|
static class |
PoolingDriverConnectionSource.Builder<B extends PoolingDriverConnectionSource.Builder<B>>
Builds PoolingDriverConnectionSource instances.
|
LifeCycle.State
Modifier and Type | Field and Description |
---|---|
static String |
URL_PREFIX |
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT
Constructor and Description |
---|
PoolingDriverConnectionSource(String driverClassName,
String connectionString,
char[] userName,
char[] password,
Property[] properties,
String poolName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getActualConnectionString() |
static <B extends PoolingDriverConnectionSource.Builder<B>> |
newPoolingDriverConnectionSourceBuilder() |
boolean |
stop(long timeout,
TimeUnit timeUnit) |
getConnection, getConnectionString, getDriverClassName, getLogger, getPassword, getProperties, getUserName, loadDriver, loadDriver, toProperties, toString, toString
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, start, stop, stop
public static final String URL_PREFIX
@Deprecated public PoolingDriverConnectionSource(String driverClassName, String connectionString, char[] userName, char[] password, Property[] properties, String poolName) throws SQLException
newPoolingDriverConnectionSourceBuilder()
.SQLException
@PluginBuilderFactory public static <B extends PoolingDriverConnectionSource.Builder<B>> B newPoolingDriverConnectionSourceBuilder()
public String getActualConnectionString()
getActualConnectionString
in class AbstractDriverManagerConnectionSource
public boolean stop(long timeout, TimeUnit timeUnit)
stop
in interface LifeCycle2
stop
in class AbstractLifeCycle
Copyright © 1999-1969 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.