connectionpool
Interface ConfigMonitor
- All Known Implementing Classes:
- PoolConfig
- public abstract interface ConfigMonitor
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.
getPoolName
public java.lang.String getPoolName()
- Returns:
- Name of the pool.
getMaxConnections
public int getMaxConnections()
- Returns:
- Max connections allowed in the pool.
getMinConnections
public int getMinConnections()
- Returns:
- Minimun connections in the pool.
getIncrement
public int getIncrement()
- Returns:
- Size of blocks of connections withdrawn at a time when no free
connections are available.
getUserName
public java.lang.String getUserName()
- Returns:
- Username to connect to the database.
getPassword
public java.lang.String getPassword()
- Returns:
- Password to connect to the database.
getConnectionString
public java.lang.String getConnectionString()
- Returns:
- Connection string to connect to the database.
getDriver
public java.lang.String getDriver()
- Returns:
- Driver name used to connect to database.
isDetectLeaks
public boolean isDetectLeaks()
- Returns:
- True if connction leak monitoring is enabled.
isDefaultPool
public boolean isDefaultPool()
- Returns:
- True if this pool is the default pool.
getLeakTimeOut
public long getLeakTimeOut()
- Returns:
- Time out for detecting leaks.
getDefaultListener
public java.lang.String getDefaultListener()
- Returns:
- Default listener class for connection leak.
getPollThreadTime
public long getPollThreadTime()
- Returns:
- Poll time interval for thread detecting leaks and managing
the pool size.
isAutoClose
public boolean isAutoClose()
- Returns:
- True if automotic closing of Statement, PreparedStatement,
CallableStatement is enabled.
isAllowAnonymousConnections
public boolean isAllowAnonymousConnections()
- Returns:
- True if anonymous connections are allowed, i.e
without specifying the owner.
getMaxConnectionsForRelease
public int getMaxConnectionsForRelease()
- Returns:
- Maximum number of free connections allowed after which
excessive connections are released.
getConnectionWaitTimeOut
public long getConnectionWaitTimeOut()
- Returns:
- The maximum waiting period for a thread to get a Connection.
After this time interval, and ConnectionPoolException is thrown.
getConnectionLoaderClass
public java.lang.String getConnectionLoaderClass()
- Returns:
- The Connection loader class when external pooling is enabled.
getValidatorQuery
public java.lang.String getValidatorQuery()
- This method returns the validatorQuery. This query is run each time to
check for its validity before the connection is leased out.
- Returns:
- validatorQuery