|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.logicalcobwebs.proxool.ConnectionPoolDefinition
class ConnectionPoolDefinition
This defines a connection pool: the URL to connect to the database, the delegate driver to use, and how the pool behaves.
Field Summary | |
---|---|
private java.lang.String |
alias
|
private java.util.Properties |
changedInfo
|
private java.util.Properties |
completeInfo
|
private java.lang.String |
completeUrl
|
private boolean |
connectionPropertiesChanged
Whether any of the properties that effect an individual connection have changed. |
private java.util.Properties |
delegateProperties
|
private java.lang.String |
driver
|
private java.util.Set |
fatalSqlExceptions
|
private java.lang.String |
fatalSqlExceptionsAsString
A String of all the fatalSqlExceptions delimited by ConnectionPoolDefinitionIF.FATAL_SQL_EXCEPTIONS_DELIMITER |
private java.lang.String |
fatalSqlExceptionWrapper
|
private int |
houseKeepingSleepTime
|
private java.lang.String |
houseKeepingTestSql
|
private java.lang.String |
initialContextFactory
|
private java.lang.Class |
injectableCallableStatementInterface
|
private java.lang.Class |
injectableConnectionInterface
|
private java.lang.Class |
injectablePreparedStatementInterface
|
private java.lang.Class |
injectableStatementInterface
|
private boolean |
jmx
|
private java.lang.String |
jmxAgentId
|
private java.lang.String |
jndiName
|
private static Log |
LOG
|
private int |
maximumActiveTime
|
private int |
maximumConnectionCount
|
private int |
maximumConnectionLifetime
|
private int |
minimumConnectionCount
|
private int |
overloadWithoutRefusalLifetime
|
private Log |
poolLog
This log has a category based on the alias |
private int |
prototypeCount
|
private java.lang.String |
providerUrl
|
private int |
recentlyStartedThreshold
|
private java.lang.String |
securityAuthentication
|
private java.lang.String |
securityCredentials
|
private java.lang.String |
securityPrincipal
|
private int |
simultaneousBuildThrottle
|
private java.lang.String |
statistics
|
private java.lang.String |
statisticsLogLevel
|
private boolean |
testAfterUse
|
private boolean |
testBeforeUse
|
private boolean |
trace
|
private java.lang.String |
url
|
private boolean |
verbose
|
Constructor Summary | |
---|---|
|
ConnectionPoolDefinition()
So we can set the values one by one if we want |
protected |
ConnectionPoolDefinition(java.lang.String url,
java.util.Properties info,
boolean explicitRegister)
Construct a new definition |
Method Summary | |
---|---|
private void |
clearChangedInfo()
|
protected java.lang.Object |
clone()
Deep clone of definition |
private boolean |
doChange(java.lang.String url,
java.util.Properties info,
boolean pretend,
boolean implicitRegister)
|
java.lang.String |
getAlias()
The name associated with this connection pool. |
protected java.util.Properties |
getCompleteInfo()
Get all the properties used to define this 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)
Get a property |
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 |
getInjectableCallableStatememtInterfaceName()
|
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.String |
getInjectableConnectionInterfaceName()
|
java.lang.Class |
getInjectablePreparedStatementInterface()
The class name of an interface that should be injected everytime we make a PreparedStatement. |
java.lang.String |
getInjectablePreparedStatementInterfaceName()
|
java.lang.Class |
getInjectableStatementInterface()
The class name of an interface that should be injected everytime we make a Statement. |
java.lang.String |
getInjectableStatementInterfaceName()
|
private int |
getInt(java.lang.String key,
java.lang.String value)
|
private java.lang.Class |
getInterface(java.lang.String className)
|
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() |
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()
|
private static boolean |
isChanged(java.lang.String oldValue,
java.lang.String newValue)
|
boolean |
isEqual(java.lang.String url,
java.util.Properties info)
Returns true if redefining the pool using
these parameters would not change the definition. |
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. |
private void |
logChange(boolean proxoolProperty,
java.lang.String key,
java.lang.String value)
|
protected void |
redefine(java.lang.String url,
java.util.Properties info)
Redefine the definition. |
private void |
reset()
Reset all properties to their default values |
void |
setAlias(java.lang.String alias)
|
private boolean |
setAnyProperty(java.lang.String key,
java.lang.String value,
boolean pretend)
|
void |
setCompleteInfo(java.util.Properties completeInfo)
Overwrite the complete info |
void |
setCompleteUrl(java.lang.String completeUrl)
|
void |
setDelegateProperties(java.util.Properties delegateProperties)
Overwrite the delegate properties |
void |
setDelegateProperty(java.lang.String name,
java.lang.String value)
Set a property |
void |
setDriver(java.lang.String driver)
|
void |
setFatalSqlExceptionsAsString(java.lang.String fatalSqlExceptionsAsString)
|
void |
setFatalSqlExceptionWrapper(java.lang.String fatalSqlExceptionWrapper)
|
private boolean |
setHouseKeeperProperty(java.lang.String key,
java.lang.String value,
boolean pretend)
Subset of setAnyProperty(java.lang.String, java.lang.String, boolean) to avoid overly long method. |
void |
setHouseKeepingSleepTime(int houseKeepingSleepTime)
|
void |
setHouseKeepingTestSql(java.lang.String houseKeepingTestSql)
|
void |
setInitialContextFactory(java.lang.String initialContextFactory)
|
void |
setInjectableCallableStatementInterfaceName(java.lang.String injectableCallableStatementInterfaceName)
|
void |
setInjectableConnectionInterfaceName(java.lang.String injectableConnectionInterfaceName)
|
void |
setInjectablePreparedStatementInterfaceName(java.lang.String injectablePreparedStatementInterfaceName)
|
private boolean |
setInjectableProperty(java.lang.String key,
java.lang.String value,
boolean pretend)
Subset of setAnyProperty(java.lang.String, java.lang.String, boolean) to avoid overly long method |
void |
setInjectableStatementInterfaceName(java.lang.String injectableStatementInterfaceName)
|
void |
setJmx(boolean jmx)
|
void |
setJmxAgentId(java.lang.String jmxAgentId)
|
void |
setJndiName(java.lang.String jndiName)
|
private boolean |
setJndiProperty(java.lang.String key,
java.lang.String value,
boolean pretend)
Subset of setAnyProperty(java.lang.String, java.lang.String, boolean) to avoid overly long method |
private boolean |
setLoggingProperty(java.lang.String key,
java.lang.String value,
boolean pretend)
Subset of setAnyProperty(java.lang.String, java.lang.String, boolean) to avoid overly long method |
void |
setMaximumActiveTime(int maximumActiveTime)
|
void |
setMaximumConnectionCount(int maximumConnectionCount)
|
void |
setMaximumConnectionLifetime(int maximumConnectionLifetime)
|
void |
setMaximumNewConnections(int maximumNewConnections)
Deprecated. use more descriptive setSimultaneousBuildThrottle(int) instead |
void |
setMinimumConnectionCount(int minimumConnectionCount)
|
void |
setOverloadWithoutRefusalLifetime(int overloadWithoutRefusalLifetime)
|
void |
setPassword(java.lang.String password)
|
void |
setPrototypeCount(int prototypeCount)
|
void |
setProviderUrl(java.lang.String providerUrl)
|
void |
setRecentlyStartedThreshold(int recentlyStartedThreshold)
|
void |
setSecurityAuthentication(java.lang.String securityAuthentication)
|
void |
setSecurityCredentials(java.lang.String securityCredentials)
|
void |
setSecurityPrincipal(java.lang.String securityPrincipal)
|
void |
setSimultaneousBuildThrottle(int simultaneousBuildThrottle)
|
void |
setStatistics(java.lang.String statistics)
|
void |
setStatisticsLogLevel(java.lang.String statisticsLogLevel)
|
void |
setTestAfterUse(boolean testAfterUse)
|
void |
setTestBeforeUse(boolean testBeforeUse)
|
void |
setTrace(boolean trace)
|
void |
setUrl(java.lang.String url)
|
void |
setUser(java.lang.String user)
|
void |
setVerbose(boolean verbose)
|
java.lang.String |
toString()
|
protected void |
update(java.lang.String url,
java.util.Properties info)
Update the definition. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final Log LOG
private Log poolLog
private java.lang.String alias
private java.lang.String jndiName
private java.lang.String initialContextFactory
private java.lang.String providerUrl
private java.lang.String securityAuthentication
private java.lang.String securityPrincipal
private java.lang.String securityCredentials
private java.util.Properties delegateProperties
private java.util.Properties completeInfo
private java.util.Properties changedInfo
private boolean connectionPropertiesChanged
private java.lang.String url
private java.lang.String completeUrl
private java.lang.String driver
private int maximumConnectionLifetime
private int prototypeCount
private int minimumConnectionCount
private int maximumConnectionCount
private int houseKeepingSleepTime
private int simultaneousBuildThrottle
private int recentlyStartedThreshold
private int overloadWithoutRefusalLifetime
private int maximumActiveTime
private boolean verbose
private boolean trace
private java.lang.String statistics
private java.lang.String statisticsLogLevel
private java.util.Set fatalSqlExceptions
private java.lang.String fatalSqlExceptionsAsString
ConnectionPoolDefinitionIF.FATAL_SQL_EXCEPTIONS_DELIMITER
private java.lang.String fatalSqlExceptionWrapper
private java.lang.String houseKeepingTestSql
private boolean testBeforeUse
private boolean testAfterUse
private boolean jmx
private java.lang.String jmxAgentId
private java.lang.Class injectableConnectionInterface
private java.lang.Class injectableStatementInterface
private java.lang.Class injectablePreparedStatementInterface
private java.lang.Class injectableCallableStatementInterface
Constructor Detail |
---|
public ConnectionPoolDefinition()
protected ConnectionPoolDefinition(java.lang.String url, java.util.Properties info, boolean explicitRegister) throws ProxoolException
url
- the url that defines this poolinfo
- additional properties (for Proxool and the delegate
driver)explicitRegister
- set to true if we are registering a new pool explicitly, or false
if it's just because we are serving a url that we haven't come across before
ProxoolException
- if anything goes wrongMethod Detail |
---|
protected void update(java.lang.String url, java.util.Properties info) throws ProxoolException
url
- the url that defines this poolinfo
- additional properties (for Proxool and the delegate
driver)
ProxoolException
- if anything goes wrongprotected void redefine(java.lang.String url, java.util.Properties info) throws ProxoolException
url
- the url that defines this poolinfo
- additional properties (for Proxool and the delegate
driver)
ProxoolException
- if anything goes wrongprivate boolean doChange(java.lang.String url, java.util.Properties info, boolean pretend, boolean implicitRegister) throws ProxoolException
ProxoolException
private void logChange(boolean proxoolProperty, java.lang.String key, java.lang.String value)
private boolean setAnyProperty(java.lang.String key, java.lang.String value, boolean pretend) throws ProxoolException
ProxoolException
private boolean setLoggingProperty(java.lang.String key, java.lang.String value, boolean pretend)
setAnyProperty(java.lang.String, java.lang.String, boolean)
to avoid overly long method
setAnyProperty(java.lang.String, java.lang.String, boolean)
private boolean setInjectableProperty(java.lang.String key, java.lang.String value, boolean pretend)
setAnyProperty(java.lang.String, java.lang.String, boolean)
to avoid overly long method
setAnyProperty(java.lang.String, java.lang.String, boolean)
private boolean setHouseKeeperProperty(java.lang.String key, java.lang.String value, boolean pretend) throws ProxoolException
setAnyProperty(java.lang.String, java.lang.String, boolean)
to avoid overly long method.
ProxoolException
setAnyProperty(java.lang.String, java.lang.String, boolean)
private boolean setJndiProperty(java.lang.String key, java.lang.String value, boolean pretend)
setAnyProperty(java.lang.String, java.lang.String, boolean)
to avoid overly long method
setAnyProperty(java.lang.String, java.lang.String, boolean)
private int getInt(java.lang.String key, java.lang.String value) throws ProxoolException
ProxoolException
private static boolean isChanged(java.lang.String oldValue, java.lang.String newValue)
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
private void clearChangedInfo()
private void reset()
protected java.util.Properties getCompleteInfo()
public void setCompleteInfo(java.util.Properties completeInfo)
completeInfo
- the new propertiesgetCompleteInfo()
public java.lang.String getUser()
getUser
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getUser()
public void setUser(java.lang.String user)
ConnectionPoolDefinitionIF.getUser()
public java.lang.String getPassword()
ConnectionPoolDefinitionIF
getPassword
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getPassword()
public void setPassword(java.lang.String password)
ConnectionPoolDefinitionIF.getPassword()
public java.lang.String getJdbcDriverVersion()
getJdbcDriverVersion
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getJdbcDriverVersion()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String getName()
getAlias()
getName
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getName()
public java.lang.String getAlias()
ConnectionPoolDefinitionIF
getAlias
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getAlias()
public void setAlias(java.lang.String alias)
ConnectionPoolDefinitionIF.getAlias()
public int getMaximumConnectionLifetime()
ConnectionPoolDefinitionIF
getMaximumConnectionLifetime
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getMaximumConnectionLifetime()
public void setMaximumConnectionLifetime(int maximumConnectionLifetime)
ConnectionPoolDefinitionIF.getMaximumConnectionLifetime()
public int getPrototypeCount()
ConnectionPoolDefinitionIF
getPrototypeCount
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getPrototypeCount()
public void setPrototypeCount(int prototypeCount)
ConnectionPoolDefinitionIF.getPrototypeCount()
public int getMinimumConnectionCount()
ConnectionPoolDefinitionIF
getMinimumConnectionCount
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getMinimumConnectionCount()
public void setMinimumConnectionCount(int minimumConnectionCount)
ConnectionPoolDefinitionIF.getMinimumConnectionCount()
public int getMaximumConnectionCount()
ConnectionPoolDefinitionIF
getMaximumConnectionCount
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getMaximumConnectionCount()
public void setMaximumConnectionCount(int maximumConnectionCount)
ConnectionPoolDefinitionIF.getMaximumConnectionCount()
public int getHouseKeepingSleepTime()
ConnectionPoolDefinitionIF
getHouseKeepingSleepTime
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getHouseKeepingSleepTime()
public void setHouseKeepingSleepTime(int houseKeepingSleepTime)
ConnectionPoolDefinitionIF.getHouseKeepingSleepTime()
public int getMaximumNewConnections()
getSimultaneousBuildThrottle()
instead
ConnectionPoolDefinitionIF
getMaximumNewConnections
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getMaximumNewConnections()
public void setMaximumNewConnections(int maximumNewConnections)
setSimultaneousBuildThrottle(int)
instead
ConnectionPoolDefinitionIF.getMaximumNewConnections()
public int getSimultaneousBuildThrottle()
ConnectionPoolDefinitionIF
getSimultaneousBuildThrottle
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getSimultaneousBuildThrottle()
public void setSimultaneousBuildThrottle(int simultaneousBuildThrottle)
ConnectionPoolDefinitionIF.getSimultaneousBuildThrottle()
public java.util.Properties getProperties()
getDelegateProperties()
instead
ConnectionPoolDefinitionIF
getProperties
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getProperties()
public java.util.Properties getDelegateProperties()
ConnectionPoolDefinitionIF
getDelegateProperties
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getDelegateProperties()
public java.lang.String getDelegateProperty(java.lang.String name)
getDelegateProperty
in interface ConnectionPoolDefinitionIF
name
- the name of the property
public void setDelegateProperty(java.lang.String name, java.lang.String value)
name
- the name of the propertyvalue
- the value of the propertyConnectionPoolDefinitionIF.getProperties()
public void setDelegateProperties(java.util.Properties delegateProperties)
delegateProperties
- the new propertiesConnectionPoolDefinitionIF.getProperties()
public java.lang.String getUrl()
ConnectionPoolDefinitionIF
getUrl
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getUrl()
public void setUrl(java.lang.String url)
ConnectionPoolDefinitionIF.getUrl()
public java.lang.String getDriver()
getDriver
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getDriver()
public void setDriver(java.lang.String driver)
ConnectionPoolDefinitionIF.getDriver()
public int getRecentlyStartedThreshold()
ConnectionPoolDefinitionIF
getRecentlyStartedThreshold
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getRecentlyStartedThreshold()
public void setRecentlyStartedThreshold(int recentlyStartedThreshold)
ConnectionPoolDefinitionIF.getRecentlyStartedThreshold()
public int getOverloadWithoutRefusalLifetime()
ConnectionPoolDefinitionIF
getOverloadWithoutRefusalLifetime
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getOverloadWithoutRefusalLifetime()
public void setOverloadWithoutRefusalLifetime(int overloadWithoutRefusalLifetime)
ConnectionPoolDefinitionIF.getOverloadWithoutRefusalLifetime()
public int getMaximumActiveTime()
ConnectionPoolDefinitionIF
getMaximumActiveTime
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getMaximumActiveTime()
public void setMaximumActiveTime(int maximumActiveTime)
ConnectionPoolDefinitionIF.getMaximumActiveTime()
public int getDebugLevel()
isVerbose()
instead
getDebugLevel
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getDebugLevel()
public boolean isVerbose()
ConnectionPoolDefinitionIF
isVerbose
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.isVerbose()
public void setVerbose(boolean verbose)
ConnectionPoolDefinitionIF.isVerbose()
public boolean isTrace()
ConnectionPoolDefinitionIF
isTrace
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.isTrace()
public void setTrace(boolean trace)
ConnectionPoolDefinitionIF.isTrace()
public java.lang.String getCompleteUrl()
ConnectionPoolDefinitionIF
getCompleteUrl
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getCompleteUrl()
public void setCompleteUrl(java.lang.String completeUrl)
ConnectionPoolDefinitionIF.getCompleteUrl()
public void setFatalSqlExceptionsAsString(java.lang.String fatalSqlExceptionsAsString)
ConnectionPoolDefinitionIF.getFatalSqlExceptions()
public java.util.Set getFatalSqlExceptions()
ConnectionPoolDefinitionIF
getFatalSqlExceptions
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getFatalSqlExceptions()
public java.lang.String getFatalSqlExceptionWrapper()
ConnectionPoolDefinitionIF
getFatalSqlExceptionWrapper
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getFatalSqlExceptionWrapper()
public void setFatalSqlExceptionWrapper(java.lang.String fatalSqlExceptionWrapper) throws ProxoolException
ProxoolException
ConnectionPoolDefinitionIF.getFatalSqlExceptionWrapper()
public java.lang.String getHouseKeepingTestSql()
ConnectionPoolDefinitionIF
getHouseKeepingTestSql
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getHouseKeepingTestSql()
public void setHouseKeepingTestSql(java.lang.String houseKeepingTestSql)
ConnectionPoolDefinitionIF.getHouseKeepingTestSql()
public boolean isTestBeforeUse()
ConnectionPoolDefinitionIF
isTestBeforeUse
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.isTestBeforeUse()
public void setTestBeforeUse(boolean testBeforeUse)
ConnectionPoolDefinitionIF.isTestBeforeUse()
public boolean isTestAfterUse()
ConnectionPoolDefinitionIF
isTestAfterUse
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.isTestAfterUse()
public void setTestAfterUse(boolean testAfterUse)
ConnectionPoolDefinitionIF.isTestAfterUse()
public java.lang.String getStatistics()
ConnectionPoolDefinitionIF
getStatistics
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getStatistics()
public void setStatistics(java.lang.String statistics)
ConnectionPoolDefinitionIF.getStatistics()
public java.lang.String getStatisticsLogLevel()
ConnectionPoolDefinitionIF
getStatisticsLogLevel
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getStatisticsLogLevel()
public void setStatisticsLogLevel(java.lang.String statisticsLogLevel)
ConnectionPoolDefinitionIF.getStatisticsLogLevel()
public java.lang.String getJndiName()
ConnectionPoolDefinitionIF
getJndiName
in interface ConnectionPoolDefinitionIF
public void setJndiName(java.lang.String jndiName)
public java.lang.String getInitialContextFactory()
ConnectionPoolDefinitionIF
getInitialContextFactory
in interface ConnectionPoolDefinitionIF
public void setInitialContextFactory(java.lang.String initialContextFactory)
public java.lang.String getProviderUrl()
ConnectionPoolDefinitionIF
getProviderUrl
in interface ConnectionPoolDefinitionIF
public void setProviderUrl(java.lang.String providerUrl)
public java.lang.String getSecurityAuthentication()
ConnectionPoolDefinitionIF
getSecurityAuthentication
in interface ConnectionPoolDefinitionIF
public void setSecurityAuthentication(java.lang.String securityAuthentication)
public java.lang.String getSecurityPrincipal()
ConnectionPoolDefinitionIF
getSecurityPrincipal
in interface ConnectionPoolDefinitionIF
public void setSecurityPrincipal(java.lang.String securityPrincipal)
public java.lang.String getSecurityCredentials()
ConnectionPoolDefinitionIF
getSecurityCredentials
in interface ConnectionPoolDefinitionIF
public void setSecurityCredentials(java.lang.String securityCredentials)
public boolean isJmx()
ConnectionPoolDefinitionIF
isJmx
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.isJmx()
public void setJmx(boolean jmx)
ConnectionPoolDefinitionIF.isJmx()
public java.lang.String getJmxAgentId()
ConnectionPoolDefinitionIF
MBeanServerFactory.findMBeanServer(String agentId)
) to register the pool to.
getJmxAgentId
in interface ConnectionPoolDefinitionIF
MBeanServerFactory.findMBeanServer(String agentId)
) to register the pool to.ConnectionPoolDefinitionIF.getJmxAgentId()
public void setJmxAgentId(java.lang.String jmxAgentId)
ConnectionPoolDefinitionIF.getJmxAgentId()
public java.lang.Class getInjectableConnectionInterface()
ConnectionPoolDefinitionIF
getInjectableConnectionInterface
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getInjectableConnectionInterface()
public java.lang.String getInjectableConnectionInterfaceName()
ConnectionPoolDefinitionIF.getInjectableConnectionInterface()
public void setInjectableConnectionInterfaceName(java.lang.String injectableConnectionInterfaceName)
injectableConnectionInterfaceName
- the fully qualified class nameConnectionPoolDefinitionIF.getInjectableConnectionInterface()
public java.lang.Class getInjectableStatementInterface()
ConnectionPoolDefinitionIF
getInjectableStatementInterface
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getInjectableStatementInterface()
public java.lang.String getInjectableStatementInterfaceName()
ConnectionPoolDefinitionIF.getInjectableStatementInterface()
public void setInjectableStatementInterfaceName(java.lang.String injectableStatementInterfaceName)
injectableStatementInterfaceName
- the fully qualified class nameConnectionPoolDefinitionIF.getInjectableStatementInterface()
public java.lang.Class getInjectablePreparedStatementInterface()
ConnectionPoolDefinitionIF
getInjectablePreparedStatementInterface
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getInjectablePreparedStatementInterface()
public java.lang.String getInjectablePreparedStatementInterfaceName()
ConnectionPoolDefinitionIF.getInjectablePreparedStatementInterface()
public void setInjectablePreparedStatementInterfaceName(java.lang.String injectablePreparedStatementInterfaceName)
injectablePreparedStatementInterfaceName
- the fully qualified class nameConnectionPoolDefinitionIF.getInjectablePreparedStatementInterface()
public java.lang.String getInjectableCallableStatememtInterfaceName()
ConnectionPoolDefinitionIF.getInjectableCallableStatementInterface()
public java.lang.Class getInjectableCallableStatementInterface()
ConnectionPoolDefinitionIF
getInjectableCallableStatementInterface
in interface ConnectionPoolDefinitionIF
ConnectionPoolDefinitionIF.getInjectableCallableStatementInterface()
public void setInjectableCallableStatementInterfaceName(java.lang.String injectableCallableStatementInterfaceName)
injectableCallableStatementInterfaceName
- the fully qualified class nameConnectionPoolDefinitionIF.getInjectableCallableStatementInterface()
private java.lang.Class getInterface(java.lang.String className)
public boolean isEqual(java.lang.String url, java.util.Properties info)
redefining
the pool using
these parameters would not change the definition. You can
use this to decide whether or not to trigger a change
event
.
url
- the url (containing alias and possible delegate url and driver)info
- the properties
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |