connectionpool
Class PoolConfig

java.lang.Object
  |
  +--connectionpool.PoolConfig

public class PoolConfig
extends java.lang.Object
implements ConfigMonitor

This class encapsulates the configuration of the pool


Method Summary
 java.lang.String getConnectionLoaderClass()
          This method returns the fully qualified name of the Connection Loader class.
 java.lang.String getConnectionString()
           
 long getConnectionWaitTimeOut()
          This method returns the connectionWaitTimeOut value.
 java.lang.String getDefaultListener()
           
 java.lang.String getDriver()
           
 int getIncrement()
           
 long getLeakTimeOut()
           
 int getMaxConnections()
           
 int getMaxConnectionsForRelease()
          This method returns the name of the pool.
 int getMinConnections()
           
 java.lang.String getPassword()
          This method returns the password to connect to the database.
 long getPollThreadTime()
           
 java.lang.String getPoolName()
          This method returns the name of the pool.
 java.lang.String getUserName()
           
 java.lang.String getValidatorQuery()
          This method returns the validatorQuery.
 boolean isAllowAnonymousConnections()
          This method returns the name of the pool.
 boolean isAutoClose()
           
 boolean isDefaultPool()
           
 boolean isDetectLeaks()
           
 boolean isExternalPooling()
          This method returs a boolean.
 java.lang.String toString()
          You know what this does.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getPoolName

public java.lang.String getPoolName()
This method returns the name of the pool.
Specified by:
getPoolName in interface ConfigMonitor
Returns:
name of the pool.

getMaxConnections

public int getMaxConnections()
Specified by:
getMaxConnections in interface ConfigMonitor
Returns:
Max connections allowed in the pool.

getMinConnections

public int getMinConnections()
Specified by:
getMinConnections in interface ConfigMonitor
Returns:
minimun connections in the pool.

getIncrement

public int getIncrement()
Specified by:
getIncrement in interface ConfigMonitor
Returns:
size of blocks of connections withdrawn at a time when no free connections are available.

getUserName

public java.lang.String getUserName()
Specified by:
getUserName in interface ConfigMonitor
Returns:
username to connect to the database.

getPassword

public java.lang.String getPassword()
This method returns the password to connect to the database.
Specified by:
getPassword in interface ConfigMonitor
Returns:
password to connect to the database.

getConnectionString

public java.lang.String getConnectionString()
Specified by:
getConnectionString in interface ConfigMonitor
Returns:
connection string to connect to the database.

getDriver

public java.lang.String getDriver()
Specified by:
getDriver in interface ConfigMonitor
Returns:
driver name used to connect to database.

isDefaultPool

public boolean isDefaultPool()
Specified by:
isDefaultPool in interface ConfigMonitor
Returns:
true if this pool is the default pool.

isDetectLeaks

public boolean isDetectLeaks()
Specified by:
isDetectLeaks in interface ConfigMonitor
Returns:
true if connection leak monitoring is enabled.

getLeakTimeOut

public long getLeakTimeOut()
Specified by:
getLeakTimeOut in interface ConfigMonitor
Returns:
time out for detecting leaks.

getDefaultListener

public java.lang.String getDefaultListener()
Specified by:
getDefaultListener in interface ConfigMonitor
Returns:
default listener class for connection leak.

getPollThreadTime

public long getPollThreadTime()
Specified by:
getPollThreadTime in interface ConfigMonitor
Returns:
true if automotic closing of Statement ,PreparedStatement , CallableStatement is enabled once the connection is closed is enabled.

isAutoClose

public boolean isAutoClose()
Specified by:
isAutoClose in interface ConfigMonitor
Returns:
true if automatic closing of Statement ,PreparedStatement , CallableStatement is enabled once the connection is closed is enabled.

getMaxConnectionsForRelease

public int getMaxConnectionsForRelease()
This method returns the name of the pool.
Specified by:
getMaxConnectionsForRelease in interface ConfigMonitor
Returns:
maximum number of free connections allowed after which excessive connections are released .

isAllowAnonymousConnections

public boolean isAllowAnonymousConnections()
This method returns the name of the pool.
Specified by:
isAllowAnonymousConnections in interface ConfigMonitor
Returns:
true if anonymous connections are allowed , i.e without specifying the owner .

getConnectionLoaderClass

public java.lang.String getConnectionLoaderClass()
This method returns the fully qualified name of the Connection Loader class.
Specified by:
getConnectionLoaderClass in interface ConfigMonitor
Returns:
Fully qualified name of the class

isExternalPooling

public boolean isExternalPooling()
This method returs a boolean.
Returns:
true- If Smart pool is wrapped to another pool

getConnectionWaitTimeOut

public long getConnectionWaitTimeOut()
This method returns the connectionWaitTimeOut value.
Specified by:
getConnectionWaitTimeOut in interface ConfigMonitor

getValidatorQuery

public java.lang.String getValidatorQuery()
This method returns the validatorQuery.
Specified by:
getValidatorQuery in interface ConfigMonitor
Returns:
validatorQuery

toString

public java.lang.String toString()
You know what this does.
Overrides:
toString in class java.lang.Object