Package org.apache.tomcat.dbcp.dbcp2
Interface DataSourceMXBean
-
- All Known Subinterfaces:
BasicDataSourceMXBean
- All Known Implementing Classes:
BasicDataSource
,BasicManagedDataSource
public interface DataSourceMXBean
Defines the methods that will be made available via JMX.- Since:
- 2.9.0
-
-
Method Summary
-
-
-
Method Detail
-
getAbandonedUsageTracking
boolean getAbandonedUsageTracking()
-
getCacheState
boolean getCacheState()
- Returns:
BasicDataSource.getCacheState()
.
-
getConnectionInitSqlsAsArray
java.lang.String[] getConnectionInitSqlsAsArray()
-
getDefaultAutoCommit
java.lang.Boolean getDefaultAutoCommit()
- Returns:
BasicDataSource.getDefaultAutoCommit()
.
-
getDefaultCatalog
java.lang.String getDefaultCatalog()
- Returns:
BasicDataSource.getDefaultCatalog()
.
-
getDefaultReadOnly
java.lang.Boolean getDefaultReadOnly()
- Returns:
BasicDataSource.getDefaultReadOnly()
.
-
getDefaultSchema
default java.lang.String getDefaultSchema()
- Returns:
BasicDataSource.getDefaultSchema()
.- Since:
- 2.5.0
-
getDefaultTransactionIsolation
int getDefaultTransactionIsolation()
-
getDisconnectionSqlCodesAsArray
java.lang.String[] getDisconnectionSqlCodesAsArray()
- Returns:
BasicDataSource.getDisconnectionSqlCodesAsArray()
.- Since:
- 2.1
-
getDriverClassName
java.lang.String getDriverClassName()
- Returns:
BasicDataSource.getDriverClassName()
.
-
getFastFailValidation
boolean getFastFailValidation()
- Returns:
BasicDataSource.getFastFailValidation()
.- Since:
- 2.1
-
getInitialSize
int getInitialSize()
- Returns:
BasicDataSource.getInitialSize()
.
-
getLifo
boolean getLifo()
- Returns:
BasicDataSource.getLifo()
.
-
getLogAbandoned
boolean getLogAbandoned()
- Returns:
BasicDataSource.getLogAbandoned()
.
-
getLogExpiredConnections
boolean getLogExpiredConnections()
- Returns:
BasicDataSource.getLogExpiredConnections()
.- Since:
- 2.1
-
getMaxConnLifetimeMillis
long getMaxConnLifetimeMillis()
-
getMaxIdle
int getMaxIdle()
- Returns:
BasicDataSource.getMaxIdle()
.
-
getMaxOpenPreparedStatements
int getMaxOpenPreparedStatements()
-
getMaxTotal
int getMaxTotal()
- Returns:
BasicDataSource.getMaxTotal()
.
-
getMaxWaitMillis
long getMaxWaitMillis()
- Returns:
BasicDataSource.getMaxWaitMillis()
.
-
getMinEvictableIdleTimeMillis
long getMinEvictableIdleTimeMillis()
-
getMinIdle
int getMinIdle()
- Returns:
BasicDataSource.getMinIdle()
.
-
getNumActive
int getNumActive()
- Returns:
BasicDataSource.getNumActive()
.
-
getNumIdle
int getNumIdle()
- Returns:
BasicDataSource.getNumIdle()
.
-
getNumTestsPerEvictionRun
int getNumTestsPerEvictionRun()
-
getRemoveAbandonedOnBorrow
boolean getRemoveAbandonedOnBorrow()
-
getRemoveAbandonedOnMaintenance
boolean getRemoveAbandonedOnMaintenance()
-
getRemoveAbandonedTimeout
int getRemoveAbandonedTimeout()
-
getSoftMinEvictableIdleTimeMillis
long getSoftMinEvictableIdleTimeMillis()
-
getTestOnBorrow
boolean getTestOnBorrow()
- Returns:
BasicDataSource.getTestOnBorrow()
.
-
getTestOnCreate
boolean getTestOnCreate()
- Returns:
BasicDataSource.getTestOnCreate()
.
-
getTestWhileIdle
boolean getTestWhileIdle()
- Returns:
BasicDataSource.getTestWhileIdle()
.
-
getTimeBetweenEvictionRunsMillis
long getTimeBetweenEvictionRunsMillis()
-
getUrl
java.lang.String getUrl()
- Returns:
BasicDataSource.getUrl()
.
-
getUsername
java.lang.String getUsername()
- Returns:
BasicDataSource.getUsername()
.
-
getValidationQuery
java.lang.String getValidationQuery()
- Returns:
BasicDataSource.getValidationQuery()
.
-
getValidationQueryTimeout
int getValidationQueryTimeout()
-
isAccessToUnderlyingConnectionAllowed
boolean isAccessToUnderlyingConnectionAllowed()
-
isClearStatementPoolOnReturn
default boolean isClearStatementPoolOnReturn()
- Returns:
BasicDataSource.isClearStatementPoolOnReturn()
.- Since:
- 2.8.0
-
isClosed
boolean isClosed()
- Returns:
BasicDataSource.isClosed()
.
-
isPoolPreparedStatements
boolean isPoolPreparedStatements()
-
restart
default void restart() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- if an error occurs initializing the data source.- Since:
- 2.8.0
-
start
default void start() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- if an error occurs initializing the data source.- Since:
- 2.8.0
-
-