| |
|
| org.smartlib.pool.core.ConfigMonitor
All known Subclasses: org.smartlib.pool.core.PoolConfig,
ConfigMonitor | public interface ConfigMonitor (Code) | | This interface defines the behavior of the class used to monitor the
configuration of a pool. This interface defines the methods which can
be used to monitor the runtime status of the pool configuration.
author: Sachin Shekar Shetty version: 1.0, 02/08/01 |
getConnectionWaitTimeOut | public long getConnectionWaitTimeOut()(Code) | | The maximum waiting period for a thread to get a Connection. After this time interval, and ConnectionPoolException is thrown. |
getDefaultListener | public String getDefaultListener()(Code) | | Default listener class for connection leak. |
getDriver | public String getDriver()(Code) | | Driver name used to connect to database. |
getIncrement | public int getIncrement()(Code) | | Size of blocks of connections withdrawn at a time when no freeconnections are available. |
getLeakTimeOut | public long getLeakTimeOut()(Code) | | Time out for detecting leaks. |
getMaxConnectionIdleTime | public long getMaxConnectionIdleTime()(Code) | | This method returns the max-connection-idle-time value.
|
getMaxConnections | public int getMaxConnections()(Code) | | Max connections allowed in the pool. |
getMaxConnectionsForRelease | public int getMaxConnectionsForRelease()(Code) | | Maximum number of free connections allowed after which excessive connections are released. |
getMinConnections | public int getMinConnections()(Code) | | Minimun connections in the pool. |
getMultiPoolName | public String getMultiPoolName()(Code) | | Name of the pool. |
getPassword | public String getPassword()(Code) | | Password to connect to the database. |
getPollThreadTime | public long getPollThreadTime()(Code) | | Poll time interval for thread detecting leaks and managing the pool size. |
getUserName | public String getUserName()(Code) | | Username to connect to the database. |
getValidatorQuery | public String getValidatorQuery()(Code) | | This method returns the validatorQuery. This query is run each time to
check for its validity before the connection is leased out.
validatorQuery |
isAllowAnonymousConnections | public boolean isAllowAnonymousConnections()(Code) | | True if anonymous connections are allowed, i.e without specifying the owner. |
isAutoClose | public boolean isAutoClose()(Code) | | True if automotic closing of Statement, PreparedStatement,CallableStatement is enabled. |
isDefaultPool | public boolean isDefaultPool()(Code) | | True if this pool is the default pool. |
isDetectLeaks | public boolean isDetectLeaks()(Code) | | True if connction leak monitoring is enabled. |
isThreadStickiness | public boolean isThreadStickiness()(Code) | | This method returns the thread stickiness value
|
setThreadStickiness | public void setThreadStickiness(boolean threadStickiness)(Code) | | This method sets the thread stickiness value
|
|
|
|