|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.firebirdsql.ds.RootCommonDataSource
org.firebirdsql.pool.AbstractConnectionPool
org.firebirdsql.pool.BasicAbstractConnectionPool
@Deprecated public abstract class BasicAbstractConnectionPool
Base class for connection pool implementations. Main feature of this class is
that it implements ConnectionPoolConfiguration
interface and releives developers from creating getters and setters for
pool configuration parameters. Additionally this class provides basic
functionality for JNDI-enabled connection pools.
No other functionality is available.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.firebirdsql.pool.AbstractConnectionPool |
|---|
AbstractConnectionPool.UserPasswordPair |
| Constructor Summary | |
|---|---|
protected |
BasicAbstractConnectionPool()
Deprecated. Create instance of this class. |
| Method Summary | |
|---|---|
protected abstract BasicAbstractConnectionPool |
createObjectInstance()
Deprecated. |
static java.lang.Object |
deserialize(byte[] data)
Deprecated. |
int |
getBlockingTimeout()
Deprecated. Get time during which ConnectionPoolDataSource.getPooledConnection()
can block. |
ConnectionPoolConfiguration |
getConfiguration()
Deprecated. Get configuration of this data source. |
javax.naming.Reference |
getDefaultReference()
Deprecated. Get default JNDI reference for this datasource. |
int |
getIdleTimeout()
Deprecated. non-standard name, use getMaxIdleTime() |
abstract int |
getLoginTimeout()
Deprecated. |
abstract java.io.PrintWriter |
getLogWriter()
Deprecated. |
int |
getMaxConnections()
Deprecated. non-standard name, use getMaxPoolSize() |
int |
getMaxIdleTime()
Deprecated. Get time after which idle connections will be deallocated. |
int |
getMaxPoolSize()
Deprecated. Get maximum number of physical connections that can be simultaneously open. |
int |
getMaxStatements()
Deprecated. |
int |
getMinConnections()
Deprecated. non-standard name, use getMinPoolSize() |
int |
getMinPoolSize()
Deprecated. Get minimum number of open JDBC connections that will be created when pool is started. |
java.lang.Object |
getObjectInstance(java.lang.Object obj)
Deprecated. Get object instance for the specified name in the specified context. |
int |
getPingInterval()
Deprecated. Get time interval after which connection should be pinged. |
java.lang.String |
getPingStatement()
Deprecated. Get SQL statement that will be used to ping connection. |
abstract javax.sql.PooledConnection |
getPooledConnection()
Deprecated. |
abstract javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.String password)
Deprecated. |
protected java.lang.String |
getRefAddr(javax.naming.Reference ref,
java.lang.String type)
Deprecated. |
javax.naming.Reference |
getReference()
Deprecated. Get JDNI reference. |
int |
getRetryInterval()
Deprecated. Get interval of getting connections retries. |
boolean |
isKeepStatements()
Deprecated. |
boolean |
isPingable()
Deprecated. Check if this pool supports pingable connections. |
boolean |
isPooling()
Deprecated. Check if this connection pool uses connection pooling, or just implements JDBC 2.0 SE interfaces. |
boolean |
isStatementPooling()
Deprecated. Check if this connection pool provides also prepared statement pooling. |
static byte[] |
serialize(java.lang.Object obj)
Deprecated. |
void |
setBlockingTimeout(int blockingTimeout)
Deprecated. |
void |
setIdleTimeout(int idleTimeout)
Deprecated. non-standard name, use setMaxIdleTime(int) |
void |
setKeepStatements(boolean keepStatements)
Deprecated. |
abstract void |
setLoginTimeout(int seconds)
Deprecated. |
abstract void |
setLogWriter(java.io.PrintWriter printWriter)
Deprecated. |
void |
setMaxConnections(int maxConnections)
Deprecated. non-standard name, use setMaxPoolSize(int) |
void |
setMaxIdleTime(int maxIdleTime)
Deprecated. |
void |
setMaxPoolSize(int maxPoolSize)
Deprecated. |
void |
setMaxStatements(int maxStatements)
Deprecated. |
void |
setMinConnections(int minConnections)
Deprecated. non-standard name, use setMinPoolSize(int) |
void |
setMinPoolSize(int minPoolSize)
Deprecated. |
void |
setPingInterval(int pingInterval)
Deprecated. |
void |
setPingStatement(java.lang.String pingStatement)
Deprecated. |
void |
setPooling(boolean pooling)
Deprecated. |
void |
setReference(javax.naming.Reference reference)
Deprecated. Set JNDI reference for this data source. |
void |
setRetryInterval(int retryInterval)
Deprecated. |
void |
setStatementPooling(boolean statementPooling)
Deprecated. |
| Methods inherited from class org.firebirdsql.pool.AbstractConnectionPool |
|---|
finalize, getConnectionManager, getFreeSize, getLogger, getPooledConnection, getPoolName, getQueue, getTotalSize, getWorkingSize, physicalConnectionDeallocated, pooledObjectReleased, restart, shutdown |
| Methods inherited from class org.firebirdsql.ds.RootCommonDataSource |
|---|
getParentLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BasicAbstractConnectionPool()
| Method Detail |
|---|
public abstract int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLException
public abstract void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLException
public abstract java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.CommonDataSourcegetLogWriter in class RootCommonDataSourcejava.sql.SQLException
public abstract void setLogWriter(java.io.PrintWriter printWriter)
throws java.sql.SQLException
setLogWriter in interface javax.sql.CommonDataSourcesetLogWriter in class RootCommonDataSourcejava.sql.SQLException
public abstract javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLException
public abstract javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionpublic ConnectionPoolConfiguration getConfiguration()
AbstractConnectionPool
getConfiguration in class AbstractConnectionPoolConnectionPoolConfiguration describing
this data source.public int getBlockingTimeout()
ConnectionPoolConfigurationConnectionPoolDataSource.getPooledConnection()
can block. By default method blocks forever.
getBlockingTimeout in interface ConnectionPoolConfigurationInteger.MAX_VALUE
indicates blocking forever.public void setBlockingTimeout(int blockingTimeout)
public int getIdleTimeout()
getMaxIdleTime()
ConnectionPoolConfiguration
getIdleTimeout in interface ConnectionPoolConfigurationInteger.MAX_VALUE
indicates that idle connections are not removed.public void setIdleTimeout(int idleTimeout)
setMaxIdleTime(int)
public int getMaxIdleTime()
ConnectionPoolConfiguration
getMaxIdleTime in interface ConnectionPoolConfigurationInteger.MAX_VALUE
indicates that idle connections are not removed.public void setMaxIdleTime(int maxIdleTime)
public int getMaxConnections()
getMaxPoolSize()
ConnectionPoolConfiguration
getMaxConnections in interface ConnectionPoolConfigurationpublic void setMaxConnections(int maxConnections)
setMaxPoolSize(int)
public int getMaxPoolSize()
ConnectionPoolConfiguration
getMaxPoolSize in interface ConnectionPoolConfigurationpublic void setMaxPoolSize(int maxPoolSize)
public int getMinConnections()
getMinPoolSize()
ConnectionPoolConfiguration
getMinConnections in interface ConnectionPoolConfigurationpublic void setMinConnections(int minConnections)
setMinPoolSize(int)
public int getMinPoolSize()
ConnectionPoolConfiguration
getMinPoolSize in interface ConnectionPoolConfigurationpublic void setMinPoolSize(int minPoolSize)
public int getPingInterval()
ConnectionPoolConfiguration
getPingInterval in interface ConnectionPoolConfigurationpublic void setPingInterval(int pingInterval)
public java.lang.String getPingStatement()
ConnectionPoolConfigurationExamples of ping SQL statements:
"SELECT CAST(1 AS INTEGER) FROM DUAL"
"SELECT CAST(1 AS INTEGER) FROM RDB$DATABASE"
getPingStatement in interface ConnectionPoolConfigurationpublic void setPingStatement(java.lang.String pingStatement)
public int getRetryInterval()
ConnectionPoolConfiguration
getRetryInterval in interface ConnectionPoolConfigurationpublic void setRetryInterval(int retryInterval)
public boolean isPingable()
ConnectionPoolConfiguration
isPingable in interface ConnectionPoolConfigurationtrue if this pool supports pingable connections.public boolean isPooling()
ConnectionPoolConfigurationjava.sql.Driver.
isPooling in interface ConnectionPoolConfigurationtrue if pooling is enabled.public void setPooling(boolean pooling)
public boolean isStatementPooling()
ConnectionPoolConfiguration
isStatementPooling in interface ConnectionPoolConfigurationtrue if prepared statement pooling is enabled.public void setStatementPooling(boolean statementPooling)
public boolean isKeepStatements()
public void setKeepStatements(boolean keepStatements)
public int getMaxStatements()
public void setMaxStatements(int maxStatements)
protected abstract BasicAbstractConnectionPool createObjectInstance()
public java.lang.Object getObjectInstance(java.lang.Object obj)
throws java.lang.Exception
obj represents
Reference, whose factory class is equal to this class.
java.lang.Exception
protected java.lang.String getRefAddr(javax.naming.Reference ref,
java.lang.String type)
public javax.naming.Reference getReference()
getReference in interface javax.naming.ReferenceableReference.public void setReference(javax.naming.Reference reference)
reference - JNDI reference.public javax.naming.Reference getDefaultReference()
Reference containing all information
that allows to reconstruct the datasource.public static byte[] serialize(java.lang.Object obj)
public static java.lang.Object deserialize(byte[] data)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||