|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionPoolDefinitionIF
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.Class |
getInjectableCallableStatementInterface()
The class name of an interface that should be injected everytime we make a CallableStatement. |
java.lang.Class |
getInjectableConnectionInterface()
The class name of an interface that should be injected everytime we make a Connection. |
java.lang.Class |
getInjectablePreparedStatementInterface()
The class name of an interface that should be injected everytime we make a PreparedStatement. |
java.lang.Class |
getInjectableStatementInterface()
The class name of an interface that should be injected everytime we make a Statement. |
java.lang.String |
getJdbcDriverVersion()
|
java.lang.String |
getJmxAgentId()
Get a comma separated list of JMX agent ids (as used by MBeanServerFactory.findMBeanServer(String agentId) ) to register the pool to. |
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 |
isJmx()
Indicate wether this pool should be registered with JMX or not. |
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 |
---|
static final int DEFAULT_MAXIMUM_CONNECTION_LIFETIME
static final int DEFAULT_MAXIMUM_ACTIVE_TIME
static final int DEFAULT_PROTOTYPE_COUNT
static final int DEFAULT_MINIMUM_CONNECTION_COUNT
static final int DEFAULT_MAXIMUM_CONNECTION_COUNT
static final int DEFAULT_HOUSE_KEEPING_SLEEP_TIME
static final int DEFAULT_MAXIMUM_NEW_CONNECTIONS
DEFAULT_SIMULTANEOUS_BUILD_THROTTLE
instead
static final int DEFAULT_SIMULTANEOUS_BUILD_THROTTLE
static final int DEFAULT_OVERLOAD_WITHOUT_REFUSAL_THRESHOLD
static final int DEFAULT_RECENTLY_STARTED_THRESHOLD
static final int DEBUG_LEVEL_QUIET
static final int DEBUG_LEVEL_LOUD
static final java.lang.String USER_PROPERTY
static final java.lang.String PASSWORD_PROPERTY
static final java.lang.String FATAL_SQL_EXCEPTIONS_DELIMITER
getFatalSqlExceptions()
,
Constant Field ValuesMethod Detail |
---|
int getHouseKeepingSleepTime()
int getMaximumConnectionCount()
int getMaximumConnectionLifetime()
int getMaximumNewConnections()
getSimultaneousBuildThrottle()
instead
int getSimultaneousBuildThrottle()
int getMinimumConnectionCount()
java.lang.String getName()
getAlias()
instead.
java.lang.String getAlias()
java.lang.String getPassword()
int getPrototypeCount()
java.lang.String getUrl()
java.lang.String getUser()
java.lang.String getJdbcDriverVersion()
java.util.Properties getProperties()
getDelegateProperties()
instead
java.lang.String getDriver()
int getRecentlyStartedThreshold()
int getOverloadWithoutRefusalLifetime()
int getMaximumActiveTime()
int getDebugLevel()
isVerbose()
instead
java.util.Set getFatalSqlExceptions()
FATAL_SQL_EXCEPTIONS_DELIMITER
java.lang.String getHouseKeepingTestSql()
boolean isTestBeforeUse()
getHouseKeepingTestSql()
boolean isTestAfterUse()
getHouseKeepingTestSql()
java.lang.String getCompleteUrl()
boolean isVerbose()
boolean isTrace()
java.lang.String getStatistics()
java.lang.String getStatisticsLogLevel()
java.util.Properties getDelegateProperties()
java.lang.String getDelegateProperty(java.lang.String name)
java.lang.String getFatalSqlExceptionWrapper()
java.lang.String getInitialContextFactory()
java.lang.String getProviderUrl()
java.lang.String getSecurityAuthentication()
java.lang.String getSecurityPrincipal()
java.lang.String getSecurityCredentials()
java.lang.String getJndiName()
boolean isJmx()
java.lang.String getJmxAgentId()
MBeanServerFactory.findMBeanServer(String agentId)
) to register the pool to.
MBeanServerFactory.findMBeanServer(String agentId)
) to register the pool to.java.lang.Class getInjectableConnectionInterface()
java.lang.Class getInjectableStatementInterface()
java.lang.Class getInjectablePreparedStatementInterface()
java.lang.Class getInjectableCallableStatementInterface()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |