Package com.alibaba.druid.pool
Interface DruidDataSourceMBean
- All Superinterfaces:
DruidAbstractDataSourceMBean
- All Known Implementing Classes:
DruidDataSource
,DruidQuartzConnectionProvider
,DruidXADataSource
- Author:
- wenshao [[email protected]]
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dump()
int
fill()
int
fill
(int toCount) int
long
long
int
long
long
long
long
int
int
long
long
getUrl()
int
boolean
isEnable()
boolean
boolean
int
void
void
setConnectionProperties
(String connectionProperties) void
setPoolPreparedStatements
(boolean poolPreparedStatements) void
setResetStatEnable
(boolean resetStatEnable) void
setStatLoggerClassName
(String className) void
setTimeBetweenLogStatsMillis
(long timeBetweenLogStatsMillis) void
shrink()
Methods inherited from interface com.alibaba.druid.pool.DruidAbstractDataSourceMBean
getActiveConnectionStackTrace, getActiveCount, getCachedPreparedStatementAccessCount, getCachedPreparedStatementCount, getCachedPreparedStatementDeleteCount, getCachedPreparedStatementHitCount, getCachedPreparedStatementMissCount, getCloseCount, getClosedPreparedStatementCount, getCommitCount, getConnectCount, getConnectErrorCount, getConnectionErrorRetryAttempts, getCreateCount, getCreatedTime, getCreateErrorCount, getCreateTimespanMillis, getDbType, getDefaultCatalog, getDefaultReadOnly, getDefaultTransactionIsolation, getDestroyCount, getDriverClassName, getDriverMajorVersion, getDriverMinorVersion, getDupCloseCount, getExceptionSorterClassName, getFilterClassNames, getInitialSize, getLoginTimeout, getMaxActive, getMaxIdle, getMaxOpenPreparedStatements, getMaxPoolPreparedStatementPerConnectionSize, getMaxWait, getMaxWaitThreadCount, getMinEvictableIdleTimeMillis, getMinIdle, getName, getPoolingCount, getPreparedStatementCount, getProperties, getQueryTimeout, getRawDriverMajorVersion, getRawDriverMinorVersion, getRecycleCount, getRemoveAbandonedCount, getRemoveAbandonedTimeoutMillis, getRollbackCount, getStartTransactionCount, getTimeBetweenConnectErrorMillis, getTimeBetweenEvictionRunsMillis, getTransactionHistogramValues, getTransactionQueryTimeout, getTransactionThresholdMillis, getUsername, getValidationQuery, getValidationQueryTimeout, getValidConnectionCheckerClassName, isBreakAfterAcquireFailure, isDefaultAutoCommit, isLogAbandoned, isPoolPreparedStatements, isRemoveAbandoned, isSharePreparedStatements, isTestOnBorrow, isTestOnReturn, isTestWhileIdle, isUseOracleImplicitCache, setLogAbandoned, setMaxActive, setMaxPoolPreparedStatementPerConnectionSize, setTestOnBorrow, setTestWhileIdle, setTransactionThresholdMillis, setUseOracleImplicitCache
-
Method Details
-
getResetCount
long getResetCount() -
isEnable
boolean isEnable() -
getUrl
String getUrl()- Specified by:
getUrl
in interfaceDruidAbstractDataSourceMBean
-
shrink
void shrink() -
removeAbandoned
int removeAbandoned() -
dump
String dump() -
getWaitThreadCount
int getWaitThreadCount() -
getLockQueueLength
int getLockQueueLength() -
getNotEmptyWaitCount
long getNotEmptyWaitCount() -
getNotEmptyWaitThreadCount
int getNotEmptyWaitThreadCount() -
getNotEmptySignalCount
long getNotEmptySignalCount() -
getNotEmptyWaitMillis
long getNotEmptyWaitMillis() -
getNotEmptyWaitNanos
long getNotEmptyWaitNanos() -
resetStat
void resetStat() -
isResetStatEnable
boolean isResetStatEnable() -
setResetStatEnable
void setResetStatEnable(boolean resetStatEnable) -
getVersion
String getVersion() -
setPoolPreparedStatements
void setPoolPreparedStatements(boolean poolPreparedStatements) -
getActivePeak
int getActivePeak() -
getPoolingPeak
int getPoolingPeak() -
getActivePeakTime
Date getActivePeakTime() -
getPoolingPeakTime
Date getPoolingPeakTime() -
getErrorCount
long getErrorCount() -
getObjectName
ObjectName getObjectName() -
clearStatementCache
- Throws:
SQLException
-
getDiscardCount
long getDiscardCount() -
setStatLoggerClassName
-
getTimeBetweenLogStatsMillis
long getTimeBetweenLogStatsMillis() -
setTimeBetweenLogStatsMillis
void setTimeBetweenLogStatsMillis(long timeBetweenLogStatsMillis) -
setConnectionProperties
-
fill
- Throws:
SQLException
-
fill
- Throws:
SQLException
-
isUseGlobalDataSourceStat
boolean isUseGlobalDataSourceStat()
-