|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A full definition of everything to do with a connection. You can get one of these
from ProxoolFacade
.
String alias = "myPool"; ConnectionPoolDefinitionIF cpd = ProxoolFacade.getConnectionPoolDefinition(alias);If you want to update the definition you should either update the properties definition next time you
ask
for a connection or call
Proxool
directly.
Field Summary | |
static int |
DEBUG_LEVEL_LOUD
|
static int |
DEBUG_LEVEL_QUIET
|
static int |
DEFAULT_HOUSE_KEEPING_SLEEP_TIME
30000 (30 Seconds) |
static int |
DEFAULT_MAXIMUM_ACTIVE_TIME
300000 (5 minutes) |
static int |
DEFAULT_MAXIMUM_CONNECTION_COUNT
15 |
static int |
DEFAULT_MAXIMUM_CONNECTION_LIFETIME
4 * 60 * 60 * 1000 (4 hours) |
static int |
DEFAULT_MAXIMUM_NEW_CONNECTIONS
Deprecated. use DEFAULT_SIMULTANEOUS_BUILD_THROTTLE instead |
static int |
DEFAULT_MINIMUM_CONNECTION_COUNT
0 |
static int |
DEFAULT_OVERLOAD_WITHOUT_REFUSAL_THRESHOLD
60000 |
static int |
DEFAULT_PROTOTYPE_COUNT
0 |
static int |
DEFAULT_RECENTLY_STARTED_THRESHOLD
60000 |
static int |
DEFAULT_SIMULTANEOUS_BUILD_THROTTLE
10 |
static java.lang.String |
FATAL_SQL_EXCEPTIONS_DELIMITER
|
static java.lang.String |
PASSWORD_PROPERTY
|
static java.lang.String |
USER_PROPERTY
|
Method Summary | |
java.lang.String |
getAlias()
The name associated with this connection pool. |
java.lang.String |
getCompleteUrl()
The URL that was used to define this pool. |
int |
getDebugLevel()
Deprecated. use isVerbose() instead |
java.util.Properties |
getDelegateProperties()
Get all of the properties that are defined on the delegated driver. |
java.lang.String |
getDelegateProperty(java.lang.String name)
|
java.lang.String |
getDriver()
|
java.util.Set |
getFatalSqlExceptions()
Get the list of fatal SQL exception (Strings) fragments that will trigger the death of a Connection. |
java.lang.String |
getFatalSqlExceptionWrapper()
If this is not-null then any fatal SQLException is wrapped up inside an instance of this class. |
int |
getHouseKeepingSleepTime()
This is the time the house keeping thread sleeps for between checks. |
java.lang.String |
getHouseKeepingTestSql()
The test SQL that we perform to see if a connection is alright. |
java.lang.String |
getInitialContextFactory()
JNDI property |
java.lang.String |
getJdbcDriverVersion()
|
java.lang.String |
getJndiName()
JNDI property |
int |
getMaximumActiveTime()
If the housekeeper comes across a thread that has been active for longer than this then it will kill it. |
int |
getMaximumConnectionCount()
The maximum number of connections to the database |
int |
getMaximumConnectionLifetime()
The maximum amount of time that a connection exists for before it is killed (recycled). |
int |
getMaximumNewConnections()
Deprecated. use more descriptive getSimultaneousBuildThrottle() instead |
int |
getMinimumConnectionCount()
The minimum number of connections we will keep open, regardless of whether anyone needs them or not. |
java.lang.String |
getName()
Deprecated. use getAlias() instead. |
int |
getOverloadWithoutRefusalLifetime()
This is the time in milliseconds after the last time that we refused a connection that we still consider ourselves to be overloaded. |
java.lang.String |
getPassword()
The password to use to login to the database |
java.util.Properties |
getProperties()
Deprecated. use less ambiguous getDelegateProperties() instead |
int |
getPrototypeCount()
This is the number of spare connections we will strive to have. |
java.lang.String |
getProviderUrl()
JNDI property |
int |
getRecentlyStartedThreshold()
As long as we have one connection that was started within this threshold then we consider the pool to be up. |
java.lang.String |
getSecurityAuthentication()
JNDI property |
java.lang.String |
getSecurityCredentials()
JNDI property |
java.lang.String |
getSecurityPrincipal()
JNDI property |
int |
getSimultaneousBuildThrottle()
In order to prevent overloading, this is the maximum number of connections that you can have that are in the progress of being made. |
java.lang.String |
getStatistics()
The sample length (in seconds) when taking statistical information, or null to disable statistics. |
java.lang.String |
getStatisticsLogLevel()
Whether statistics are logged as they are produced. |
java.lang.String |
getUrl()
This is the URL used to connect to the database. |
java.lang.String |
getUser()
|
boolean |
isTestAfterUse()
Whether we test each connection after it is closed (that is, returned to the pool) |
boolean |
isTestBeforeUse()
Whether we test each connection before it is served |
boolean |
isTrace()
if this is true then we will log each execution. |
boolean |
isVerbose()
If this is true then we start logging a lot of stuff everytime we serve a connection and everytime the house keeper and prototyper run. |
Field Detail |
public static final int DEFAULT_MAXIMUM_CONNECTION_LIFETIME
public static final int DEFAULT_MAXIMUM_ACTIVE_TIME
public static final int DEFAULT_PROTOTYPE_COUNT
public static final int DEFAULT_MINIMUM_CONNECTION_COUNT
public static final int DEFAULT_MAXIMUM_CONNECTION_COUNT
public static final int DEFAULT_HOUSE_KEEPING_SLEEP_TIME
public static final int DEFAULT_MAXIMUM_NEW_CONNECTIONS
DEFAULT_SIMULTANEOUS_BUILD_THROTTLE
instead
public static final int DEFAULT_SIMULTANEOUS_BUILD_THROTTLE
public static final int DEFAULT_OVERLOAD_WITHOUT_REFUSAL_THRESHOLD
public static final int DEFAULT_RECENTLY_STARTED_THRESHOLD
public static final int DEBUG_LEVEL_QUIET
public static final int DEBUG_LEVEL_LOUD
public static final java.lang.String USER_PROPERTY
public static final java.lang.String PASSWORD_PROPERTY
public static final java.lang.String FATAL_SQL_EXCEPTIONS_DELIMITER
getFatalSqlExceptions()
,
Constant Field ValuesMethod Detail |
public int getHouseKeepingSleepTime()
public int getMaximumConnectionCount()
public int getMaximumConnectionLifetime()
public int getMaximumNewConnections()
getSimultaneousBuildThrottle()
instead
public int getSimultaneousBuildThrottle()
public int getMinimumConnectionCount()
public java.lang.String getName()
getAlias()
instead.
public java.lang.String getAlias()
public java.lang.String getPassword()
public int getPrototypeCount()
public java.lang.String getUrl()
public java.lang.String getUser()
public java.lang.String getJdbcDriverVersion()
public java.util.Properties getProperties()
getDelegateProperties()
instead
public java.lang.String getDriver()
public int getRecentlyStartedThreshold()
public int getOverloadWithoutRefusalLifetime()
public int getMaximumActiveTime()
public int getDebugLevel()
isVerbose()
instead
public java.util.Set getFatalSqlExceptions()
FATAL_SQL_EXCEPTIONS_DELIMITER
public java.lang.String getHouseKeepingTestSql()
public boolean isTestBeforeUse()
getHouseKeepingTestSql()
public boolean isTestAfterUse()
getHouseKeepingTestSql()
public java.lang.String getCompleteUrl()
public boolean isVerbose()
public boolean isTrace()
public java.lang.String getStatistics()
public java.lang.String getStatisticsLogLevel()
public java.util.Properties getDelegateProperties()
public java.lang.String getDelegateProperty(java.lang.String name)
public java.lang.String getFatalSqlExceptionWrapper()
public java.lang.String getInitialContextFactory()
public java.lang.String getProviderUrl()
public java.lang.String getSecurityAuthentication()
public java.lang.String getSecurityPrincipal()
public java.lang.String getSecurityCredentials()
public java.lang.String getJndiName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |