|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jolbox.bonecp.BoneCPConfig
public class BoneCPConfig
Configuration class.
| Constructor Summary | |
|---|---|
BoneCPConfig()
Default constructor. |
|
BoneCPConfig(java.io.InputStream xmlConfigFile,
java.lang.String sectionName)
Initialise the configuration by loading an XML file containing the settings. |
|
BoneCPConfig(java.util.Properties props)
Creates a new config using the given properties. |
|
BoneCPConfig(java.lang.String sectionName)
Initialize the configuration by loading bonecp-config.xml containing the settings. |
|
| Method Summary | |
|---|---|
BoneCPConfig |
clone()
|
boolean |
equals(java.lang.Object obj)
|
int |
getAcquireIncrement()
Gets the acquireIncrement property. |
int |
getAcquireRetryAttempts()
After attempting to acquire a connection and failing, try to connect these many times before giving up. |
long |
getAcquireRetryDelay()
Deprecated. Use getAcquireRetryDelayInMs() instead. |
long |
getAcquireRetryDelay(java.util.concurrent.TimeUnit timeUnit)
Returns the acquireRetryDelay setting with the specified granularity. |
long |
getAcquireRetryDelayInMs()
Returns the number of ms to wait before attempting to obtain a connection again after a failure. |
java.lang.ClassLoader |
getClassLoader()
Returns the currently active classloader. |
long |
getCloseConnectionWatchTimeout()
Deprecated. Use getCloseConnectionWatchTimeoutInMs() instead |
long |
getCloseConnectionWatchTimeout(java.util.concurrent.TimeUnit timeUnit)
Returns the closeConnectionWatchTimeout with the specified granularity. |
long |
getCloseConnectionWatchTimeoutInMs()
Returns the no of ms to wait when close connection watch threads are enabled. |
java.lang.String |
getConfigFile()
Returns the configFile field. |
ConnectionHook |
getConnectionHook()
Returns the connection hook class. |
java.lang.String |
getConnectionHookClassName()
Returns the connection hook class name as passed via the setter |
java.lang.String |
getConnectionTestStatement()
Gets connectionTestStatement |
long |
getConnectionTimeout()
Deprecated. Use getConnectionTimeoutInMs() instead. |
long |
getConnectionTimeout(java.util.concurrent.TimeUnit timeUnit)
Returns the connectionTimeout with the specified granularity. |
long |
getConnectionTimeoutInMs()
Returns the maximum time (in milliseconds) to wait before a call to getConnection is timed out. |
javax.sql.DataSource |
getDatasourceBean()
Returns the bean being used to return a connection. |
java.lang.Boolean |
getDefaultAutoCommit()
Returns the defaultAutoCommit field. |
java.lang.String |
getDefaultCatalog()
Returns the defaultCatalog field. |
java.lang.Boolean |
getDefaultReadOnly()
Returns the defaultReadOnly field. |
java.lang.String |
getDefaultTransactionIsolation()
Returns the defaultTransactionIsolation field. |
java.util.Properties |
getDriverProperties()
Returns the currently configured driver properties. |
long |
getIdleConnectionTestPeriod()
Deprecated. Please use getIdleConnectionTestPeriodInMinutes() instead. |
long |
getIdleConnectionTestPeriod(java.util.concurrent.TimeUnit timeUnit)
Returns the idleConnectionTestPeriod with the specified granularity. |
long |
getIdleConnectionTestPeriodInMinutes()
Gets the currently set idleConnectionTestPeriodInMinutes. |
long |
getIdleMaxAge()
Deprecated. Use getIdleMaxAgeInMinutes() instead |
long |
getIdleMaxAge(java.util.concurrent.TimeUnit timeUnit)
Returns the idleMaxAge with the specified granularity. |
long |
getIdleMaxAgeInMinutes()
Returns the idleMaxAge currently set. |
java.lang.String |
getInitSQL()
Returns the initSQL parameter. |
java.lang.String |
getJdbcUrl()
Gets the configured JDBC URL |
long |
getMaxConnectionAge()
Deprecated. Please use getMaxConnectionAgeInSeconds() instead. |
long |
getMaxConnectionAge(java.util.concurrent.TimeUnit timeUnit)
Returns the maxConnectionAge with the specified granularity. |
long |
getMaxConnectionAgeInSeconds()
Returns the maxConnectionAge field in seconds |
int |
getMaxConnectionsPerPartition()
Gets the maximum number of connections that will be contained in every partition. |
int |
getMinConnectionsPerPartition()
Gets the minimum number of connections that will be contained in every partition. |
int |
getPartitionCount()
Gets the number of currently defined partitions. |
java.lang.String |
getPassword()
Gets password to use for connections |
int |
getPoolAvailabilityThreshold()
Returns the pool watch connection threshold value. |
java.lang.String |
getPoolName()
Returns the name of the pool for JMX and thread names. |
int |
getPreparedStatementCacheSize()
Deprecated. |
int |
getPreparedStatementsCacheSize()
Deprecated. |
long |
getQueryExecuteTimeLimit()
Deprecated. Use getQueryExecuteTimeLimitInMs() instead. |
long |
getQueryExecuteTimeLimit(java.util.concurrent.TimeUnit timeUnit)
Returns the queryExecuteTimeLimit setting with the specified granularity. |
long |
getQueryExecuteTimeLimitInMs()
Return the query execute time limit. |
int |
getReleaseHelperThreads()
Gets number of release-connection helper threads to create per partition. |
java.lang.String |
getServiceOrder()
Returns the serviceOrder field. |
int |
getStatementCacheSize()
Deprecated. |
int |
getStatementReleaseHelperThreads()
Returns the statementHelperThreads field. |
int |
getStatementsCachedPerConnection()
Deprecated. |
int |
getStatementsCacheSize()
Gets statementsCacheSize setting. |
java.lang.String |
getUsername()
Gets username to use for the connections. |
int |
hashCode()
|
boolean |
isCloseConnectionWatch()
Returns if BoneCP is configured to create a helper thread to watch over connection acquires that are never released (or released twice). |
boolean |
isDisableConnectionTracking()
Returns true if connection tracking has been disabled. |
boolean |
isDisableJMX()
Return true if JMX is disabled. |
boolean |
isLazyInit()
Returns true if connection pool is to be initialized lazily. |
boolean |
isLogStatementsEnabled()
Returns true if SQL logging is currently enabled, false otherwise. |
boolean |
isStatisticsEnabled()
Returns the statisticsEnabled field. |
boolean |
isTransactionRecoveryEnabled()
Returns true if the pool is configured to record all transaction activity and replay the transaction automatically in case of connection failures. |
void |
sanitize()
Performs validation on the config object. |
void |
setAcquireIncrement(int acquireIncrement)
Sets the acquireIncrement property. |
void |
setAcquireRetryAttempts(int acquireRetryAttempts)
After attempting to acquire a connection and failing, try to connect these many times before giving up. |
void |
setAcquireRetryDelay(int acquireRetryDelayInMs)
Deprecated. Use setAcquireRetryDelayInMs(long). |
void |
setAcquireRetryDelay(long acquireRetryDelay,
java.util.concurrent.TimeUnit timeUnit)
Sets the number of ms to wait before attempting to obtain a connection again after a failure. |
void |
setAcquireRetryDelayInMs(long acquireRetryDelay)
Sets the number of ms to wait before attempting to obtain a connection again after a failure. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the classloader to use to load JDBC driver and hooks (set to null to use default). |
void |
setCloseConnectionWatch(boolean closeConnectionWatch)
Instruct the pool to create a helper thread to watch over connection acquires that are never released (or released twice). |
void |
setCloseConnectionWatchTimeout(long closeConnectionWatchTimeout)
Deprecated. Use setCloseConnectionWatchTimeoutInMs(long) instead |
void |
setCloseConnectionWatchTimeout(long closeConnectionWatchTimeout,
java.util.concurrent.TimeUnit timeUnit)
Sets the time to wait when close connection watch threads are enabled. |
void |
setCloseConnectionWatchTimeoutInMs(long closeConnectionWatchTimeout)
Sets the no of ms to wait when close connection watch threads are enabled. |
void |
setConfigFile(java.lang.String configFile)
Sets the configFile. |
void |
setConnectionHook(ConnectionHook connectionHook)
Sets the connection hook. |
void |
setConnectionHookClassName(java.lang.String connectionHookClassName)
Sets the connection hook class name. |
void |
setConnectionTestStatement(java.lang.String connectionTestStatement)
Sets the connection test statement. |
void |
setConnectionTimeout(long connectionTimeout)
Deprecated. Use setConnectionTimeoutInMs(long) instead. |
void |
setConnectionTimeout(long connectionTimeout,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum time to wait before a call to getConnection is timed out. |
void |
setConnectionTimeoutInMs(long connectionTimeoutinMs)
Sets the maximum time (in milliseconds) to wait before a call to getConnection is timed out. |
void |
setDatasourceBean(javax.sql.DataSource datasourceBean)
If set, use datasourceBean.getConnection() to obtain a new connection instead of Driver.getConnection(). |
void |
setDefaultAutoCommit(java.lang.Boolean defaultAutoCommit)
Sets the defaultAutoCommit setting for newly created connections. |
void |
setDefaultCatalog(java.lang.String defaultCatalog)
Sets the defaultCatalog setting for newly created connections. |
void |
setDefaultReadOnly(java.lang.Boolean defaultReadOnly)
Sets the defaultReadOnly setting for newly created connections. |
void |
setDefaultTransactionIsolation(java.lang.String defaultTransactionIsolation)
Sets the defaultTransactionIsolation. |
void |
setDisableConnectionTracking(boolean disableConnectionTracking)
If set to true, the pool will not monitor connections for proper closure. |
void |
setDisableJMX(boolean disableJMX)
Set to true to disable JMX. |
void |
setDriverProperties(java.util.Properties driverProperties)
Sets properties that will be passed on to the driver. |
void |
setIdleConnectionTestPeriod(long idleConnectionTestPeriod)
Deprecated. Please use setIdleConnectionTestPeriodInMinutes(long) or setIdleConnectionTestPeriod(long, TimeUnit) instead |
void |
setIdleConnectionTestPeriod(long idleConnectionTestPeriod,
java.util.concurrent.TimeUnit timeUnit)
Wrapper method for idleConnectionTestPeriod for easier programmatic access. |
void |
setIdleConnectionTestPeriodInMinutes(long idleConnectionTestPeriod)
Sets the idleConnectionTestPeriod. |
void |
setIdleConnectionTestPeriodInSeconds(long idleConnectionTestPeriod)
Sets the idleConnectionTestPeriod. |
void |
setIdleMaxAge(long idleMaxAge)
Deprecated. Use setIdleMaxAgeInMinutes(long) or setIdleMaxAge(long, TimeUnit) instead. |
void |
setIdleMaxAge(long idleMaxAge,
java.util.concurrent.TimeUnit timeUnit)
Sets Idle max age. |
void |
setIdleMaxAgeInMinutes(long idleMaxAge)
Sets Idle max age (in min). |
void |
setIdleMaxAgeInSeconds(long idleMaxAge)
Sets Idle max age (in seconds). |
void |
setInitSQL(java.lang.String initSQL)
Specifies an initial SQL statement that is run only when a connection is first created. |
void |
setJdbcUrl(java.lang.String jdbcUrl)
Sets the JDBC connection URL. |
void |
setLazyInit(boolean lazyInit)
Set to true to force the connection pool to obtain the initial connections lazily. |
void |
setLogStatementsEnabled(boolean logStatementsEnabled)
If enabled, log SQL statements being executed. |
void |
setMaxConnectionAge(long maxConnectionAgeInSeconds)
Deprecated. Please use { setMaxConnectionAgeInSeconds(long) instead. |
void |
setMaxConnectionAge(long maxConnectionAge,
java.util.concurrent.TimeUnit timeUnit)
Sets the maxConnectionAge. |
void |
setMaxConnectionAgeInSeconds(long maxConnectionAgeInSeconds)
Sets the maxConnectionAge in seconds. |
void |
setMaxConnectionsPerPartition(int maxConnectionsPerPartition)
Sets the maximum number of connections that will be contained in every partition. |
void |
setMinConnectionsPerPartition(int minConnectionsPerPartition)
Sets the minimum number of connections that will be contained in every partition. |
void |
setPartitionCount(int partitionCount)
Sets number of partitions to use. |
void |
setPassword(java.lang.String password)
Sets password to use for connections. |
void |
setPoolAvailabilityThreshold(int poolAvailabilityThreshold)
Sets the Pool Watch thread threshold. |
void |
setPoolName(java.lang.String poolName)
Sets the name of the pool for JMX and thread names. |
void |
setPreparedStatementsCacheSize(int preparedStatementsCacheSize)
Deprecated. |
void |
setProperties(java.util.Properties props)
Sets the properties by reading off entries in the given parameter (where each key is equivalent to the field name) |
void |
setQueryExecuteTimeLimit(int queryExecuteTimeLimit)
Deprecated. Use setQueryExecuteTimeLimitInMs(long) instead. |
void |
setQueryExecuteTimeLimit(long queryExecuteTimeLimit,
java.util.concurrent.TimeUnit timeUnit)
Queries taking longer than this limit to execute are logged. |
void |
setQueryExecuteTimeLimitInMs(long queryExecuteTimeLimit)
Queries taking longer than this limit to execute are logged. |
void |
setReleaseHelperThreads(int releaseHelperThreads)
Sets number of helper threads to create that will handle releasing a connection. |
void |
setServiceOrder(java.lang.String serviceOrder)
Sets the queue serviceOrder. |
void |
setStatementCacheSize(int statementsCacheSize)
Deprecated. |
void |
setStatementReleaseHelperThreads(int statementReleaseHelperThreads)
Sets number of statement helper threads to create that will handle releasing a statement. |
void |
setStatementsCachedPerConnection(int statementsCachedPerConnection)
Deprecated. |
void |
setStatementsCacheSize(int statementsCacheSize)
Sets statementsCacheSize setting. |
void |
setStatisticsEnabled(boolean statisticsEnabled)
If set to true, keep track of some more statistics for exposure via JMX. |
void |
setTransactionRecoveryEnabled(boolean transactionRecoveryEnabled)
Set to true to enable recording of all transaction activity and replay the transaction automatically in case of a connection failure. |
void |
setUsername(java.lang.String username)
Sets username to use for connections. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BoneCPConfig()
public BoneCPConfig(java.util.Properties props)
throws java.lang.Exception
props - properties to set.
java.lang.Exception - on error
public BoneCPConfig(java.lang.String sectionName)
throws java.lang.Exception
sectionName - section to load
java.lang.Exception - on parse errors
public BoneCPConfig(java.io.InputStream xmlConfigFile,
java.lang.String sectionName)
throws java.lang.Exception
xmlConfigFile - file to loadsectionName - section to load
java.lang.Exception| Method Detail |
|---|
public java.lang.String getPoolName()
getPoolName in interface BoneCPConfigMBeanpublic void setPoolName(java.lang.String poolName)
poolName - to set.public int getMinConnectionsPerPartition()
getMinConnectionsPerPartition in interface BoneCPConfigMBeanBoneCPConfigMBean.getMinConnectionsPerPartition()public void setMinConnectionsPerPartition(int minConnectionsPerPartition)
minConnectionsPerPartition - number of connectionspublic int getMaxConnectionsPerPartition()
getMaxConnectionsPerPartition in interface BoneCPConfigMBeanBoneCPConfigMBean.getMaxConnectionsPerPartition()public void setMaxConnectionsPerPartition(int maxConnectionsPerPartition)
maxConnectionsPerPartition - number of connections.public int getAcquireIncrement()
getAcquireIncrement in interface BoneCPConfigMBeanBoneCPConfigMBean.getAcquireIncrement()public void setAcquireIncrement(int acquireIncrement)
Note: This is a per partition setting.
acquireIncrement - value to set.public int getPartitionCount()
getPartitionCount in interface BoneCPConfigMBeanBoneCPConfigMBean.getPartitionCount()public void setPartitionCount(int partitionCount)
Default: 1, minimum: 1, recommended: 2-4 (but very app specific)
partitionCount - to setpublic java.lang.String getJdbcUrl()
getJdbcUrl in interface BoneCPConfigMBeanBoneCPConfigMBean.getJdbcUrl()public void setJdbcUrl(java.lang.String jdbcUrl)
jdbcUrl - to setpublic java.lang.String getUsername()
getUsername in interface BoneCPConfigMBeanBoneCPConfigMBean.getUsername()public void setUsername(java.lang.String username)
username - to setpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - to set.@Deprecated public long getIdleConnectionTestPeriod()
getIdleConnectionTestPeriodInMinutes() instead.
@Deprecated public void setIdleConnectionTestPeriod(long idleConnectionTestPeriod)
setIdleConnectionTestPeriodInMinutes(long) or setIdleConnectionTestPeriod(long, TimeUnit) instead
idleConnectionTestPeriod - to set in minutespublic long getIdleConnectionTestPeriodInMinutes()
getIdleConnectionTestPeriodInMinutes in interface BoneCPConfigMBeanBoneCPConfigMBean.getIdleConnectionTestPeriodInMinutes()public long getIdleConnectionTestPeriod(java.util.concurrent.TimeUnit timeUnit)
timeUnit - time granularity
public void setIdleConnectionTestPeriodInMinutes(long idleConnectionTestPeriod)
Default: 240 min, set to 0 to disable
idleConnectionTestPeriod - to setpublic void setIdleConnectionTestPeriodInSeconds(long idleConnectionTestPeriod)
Default: 240 min, set to 0 to disable
idleConnectionTestPeriod - to set
public void setIdleConnectionTestPeriod(long idleConnectionTestPeriod,
java.util.concurrent.TimeUnit timeUnit)
idleConnectionTestPeriod - time for a connection to remain idle before sending a test
query to the DB.timeUnit - Time granularity of given parameter.@Deprecated public long getIdleMaxAge()
getIdleMaxAgeInMinutes() instead
public long getIdleMaxAge(java.util.concurrent.TimeUnit timeUnit)
timeUnit - time granularity
public long getIdleMaxAgeInMinutes()
getIdleMaxAgeInMinutes in interface BoneCPConfigMBean@Deprecated public void setIdleMaxAge(long idleMaxAge)
setIdleMaxAgeInMinutes(long) or setIdleMaxAge(long, TimeUnit) instead.
idleMaxAge - to setpublic void setIdleMaxAgeInMinutes(long idleMaxAge)
Default: 60 minutes, set to 0 to disable.
idleMaxAge - to setpublic void setIdleMaxAgeInSeconds(long idleMaxAge)
Default: 60 minutes, set to 0 to disable.
idleMaxAge - to set
public void setIdleMaxAge(long idleMaxAge,
java.util.concurrent.TimeUnit timeUnit)
idleMaxAge - time after which a connection is closed offtimeUnit - idleMaxAge time granularity.public java.lang.String getConnectionTestStatement()
getConnectionTestStatement in interface BoneCPConfigMBeanBoneCPConfigMBean.getConnectionTestStatement()public void setConnectionTestStatement(java.lang.String connectionTestStatement)
Default: Use metadata request
connectionTestStatement - to set.@Deprecated public int getPreparedStatementsCacheSize()
@Deprecated public int getPreparedStatementCacheSize()
@Deprecated public void setPreparedStatementsCacheSize(int preparedStatementsCacheSize)
preparedStatementsCacheSize - to set.public void setStatementsCacheSize(int statementsCacheSize)
statementsCacheSize - to set.public int getStatementsCacheSize()
getStatementsCacheSize in interface BoneCPConfigMBeanBoneCPConfigMBean.getStatementsCacheSize()@Deprecated public void setStatementCacheSize(int statementsCacheSize)
statementsCacheSize - to set.@Deprecated public int getStatementCacheSize()
public int getReleaseHelperThreads()
getReleaseHelperThreads in interface BoneCPConfigMBeanBoneCPConfigMBean.getReleaseHelperThreads()public void setReleaseHelperThreads(int releaseHelperThreads)
releaseHelperThreads - no to release@Deprecated public int getStatementsCachedPerConnection()
getStatementsCachedPerConnection in interface BoneCPConfigMBeanBoneCPConfigMBean.getStatementsCachedPerConnection()@Deprecated public void setStatementsCachedPerConnection(int statementsCachedPerConnection)
statementsCachedPerConnection - to setpublic ConnectionHook getConnectionHook()
getConnectionHook in interface BoneCPConfigMBeanBoneCPConfigMBean.getConnectionHook()public void setConnectionHook(ConnectionHook connectionHook)
connectionHook - the connectionHook to setpublic java.lang.String getInitSQL()
getInitSQL in interface BoneCPConfigMBeanBoneCPConfigMBean.getInitSQL()public void setInitSQL(java.lang.String initSQL)
initSQL - the initSQL to setpublic boolean isCloseConnectionWatch()
public void setCloseConnectionWatch(boolean closeConnectionWatch)
closeConnectionWatch - set to true to enable thread monitoring.public boolean isLogStatementsEnabled()
isLogStatementsEnabled in interface BoneCPConfigMBeanpublic void setLogStatementsEnabled(boolean logStatementsEnabled)
logStatementsEnabled - the logStatementsEnabled to set@Deprecated public long getAcquireRetryDelay()
getAcquireRetryDelayInMs() instead.
@Deprecated public void setAcquireRetryDelay(int acquireRetryDelayInMs)
setAcquireRetryDelayInMs(long).
acquireRetryDelayInMs - the acquireRetryDelay to setpublic long getAcquireRetryDelayInMs()
getAcquireRetryDelayInMs in interface BoneCPConfigMBeanpublic long getAcquireRetryDelay(java.util.concurrent.TimeUnit timeUnit)
timeUnit - time granularity
public void setAcquireRetryDelayInMs(long acquireRetryDelay)
acquireRetryDelay - the acquireRetryDelay to set
public void setAcquireRetryDelay(long acquireRetryDelay,
java.util.concurrent.TimeUnit timeUnit)
acquireRetryDelay - the acquireRetryDelay to settimeUnit - time granularitypublic boolean isLazyInit()
isLazyInit in interface BoneCPConfigMBeanpublic void setLazyInit(boolean lazyInit)
lazyInit - the lazyInit setting to setpublic boolean isTransactionRecoveryEnabled()
isTransactionRecoveryEnabled in interface BoneCPConfigMBeanpublic void setTransactionRecoveryEnabled(boolean transactionRecoveryEnabled)
transactionRecoveryEnabled - the transactionRecoveryEnabled status to setpublic int getAcquireRetryAttempts()
getAcquireRetryAttempts in interface BoneCPConfigMBeanpublic void setAcquireRetryAttempts(int acquireRetryAttempts)
acquireRetryAttempts - the acquireRetryAttempts to setpublic void setConnectionHookClassName(java.lang.String connectionHookClassName)
connectionHookClassName - the connectionHook class name to setpublic java.lang.String getConnectionHookClassName()
getConnectionHookClassName in interface BoneCPConfigMBeanpublic boolean isDisableJMX()
isDisableJMX in interface BoneCPConfigMBeanpublic void setDisableJMX(boolean disableJMX)
disableJMX - the disableJMX to setpublic javax.sql.DataSource getDatasourceBean()
public void setDatasourceBean(javax.sql.DataSource datasourceBean)
datasourceBean - the datasourceBean to set@Deprecated public long getQueryExecuteTimeLimit()
getQueryExecuteTimeLimitInMs() instead.
@Deprecated public void setQueryExecuteTimeLimit(int queryExecuteTimeLimit)
setQueryExecuteTimeLimitInMs(long) instead.
queryExecuteTimeLimit - the limit to set in milliseconds.public long getQueryExecuteTimeLimitInMs()
getQueryExecuteTimeLimitInMs in interface BoneCPConfigMBeanpublic long getQueryExecuteTimeLimit(java.util.concurrent.TimeUnit timeUnit)
timeUnit - time granularity
public void setQueryExecuteTimeLimitInMs(long queryExecuteTimeLimit)
queryExecuteTimeLimit - the limit to set in milliseconds.
public void setQueryExecuteTimeLimit(long queryExecuteTimeLimit,
java.util.concurrent.TimeUnit timeUnit)
queryExecuteTimeLimit - the limit to set in milliseconds.timeUnit - public int getPoolAvailabilityThreshold()
getPoolAvailabilityThreshold in interface BoneCPConfigMBeanpublic void setPoolAvailabilityThreshold(int poolAvailabilityThreshold)
poolAvailabilityThreshold - the poolAvailabilityThreshold to setpublic boolean isDisableConnectionTracking()
isDisableConnectionTracking in interface BoneCPConfigMBeanpublic void setDisableConnectionTracking(boolean disableConnectionTracking)
disableConnectionTracking - set to true to disable. Default: false.@Deprecated public long getConnectionTimeout()
getConnectionTimeoutInMs() instead.
@Deprecated public void setConnectionTimeout(long connectionTimeout)
setConnectionTimeoutInMs(long) instead.
connectionTimeout - the connectionTimeout to setpublic long getConnectionTimeoutInMs()
getConnectionTimeoutInMs in interface BoneCPConfigMBeanpublic long getConnectionTimeout(java.util.concurrent.TimeUnit timeUnit)
timeUnit - time granularity
public void setConnectionTimeoutInMs(long connectionTimeoutinMs)
connectionTimeoutinMs - the connectionTimeout to set
public void setConnectionTimeout(long connectionTimeout,
java.util.concurrent.TimeUnit timeUnit)
connectionTimeout - timeUnit - the unit of the connectionTimeout argumentpublic java.util.Properties getDriverProperties()
public void setDriverProperties(java.util.Properties driverProperties)
driverProperties - the driverProperties to set@Deprecated public long getCloseConnectionWatchTimeout()
getCloseConnectionWatchTimeoutInMs() instead
getCloseConnectionWatchTimeout in interface BoneCPConfigMBean@Deprecated public void setCloseConnectionWatchTimeout(long closeConnectionWatchTimeout)
setCloseConnectionWatchTimeoutInMs(long) instead
closeConnectionWatchTimeout - the watchTimeout to setpublic long getCloseConnectionWatchTimeoutInMs()
public long getCloseConnectionWatchTimeout(java.util.concurrent.TimeUnit timeUnit)
timeUnit - time granularity
public void setCloseConnectionWatchTimeoutInMs(long closeConnectionWatchTimeout)
closeConnectionWatchTimeout - the watchTimeout to set
public void setCloseConnectionWatchTimeout(long closeConnectionWatchTimeout,
java.util.concurrent.TimeUnit timeUnit)
closeConnectionWatchTimeout - the watchTimeout to settimeUnit - Time granularitypublic int getStatementReleaseHelperThreads()
getStatementReleaseHelperThreads in interface BoneCPConfigMBeanpublic void setStatementReleaseHelperThreads(int statementReleaseHelperThreads)
statementReleaseHelperThreads - no to release@Deprecated public long getMaxConnectionAge()
getMaxConnectionAgeInSeconds() instead.
getMaxConnectionAgeInSeconds() instead.
getMaxConnectionAge in interface BoneCPConfigMBeanpublic long getMaxConnectionAgeInSeconds()
public long getMaxConnectionAge(java.util.concurrent.TimeUnit timeUnit)
timeUnit - time granularity
@Deprecated public void setMaxConnectionAge(long maxConnectionAgeInSeconds)
setMaxConnectionAgeInSeconds(long) instead.
setMaxConnectionAgeInSeconds(long) instead.
maxConnectionAgeInSeconds - the maxConnectionAge to setpublic void setMaxConnectionAgeInSeconds(long maxConnectionAgeInSeconds)
maxConnectionAgeInSeconds - the maxConnectionAge to set
public void setMaxConnectionAge(long maxConnectionAge,
java.util.concurrent.TimeUnit timeUnit)
maxConnectionAge - the maxConnectionAge to set.timeUnit - the unit of the maxConnectionAge argument.public java.lang.String getConfigFile()
getConfigFile in interface BoneCPConfigMBeanpublic void setConfigFile(java.lang.String configFile)
configFile - the configFile to setpublic java.lang.String getServiceOrder()
getServiceOrder in interface BoneCPConfigMBeanpublic void setServiceOrder(java.lang.String serviceOrder)
serviceOrder - the serviceOrder to setpublic boolean isStatisticsEnabled()
isStatisticsEnabled in interface BoneCPConfigMBeanpublic void setStatisticsEnabled(boolean statisticsEnabled)
statisticsEnabled - set to true to enablepublic java.lang.Boolean getDefaultAutoCommit()
public void setDefaultAutoCommit(java.lang.Boolean defaultAutoCommit)
defaultAutoCommit - the defaultAutoCommit to setpublic java.lang.Boolean getDefaultReadOnly()
public void setDefaultReadOnly(java.lang.Boolean defaultReadOnly)
defaultReadOnly - the defaultReadOnly to setpublic java.lang.String getDefaultCatalog()
public void setDefaultCatalog(java.lang.String defaultCatalog)
defaultCatalog - the defaultCatalog to setpublic java.lang.String getDefaultTransactionIsolation()
public void setDefaultTransactionIsolation(java.lang.String defaultTransactionIsolation)
defaultTransactionIsolation - the defaultTransactionIsolation to set
public void setProperties(java.util.Properties props)
throws java.lang.Exception
props - Parameter list to set
java.lang.Exception - on errorpublic void sanitize()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
classLoader - the classLoader to set
public BoneCPConfig clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||