Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.firebirdsql.pool.AbstractConnectionPool
org.firebirdsql.pool.BasicAbstractConnectionPool
public abstract class BasicAbstractConnectionPool
extends AbstractConnectionPool
implements ConnectionPoolConfiguration, ConnectionPoolDataSource, Serializable, Referenceable
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 | |
|
Method Summary | |
protected abstract BasicAbstractConnectionPool | |
static Object |
|
int | |
ConnectionPoolConfiguration |
|
Reference |
|
int |
|
abstract PrintWriter | |
abstract int | |
int |
|
int | |
int | |
int | |
int |
|
int | |
Object |
|
int | |
String | |
abstract PooledConnection | |
abstract PooledConnection |
|
protected String |
|
Reference |
|
int | |
boolean | |
boolean | |
boolean | |
boolean | |
static byte[] |
|
void |
|
void |
|
void |
|
abstract void |
|
abstract void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.firebirdsql.pool.AbstractConnectionPool | |
finalize , getConfiguration , getConnectionManager , getFreeSize , getLogger , getPoolName , getPooledConnection , getQueue , getTotalSize , getWorkingSize , physicalConnectionDeallocated , pooledObjectReleased , restart , shutdown |
protected BasicAbstractConnectionPool()
Create instance of this class. Default constructor introduced to make it available to subclasses.
public static Object deserialize(byte[] data)
public int getBlockingTimeout()
- Specified by:
- getBlockingTimeout in interface ConnectionPoolConfiguration
public ConnectionPoolConfiguration getConfiguration()
Get configuration of this data source.
- Overrides:
- getConfiguration in interface AbstractConnectionPool
- Returns:
- instance of
ConnectionPoolConfiguration
describing this data source.
public Reference getDefaultReference()
Get default JNDI reference for this datasource. This method is called if datasource is used in non-JCA environment.
- Returns:
- instance of
Reference
containing all information that allows to reconstruct the datasource.
public int getIdleTimeout()
Deprecated. non-standard name, use
getMaxIdleTime()
- Specified by:
- getIdleTimeout in interface ConnectionPoolConfiguration
public abstract PrintWriter getLogWriter() throws SQLException
public abstract int getLoginTimeout() throws SQLException
public int getMaxConnections()
Deprecated. non-standard name, use
getMaxPoolSize()
- Specified by:
- getMaxConnections in interface ConnectionPoolConfiguration
public int getMaxIdleTime()
- Specified by:
- getMaxIdleTime in interface ConnectionPoolConfiguration
public int getMaxPoolSize()
- Specified by:
- getMaxPoolSize in interface ConnectionPoolConfiguration
public int getMaxStatements()
public int getMinConnections()
Deprecated. non-standard name, use
getMinPoolSize()
- Specified by:
- getMinConnections in interface ConnectionPoolConfiguration
public int getMinPoolSize()
- Specified by:
- getMinPoolSize in interface ConnectionPoolConfiguration
public Object getObjectInstance(Object obj) throws Exception
Get object instance for the specified name in the specified context. This method constructs new datasource ifobj
representsReference
, whose factory class is equal to this class.
public int getPingInterval()
- Specified by:
- getPingInterval in interface ConnectionPoolConfiguration
public String getPingStatement()
- Specified by:
- getPingStatement in interface ConnectionPoolConfiguration
public abstract PooledConnection getPooledConnection() throws SQLException
public abstract PooledConnection getPooledConnection(String user, String password) throws SQLException
protected String getRefAddr(Reference ref, String type)
public Reference getReference()
Get JDNI reference.
- Returns:
- instance of
Reference
.
public int getRetryInterval()
- Specified by:
- getRetryInterval in interface ConnectionPoolConfiguration
public boolean isKeepStatements()
public boolean isPingable()
- Specified by:
- isPingable in interface ConnectionPoolConfiguration
public boolean isStatementPooling()
- Specified by:
- isStatementPooling in interface ConnectionPoolConfiguration
public static byte[] serialize(Object obj)
public void setBlockingTimeout(int blockingTimeout)
public void setIdleTimeout(int idleTimeout)
Deprecated. non-standard name, use
setMaxIdleTime(int)
public void setKeepStatements(boolean keepStatements)
public abstract void setLogWriter(PrintWriter printWriter) throws SQLException
public abstract void setLoginTimeout(int seconds) throws SQLException
public void setMaxConnections(int maxConnections)
Deprecated. non-standard name, use
setMaxPoolSize(int)
public void setMaxIdleTime(int maxIdleTime)
public void setMaxPoolSize(int maxPoolSize)
public void setMaxStatements(int maxStatements)
public void setMinConnections(int minConnections)
Deprecated. non-standard name, use
setMinPoolSize(int)
public void setMinPoolSize(int minPoolSize)
public void setPingInterval(int pingInterval)
public void setPingStatement(String pingStatement)
public void setPooling(boolean pooling)
public void setReference(Reference reference)
Set JNDI reference for this data source.
- Parameters:
reference
- JNDI reference.
public void setRetryInterval(int retryInterval)
public void setStatementPooling(boolean statementPooling)