com.jolbox.bonecp
Interface BoneCPConfigMBean

All Known Implementing Classes:
BoneCPConfig, BoneCPDataSource

public interface BoneCPConfigMBean

MBean interface for config.

Author:
Wallace

Method Summary
 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 getAcquireRetryDelayInMs()
          Returns the number of ms to wait before attempting to obtain a connection again after a failure.
 long getCloseConnectionWatchTimeoutInMs()
          Returns the no of ms to wait when close connection watch threads are enabled.
 String getConfigFile()
          Returns the configFile field.
 ConnectionHook getConnectionHook()
          Returns the connection hook class.
 String getConnectionHookClassName()
          Returns the connection hook class name as passed via the setter
 String getConnectionTestStatement()
          Gets connectionTestStatement
 long getConnectionTimeoutInMs()
          Returns the maximum time (in milliseconds) to wait before a call to getConnection is timed out.
 long getIdleConnectionTestPeriodInMinutes()
          Gets the currently set idleConnectionTestPeriodInMinutes.
 long getIdleMaxAgeInMinutes()
          Gets idleMaxAge (time in min).
 String getInitSQL()
          Returns the initSQL parameter.
 String getJdbcUrl()
          Gets the configured JDBC URL
 long getMaxConnectionAgeInSeconds()
          Returns the maxConnectionAge field.
 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.
 int getPoolAvailabilityThreshold()
          Returns the pool watch connection threshold value.
 String getPoolName()
          Returns the name of the pool for JMX and thread names.
 long getQueryExecuteTimeLimitInMs()
          Return the query execute time limit in ms.
 int getReleaseHelperThreads()
          Gets number of release-connection helper threads to create per partition.
 String getServiceOrder()
          Returns the serviceOrder field.
 int getStatementReleaseHelperThreads()
          Returns the statementHelperThreads field.
 int getStatementsCachedPerConnection()
          Gets no of statements cached per connection.
 int getStatementsCacheSize()
          Gets statementsCacheSize setting.
 String getUsername()
          Gets username to use for the connections.
 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.
 

Method Detail

getPoolName

String getPoolName()
Returns the name of the pool for JMX and thread names.

Returns:
a pool name.

getMinConnectionsPerPartition

int getMinConnectionsPerPartition()
Gets the minimum number of connections that will be contained in every partition.

Returns:
minConnectionsPerPartition

getMaxConnectionsPerPartition

int getMaxConnectionsPerPartition()
Gets the maximum number of connections that will be contained in every partition.

Returns:
maxConnectionsPerPartition

getAcquireIncrement

int getAcquireIncrement()
Gets the acquireIncrement property. Gets the current value of the number of connections to add every time the number of available connections is about to run out (up to the maxConnectionsPerPartition).

Returns:
acquireIncrement number of connections to add.

getPartitionCount

int getPartitionCount()
Gets the number of currently defined partitions.

Returns:
partitionCount

getJdbcUrl

String getJdbcUrl()
Gets the configured JDBC URL

Returns:
jdbcUrl

getUsername

String getUsername()
Gets username to use for the connections.

Returns:
username

getIdleConnectionTestPeriodInMinutes

long getIdleConnectionTestPeriodInMinutes()
Gets the currently set idleConnectionTestPeriodInMinutes.

Returns:
idleConnectionTestPeriod

getIdleMaxAgeInMinutes

long getIdleMaxAgeInMinutes()
Gets idleMaxAge (time in min).

Returns:
idleMaxAge

getConnectionTestStatement

String getConnectionTestStatement()
Gets connectionTestStatement

Returns:
connectionTestStatement

getStatementsCacheSize

int getStatementsCacheSize()
Gets statementsCacheSize setting.

Returns:
statementsCacheSize

getReleaseHelperThreads

int getReleaseHelperThreads()
Gets number of release-connection helper threads to create per partition.

Returns:
number of threads

getStatementsCachedPerConnection

int getStatementsCachedPerConnection()
Gets no of statements cached per connection.

Returns:
no of statements cached per connection.

getConnectionHook

ConnectionHook getConnectionHook()
Returns the connection hook class.

Returns:
the connectionHook

getInitSQL

String getInitSQL()
Returns the initSQL parameter.

Returns:
the initSQL

isLogStatementsEnabled

boolean isLogStatementsEnabled()
Returns true if SQL logging is currently enabled, false otherwise.

Returns:
the logStatementsEnabled status

getAcquireRetryDelayInMs

long getAcquireRetryDelayInMs()
Returns the number of ms to wait before attempting to obtain a connection again after a failure. Default: 7000.

Returns:
the acquireRetryDelay

isLazyInit

boolean isLazyInit()
Returns true if connection pool is to be initialized lazily.

Returns:
lazyInit setting

isTransactionRecoveryEnabled

boolean isTransactionRecoveryEnabled()
Returns true if the pool is configured to record all transaction activity and replay the transaction automatically in case of connection failures.

Returns:
the transactionRecoveryEnabled status

getAcquireRetryAttempts

int getAcquireRetryAttempts()
After attempting to acquire a connection and failing, try to connect these many times before giving up. Default 5.

Returns:
the acquireRetryAttempts value

getConnectionHookClassName

String getConnectionHookClassName()
Returns the connection hook class name as passed via the setter

Returns:
the connectionHookClassName.

isDisableJMX

boolean isDisableJMX()
Return true if JMX is disabled.

Returns:
the disableJMX.

getQueryExecuteTimeLimitInMs

long getQueryExecuteTimeLimitInMs()
Return the query execute time limit in ms.

Returns:
the queryTimeLimit

getPoolAvailabilityThreshold

int getPoolAvailabilityThreshold()
Returns the pool watch connection threshold value.

Returns:
the poolAvailabilityThreshold currently set.

isDisableConnectionTracking

boolean isDisableConnectionTracking()
Returns true if connection tracking has been disabled.

Returns:
the disableConnectionTracking

getConnectionTimeoutInMs

long getConnectionTimeoutInMs()
Returns the maximum time (in milliseconds) to wait before a call to getConnection is timed out.

Returns:
the connectionTimeout

getCloseConnectionWatchTimeoutInMs

long getCloseConnectionWatchTimeoutInMs()
Returns the no of ms to wait when close connection watch threads are enabled. 0 = wait forever.

Returns:
the watchTimeout currently set.

getStatementReleaseHelperThreads

int getStatementReleaseHelperThreads()
Returns the statementHelperThreads field.

Returns:
statementHelperThreads

getMaxConnectionAgeInSeconds

long getMaxConnectionAgeInSeconds()
Returns the maxConnectionAge field.

Returns:
maxConnectionAge

getConfigFile

String getConfigFile()
Returns the configFile field.

Returns:
configFile

getServiceOrder

String getServiceOrder()
Returns the serviceOrder field.

Returns:
serviceOrder

isStatisticsEnabled

boolean isStatisticsEnabled()
Returns the statisticsEnabled field.

Returns:
statisticsEnabled


Copyright © 2009-2011 JolBox. All Rights Reserved.