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
Modifier and TypeMethodDescriptionbooleanbooleanString[]default Stringintdefault String[]String[]booleanintbooleangetLifo()booleanbooleanlongintintintlonglongintintintintbooleanbooleanintlongbooleanbooleanbooleanlonggetUrl()Deprecated.default Stringintbooleandefault booleanbooleanisClosed()booleandefault voidrestart()default voidstart()
-
Method Details
-
getAbandonedUsageTracking
-
getCacheState
boolean getCacheState()- Returns:
BasicDataSource.getCacheState().
-
getConnectionInitSqlsAsArray
-
getDefaultAutoCommit
-
getDefaultCatalog
-
getDefaultReadOnly
-
getDefaultSchema
- Returns:
BasicDataSource.getDefaultSchema().- Since:
- 2.5.0
-
getDefaultTransactionIsolation
-
getDisconnectionIgnoreSqlCodesAsArray
- Returns:
BasicDataSource.getDisconnectionIgnoreSqlCodesAsArray().- Since:
- 2.13.0
-
getDisconnectionSqlCodesAsArray
-
getDriverClassName
-
getFastFailValidation
boolean getFastFailValidation()- Returns:
BasicDataSource.getFastFailValidation().- Since:
- 2.1
-
getInitialSize
int getInitialSize()- Returns:
BasicDataSource.getInitialSize().
-
getLifo
-
getLogAbandoned
boolean getLogAbandoned()- Returns:
BasicDataSource.getLogAbandoned().
-
getLogExpiredConnections
boolean getLogExpiredConnections()- Returns:
BasicDataSource.getLogExpiredConnections().- Since:
- 2.1
-
getMaxConnLifetimeMillis
-
getMaxIdle
-
getMaxOpenPreparedStatements
-
getMaxTotal
-
getMaxWaitMillis
long getMaxWaitMillis()- Returns:
BasicDataSource.getMaxWaitMillis().
-
getMinEvictableIdleTimeMillis
-
getMinIdle
-
getNumActive
-
getNumIdle
-
getNumTestsPerEvictionRun
-
getRemoveAbandonedOnBorrow
-
getRemoveAbandonedOnMaintenance
-
getRemoveAbandonedTimeout
-
getSoftMinEvictableIdleTimeMillis
-
getTestOnBorrow
boolean getTestOnBorrow()- Returns:
BasicDataSource.getTestOnBorrow().
-
getTestOnCreate
boolean getTestOnCreate()- Returns:
BasicDataSource.getTestOnCreate().
-
getTestWhileIdle
boolean getTestWhileIdle()- Returns:
BasicDataSource.getTestWhileIdle().
-
getTimeBetweenEvictionRunsMillis
-
getUrl
-
getUsername
Deprecated.UsegetUserName().- Returns:
BasicDataSource.getUsername().
-
getUserName
- Returns:
BasicDataSource.getUsername().- Since:
- 2.11.0
-
getValidationQuery
-
getValidationQueryTimeout
-
isAccessToUnderlyingConnectionAllowed
-
isClearStatementPoolOnReturn
- Returns:
BasicDataSource.isClearStatementPoolOnReturn().- Since:
- 2.8.0
-
isClosed
-
isPoolPreparedStatements
boolean isPoolPreparedStatements() -
restart
- Throws:
SQLException- if an error occurs initializing the data source.- Since:
- 2.8.0
-
start
- Throws:
SQLException- if an error occurs initializing the data source.- Since:
- 2.8.0
-
getUserName().