public interface DruidDataSourceMBean extends 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, setUseOracleImplicitCachelong getResetCount()
boolean isEnable()
String getUrl()
getUrl in interface DruidAbstractDataSourceMBeanvoid shrink()
int removeAbandoned()
String dump()
int getWaitThreadCount()
int getLockQueueLength()
long getNotEmptyWaitCount()
int getNotEmptyWaitThreadCount()
long getNotEmptySignalCount()
long getNotEmptyWaitMillis()
long getNotEmptyWaitNanos()
void resetStat()
boolean isResetStatEnable()
void setResetStatEnable(boolean resetStatEnable)
String getVersion()
void setPoolPreparedStatements(boolean poolPreparedStatements)
int getActivePeak()
int getPoolingPeak()
Date getActivePeakTime()
Date getPoolingPeakTime()
long getErrorCount()
ObjectName getObjectName()
void clearStatementCache()
throws SQLException
SQLExceptionlong getDiscardCount()
void setStatLoggerClassName(String className)
long getTimeBetweenLogStatsMillis()
void setTimeBetweenLogStatsMillis(long timeBetweenLogStatsMillis)
void setConnectionProperties(String connectionProperties)
int fill() throws SQLException
SQLExceptionint fill(int toCount) throws SQLException
SQLExceptionboolean isUseGlobalDataSourceStat()
Copyright © 2013–2022 Alibaba Group. All rights reserved.