Package com.alibaba.druid.pool
Class DruidDataSource
java.lang.Object
com.alibaba.druid.pool.WrapperAdapter
com.alibaba.druid.pool.DruidAbstractDataSource
com.alibaba.druid.pool.DruidDataSource
- All Implemented Interfaces:
DruidAbstractDataSourceMBean,DruidDataSourceMBean,ManagedDataSource,DataSourceProxy,Closeable,Serializable,AutoCloseable,Cloneable,Wrapper,MBeanRegistration,Referenceable,CommonDataSource,ConnectionPoolDataSource,DataSource
- Direct Known Subclasses:
DruidQuartzConnectionProvider,DruidXADataSource
public class DruidDataSource
extends DruidAbstractDataSource
implements DruidDataSourceMBean, ManagedDataSource, Referenceable, Closeable, Cloneable, ConnectionPoolDataSource, MBeanRegistration
- Author:
- ljw [ljw2083@alibaba-inc.com], wenshao [szujobs@hotmail.com]
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclassclassclassNested classes/interfaces inherited from class com.alibaba.druid.pool.DruidAbstractDataSource
DruidAbstractDataSource.PhysicalConnectionInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected static final AtomicLongFieldUpdater<DruidDataSource>protected static final AtomicLongFieldUpdater<DruidDataSource>protected JdbcDataSourceStatprotected static final AtomicLongFieldUpdater<DruidDataSource>protected StringInstance keyprotected static final AtomicIntegerFieldUpdater<DruidDataSource>protected booleanprotected static final AtomicLongFieldUpdater<DruidDataSource>protected static final AtomicLongFieldUpdater<DruidDataSource>static ThreadLocal<Long>Fields inherited from class com.alibaba.druid.pool.DruidAbstractDataSource
accessToUnderlyingConnectionAllowed, activeConnectionLock, activeConnections, breakAfterAcquireFailure, cachedPreparedStatementCount, cachedPreparedStatementDeleteCount, cachedPreparedStatementHitCount, cachedPreparedStatementMissCount, closedPreparedStatementCount, commitCount, connectionErrorRetryAttempts, connectionIdSeed, connectionInitSqls, connectProperties, connectTimeout, createCount, createdTime, createError, createErrorCount, createScheduler, createStartNanos, createTimespan, creatingCount, dbTypeName, DEFAULT_INITIAL_SIZE, DEFAULT_MAX_ACTIVE_SIZE, DEFAULT_MAX_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_MAX_IDLE, DEFAULT_MAX_WAIT, DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_MIN_IDLE, DEFAULT_NUM_TESTS_PER_EVICTION_RUN, DEFAULT_PHY_TIMEOUT_MILLIS, DEFAULT_TEST_ON_BORROW, DEFAULT_TEST_ON_RETURN, DEFAULT_TIME_BETWEEN_CONNECT_ERROR_MILLIS, DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS, DEFAULT_TIME_CONNECT_TIMEOUT_MILLIS, DEFAULT_TIME_SOCKET_TIMEOUT_MILLIS, DEFAULT_VALIDATION_QUERY, DEFAULT_WHILE_IDLE, defaultAutoCommit, defaultCatalog, defaultReadOnly, defaultTransactionIsolation, destroyCount, destroyScheduler, directCreateCount, driver, driverClass, driverClassLoader, dupCloseCount, empty, errorCount, exceptionSorter, executeBatchCount, executeCount, executeQueryCount, executeUpdateCount, failContinuous, failContinuousTimeMillis, failFast, fatalErrorCount, fatalErrorCountLastShrink, filters, id, inited, initedTime, initExceptionThrow, initGlobalVariants, initialSize, initVariants, isMySql, isOracle, jdbcUrl, keepAliveBetweenTimeMillis, keepAliveError, lastCreateError, lastCreateErrorTimeMillis, lastCreateStartTimeMillis, lastError, lastErrorTimeMillis, lastFatalError, lastFatalErrorSql, lastFatalErrorTimeMillis, lock, logAbandoned, logWriter, maxActive, maxCreateTaskCount, maxEvictableIdleTimeMillis, maxIdle, maxOpenPreparedStatements, maxPoolPreparedStatementPerConnectionSize, maxWait, maxWaitThreadCount, metaDataIdSeed, minEvictableIdleTimeMillis, minIdle, name, netTimeoutError, netTimeoutExecutor, notEmpty, notFullTimeoutRetryCount, numTestsPerEvictionRun, onFatalError, onFatalErrorMaxActive, password, passwordCallback, phyMaxUseCount, phyTimeoutMillis, poolPreparedStatements, preparedStatementCount, PRESENT, queryTimeout, removeAbandoned, removeAbandonedTimeoutMillis, resultSetIdSeed, rollbackCount, sharePreparedStatements, socketTimeout, startTransactionCount, statementIdSeed, statLogger, testOnBorrow, testOnReturn, testWhileIdle, timeBetweenConnectErrorMillis, timeBetweenEvictionRunsMillis, timeBetweenLogStatsMillis, transactionHistogram, transactionIdSeed, transactionQueryTimeout, transactionThresholdMillis, useOracleImplicitCache, usePingMethod, userCallback, username, validationQuery, validationQueryTimeout, validConnectionChecker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclone()voidclose()close datasourcevoidconfigFromPropety(Properties properties) protected voidprotected voidvoidvoiddiscardConnection(Connection conn) Deprecated.dump()intfill()intfill(int toCount) voidforEach(Connection conn) intintlonglonglonggetConnection(long maxWaitMillis) getConnection(String username, String password) getConnectionDirect(long maxWaitMillis) longlonglonglonggetLock()intlonglonglonglongintintgetPooledConnection(String user, String password) intintintintlonglonglonglonggetSqlStat(int sqlId) getSqlStat(long sqlId) intgetWallStatValue(boolean reset) voidhandleConnectionException(DruidPooledConnection pooledConnection, Throwable t, String sql) protected final voidhandleFatalError(DruidPooledConnection conn, SQLException error, String sql) voidinit()protected voidbooleanbooleanbooleanisClosed()booleanisEnable()booleanisFull()booleanbooleanbooleanbooleanbooleanbooleanbooleanisWrapperFor(Class<?> iface) voidlogStats()voidvoidvoidpostRegister(Boolean registrationDone) voidpreRegister(MBeanServer server, ObjectName name) protected booleanput(DruidAbstractDataSource.PhysicalConnectionInfo physicalConnectionInfo) protected voidrecycle(DruidPooledConnection pooledConnection) 回收连接voidintvoidprotected voidvoidrestart()voidrestart(Properties properties) voidsetAsyncInit(boolean asyncInit) voidsetCheckExecuteTime(boolean checkExecuteTime) voidsetConnectProperties(Properties properties) voidsetEnable(boolean enable) voidsetKeepAlive(boolean keepAlive) voidsetKillWhenSocketReadTimeout(boolean killWhenSocketTimeOut) voidsetLogDifferentThread(boolean logDifferentThread) voidsetMaxActive(int maxActive) voidsetPoolPreparedStatements(boolean value) voidsetResetStatEnable(boolean resetStatEnable) voidsetUseGlobalDataSourceStat(boolean useGlobalDataSourceStat) voidshrink()voidshrink(boolean checkTime) voidshrink(boolean checkTime, boolean keepAlive) toString()void<T> TMethods inherited from class com.alibaba.druid.pool.DruidAbstractDataSource
addConnectionProperty, addFilters, clearFilters, cloneTo, closePreapredStatement, createConnectionId, createMetaDataId, createPhysicalConnection, createPhysicalConnection, createResultSetId, createStatementId, createTransactionId, decrementCachedPreparedStatementCount, getActiveConnections, getActiveConnectionStackTrace, getAndResetExecuteCount, getCachedPreparedStatementAccessCount, getCachedPreparedStatementCount, getCachedPreparedStatementDeleteCount, getCachedPreparedStatementHitCount, getCachedPreparedStatementMissCount, getClosedPreparedStatementCount, getCommitCount, getCompositeData, getConnectionErrorRetryAttempts, getConnectionInitSqls, getConnectProperties, getConnectTimeout, getCreatedTime, getCreateErrorCount, getCreateScheduler, getCreateTimespanMillis, getCreateTimespanNano, getDbType, getDefaultCatalog, getDefaultReadOnly, getDefaultTransactionIsolation, getDestroyScheduler, getDriver, getDriverClassLoader, getDriverClassName, getDriverMajorVersion, getDriverMinorVersion, getDupCloseCount, getExceptionSorter, getExceptionSorterClassName, getExecuteBatchCount, getExecuteCount, getExecuteCount2, getExecuteQueryCount, getExecuteUpdateCount, getFilterClasses, getID, getInitialSize, getKeepAliveBetweenTimeMillis, getLastCreateError, getLastCreateErrorTime, getLastCreateErrorTimeMillis, getLastError, getLastErrorTime, getLastErrorTimeMillis, getLoginTimeout, getLogWriter, getMaxActive, getMaxCreateTaskCount, getMaxEvictableIdleTimeMillis, getMaxIdle, getMaxOpenPreparedStatements, getMaxPoolPreparedStatementPerConnectionSize, getMaxWait, getMaxWaitThreadCount, getMinEvictableIdleTimeMillis, getMinIdle, getName, getNotFullTimeoutRetryCount, getNumTestsPerEvictionRun, getObjectName, getOnFatalErrorMaxActive, getParentLogger, getPassword, getPasswordCallback, getPhyMaxUseCount, getPhyTimeoutMillis, getPreparedStatementCount, getProxyFilters, getQueryTimeout, getRawDriver, getRawJdbcUrl, getRemoveAbandonedTimeout, getRemoveAbandonedTimeoutMillis, getRollbackCount, getSocketTimeout, getStartTransactionCount, getStatLogger, getTimeBetweenConnectErrorMillis, getTimeBetweenEvictionRunsMillis, getTimeBetweenLogStatsMillis, getTransactionHistogram, getTransactionHistogramRanges, getTransactionHistogramValues, getTransactionQueryTimeout, getTransactionThresholdMillis, getUrl, getUserCallback, getUsername, getValidationQuery, getValidationQueryTimeout, getValidConnectionChecker, getValidConnectionCheckerClassName, handleConnectionException, incrementCachedPreparedStatementCount, incrementCachedPreparedStatementDeleteCount, incrementCachedPreparedStatementHitCount, incrementCachedPreparedStatementMissCount, incrementClosedPreparedStatementCount, incrementCommitCount, incrementDupCloseCount, incrementExecuteBatchCount, incrementExecuteCount, incrementExecuteQueryCount, incrementExecuteUpdateCount, incrementPreparedStatementCount, incrementRollbackCount, incrementStartTransactionCount, initPhysicalConnection, initPhysicalConnection, isAccessToUnderlyingConnectionAllowed, isAsyncCloseConnectionEnable, isBreakAfterAcquireFailure, isClearFiltersEnable, isDefaultAutoCommit, isDupCloseLogEnable, isFailContinuous, isFailFast, isInited, isInitExceptionThrow, isInitGlobalVariants, isInitVariants, isLogAbandoned, isOnFatalError, isOracle, isPoolPreparedStatements, isRemoveAbandoned, isSharePreparedStatements, isTestOnBorrow, isTestOnReturn, isTestWhileIdle, isUseLocalSessionState, isUseOracleImplicitCache, isUsePingMethod, isUseUnfairLock, setAccessToUnderlyingConnectionAllowed, setAsyncCloseConnectionEnable, setBreakAfterAcquireFailure, setClearFiltersEnable, setConnectionErrorRetryAttempts, setConnectionInitSqls, setConnectionProperties, setConnectTimeout, setConnectTimeout, setCreateError, setCreateScheduler, setDbType, setDbType, setDefaultAutoCommit, setDefaultCatalog, setDefaultReadOnly, setDefaultTransactionIsolation, setDestroyScheduler, setDriver, setDriverClassLoader, setDriverClassName, setDupCloseLogEnable, setExceptionSorter, setExceptionSorter, setExceptionSorterClassName, setFailContinuous, setFailFast, setFilters, setInitExceptionThrow, setInitGlobalVariants, setInitialSize, setInitVariants, setKeepAliveBetweenTimeMillis, setLogAbandoned, setLoginTimeout, setLogWriter, setMaxCreateTaskCount, setMaxEvictableIdleTimeMillis, setMaxIdle, setMaxOpenPreparedStatements, setMaxPoolPreparedStatementPerConnectionSize, setMaxWait, setMaxWaitThreadCount, setMinEvictableIdleTimeMillis, setMinIdle, setName, setNotFullTimeoutRetryCount, setNumTestsPerEvictionRun, setObjectName, setOnFatalErrorMaxActive, setOracle, setPassword, setPasswordCallback, setPasswordCallbackClassName, setPhyMaxUseCount, setPhyTimeoutMillis, setProxyFilters, setQueryTimeout, setRemoveAbandoned, setRemoveAbandonedTimeout, setRemoveAbandonedTimeoutMillis, setSharePreparedStatements, setSocketTimeout, setSocketTimeout, setStatLogger, setStatLoggerClassName, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenConnectErrorMillis, setTimeBetweenEvictionRunsMillis, setTimeBetweenLogStatsMillis, setTransactionQueryTimeout, setTransactionThresholdMillis, setUrl, setUseLocalSessionState, setUseOracleImplicitCache, setUsePingMethod, setUserCallback, setUsername, setUseUnfairLock, setValidationQuery, setValidationQueryTimeout, setValidConnectionChecker, setValidConnectionCheckerClassName, testConnectionInternal, testConnectionInternal, validateConnectionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLoggerMethods inherited from interface javax.sql.ConnectionPoolDataSource
createPooledConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriterMethods inherited from interface javax.sql.DataSource
createConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriterMethods inherited from interface com.alibaba.druid.pool.DruidAbstractDataSourceMBean
getActiveConnectionStackTrace, getCachedPreparedStatementAccessCount, getCachedPreparedStatementCount, getCachedPreparedStatementDeleteCount, getCachedPreparedStatementHitCount, getCachedPreparedStatementMissCount, getClosedPreparedStatementCount, getCommitCount, getConnectionErrorRetryAttempts, getCreatedTime, getCreateErrorCount, getCreateTimespanMillis, getDbType, getDefaultCatalog, getDefaultReadOnly, getDefaultTransactionIsolation, getDriverClassName, getDriverMajorVersion, getDriverMinorVersion, getDupCloseCount, getExceptionSorterClassName, getInitialSize, getLoginTimeout, getMaxActive, getMaxIdle, getMaxOpenPreparedStatements, getMaxPoolPreparedStatementPerConnectionSize, getMaxWait, getMaxWaitThreadCount, getMinEvictableIdleTimeMillis, getMinIdle, getName, getPreparedStatementCount, getQueryTimeout, getRemoveAbandonedTimeoutMillis, getRollbackCount, getStartTransactionCount, getTimeBetweenConnectErrorMillis, getTimeBetweenEvictionRunsMillis, getTransactionHistogramValues, getTransactionQueryTimeout, getTransactionThresholdMillis, getUsername, getValidationQuery, getValidationQueryTimeout, getValidConnectionCheckerClassName, isBreakAfterAcquireFailure, isDefaultAutoCommit, isLogAbandoned, isPoolPreparedStatements, isRemoveAbandoned, isSharePreparedStatements, isTestOnBorrow, isTestOnReturn, isTestWhileIdle, isUseOracleImplicitCache, setLogAbandoned, setMaxPoolPreparedStatementPerConnectionSize, setTestOnBorrow, setTestWhileIdle, setTransactionThresholdMillis, setUseOracleImplicitCacheMethods inherited from interface com.alibaba.druid.pool.DruidDataSourceMBean
getObjectName, getTimeBetweenLogStatsMillis, getUrl, setConnectionProperties, setStatLoggerClassName, setTimeBetweenLogStatsMillisMethods inherited from interface com.alibaba.druid.pool.ManagedDataSource
getObjectName, setObjectName
-
Field Details
-
dataSourceStat
-
waitNanosLocal
-
killWhenSocketReadTimeout
protected boolean killWhenSocketReadTimeout -
checkExecuteTime
protected boolean checkExecuteTime -
recycleErrorCountUpdater
-
connectErrorCountUpdater
-
resetCountUpdater
-
createTaskIdSeedUpdater
-
discardErrorCountUpdater
-
keepAliveCheckErrorCountUpdater
-
instanceKey
Instance key
-
-
Constructor Details
-
DruidDataSource
public DruidDataSource() -
DruidDataSource
public DruidDataSource(boolean fairLock)
-
-
Method Details
-
isAsyncInit
public boolean isAsyncInit() -
setAsyncInit
public void setAsyncInit(boolean asyncInit) -
configFromPropety
-
isKillWhenSocketReadTimeout
public boolean isKillWhenSocketReadTimeout() -
setKillWhenSocketReadTimeout
public void setKillWhenSocketReadTimeout(boolean killWhenSocketTimeOut) -
isUseGlobalDataSourceStat
public boolean isUseGlobalDataSourceStat()- Specified by:
isUseGlobalDataSourceStatin interfaceDruidDataSourceMBean
-
setUseGlobalDataSourceStat
public void setUseGlobalDataSourceStat(boolean useGlobalDataSourceStat) -
isKeepAlive
public boolean isKeepAlive() -
setKeepAlive
public void setKeepAlive(boolean keepAlive) -
getInitStackTrace
-
isResetStatEnable
public boolean isResetStatEnable()- Specified by:
isResetStatEnablein interfaceDruidDataSourceMBean
-
setResetStatEnable
public void setResetStatEnable(boolean resetStatEnable) - Specified by:
setResetStatEnablein interfaceDruidDataSourceMBean
-
getDiscardCount
public long getDiscardCount()- Specified by:
getDiscardCountin interfaceDruidDataSourceMBean
-
restart
- Throws:
SQLException
-
restart
- Throws:
SQLException
-
resetStat
public void resetStat()- Specified by:
resetStatin interfaceDruidDataSourceMBean
-
getResetCount
public long getResetCount()- Specified by:
getResetCountin interfaceDruidDataSourceMBean
-
isEnable
public boolean isEnable()- Specified by:
isEnablein interfaceDruidDataSourceMBean- Specified by:
isEnablein interfaceManagedDataSource
-
setEnable
public void setEnable(boolean enable) - Specified by:
setEnablein interfaceManagedDataSource
-
setPoolPreparedStatements
public void setPoolPreparedStatements(boolean value) - Specified by:
setPoolPreparedStatementsin interfaceDruidDataSourceMBean- Specified by:
setPoolPreparedStatementsin classDruidAbstractDataSource
-
setMaxActive
public void setMaxActive(int maxActive) - Specified by:
setMaxActivein interfaceDruidAbstractDataSourceMBean- Specified by:
setMaxActivein classDruidAbstractDataSource
-
setConnectProperties
- Specified by:
setConnectPropertiesin classDruidAbstractDataSource
-
init
- Throws:
SQLException
-
createAndStartDestroyThread
protected void createAndStartDestroyThread() -
createAndStartCreatorThread
protected void createAndStartCreatorThread() -
resolveDriver
- Throws:
SQLException
-
initCheck
- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
- Throws:
SQLException
-
getPooledConnection
- Specified by:
getPooledConnectionin interfaceConnectionPoolDataSource- Throws:
SQLException
-
getPooledConnection
- Specified by:
getPooledConnectionin interfaceConnectionPoolDataSource- Throws:
SQLException
-
getConnectionDirect
- Throws:
SQLException
-
discardConnection
Deprecated.抛弃连接,不进行回收,而是抛弃- Specified by:
discardConnectionin classDruidAbstractDataSource- Parameters:
conn-
-
discardConnection
- Overrides:
discardConnectionin classDruidAbstractDataSource
-
handleConnectionException
public void handleConnectionException(DruidPooledConnection pooledConnection, Throwable t, String sql) throws SQLException - Specified by:
handleConnectionExceptionin classDruidAbstractDataSource- Throws:
SQLException
-
handleFatalError
protected final void handleFatalError(DruidPooledConnection conn, SQLException error, String sql) throws SQLException - Throws:
SQLException
-
recycle
回收连接- Specified by:
recyclein classDruidAbstractDataSource- Throws:
SQLException
-
getRecycleErrorCount
public long getRecycleErrorCount() -
clearStatementCache
- Specified by:
clearStatementCachein interfaceDruidDataSourceMBean- Throws:
SQLException
-
close
public void close()close datasource- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
registerMbean
public void registerMbean() -
unregisterMbean
public void unregisterMbean() -
isMbeanRegistered
public boolean isMbeanRegistered() -
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getCreateCount
public long getCreateCount()- Specified by:
getCreateCountin interfaceDruidAbstractDataSourceMBean
-
getDestroyCount
public long getDestroyCount()- Specified by:
getDestroyCountin interfaceDruidAbstractDataSourceMBean
-
getConnectCount
public long getConnectCount()- Specified by:
getConnectCountin interfaceDruidAbstractDataSourceMBean
-
getCloseCount
public long getCloseCount()- Specified by:
getCloseCountin interfaceDruidAbstractDataSourceMBean
-
getConnectErrorCount
public long getConnectErrorCount()- Specified by:
getConnectErrorCountin interfaceDruidAbstractDataSourceMBean
-
getPoolingCount
public int getPoolingCount()- Specified by:
getPoolingCountin interfaceDruidAbstractDataSourceMBean
-
getPoolingPeak
public int getPoolingPeak()- Specified by:
getPoolingPeakin interfaceDruidDataSourceMBean
-
getPoolingPeakTime
- Specified by:
getPoolingPeakTimein interfaceDruidDataSourceMBean
-
getRecycleCount
public long getRecycleCount()- Specified by:
getRecycleCountin interfaceDruidAbstractDataSourceMBean
-
getActiveCount
public int getActiveCount()- Specified by:
getActiveCountin interfaceDruidAbstractDataSourceMBean
-
logStats
public void logStats() -
getStatValueAndReset
-
getRemoveAbandonedCount
public long getRemoveAbandonedCount()- Specified by:
getRemoveAbandonedCountin interfaceDruidAbstractDataSourceMBean
-
put
-
removeAbandoned
public int removeAbandoned()- Specified by:
removeAbandonedin interfaceDruidDataSourceMBean
-
getReference
- Specified by:
getReferencein interfaceReferenceable- Throws:
NamingException
-
getFilterClassNames
- Specified by:
getFilterClassNamesin interfaceDruidAbstractDataSourceMBean
-
getRawDriverMajorVersion
public int getRawDriverMajorVersion()- Specified by:
getRawDriverMajorVersionin interfaceDruidAbstractDataSourceMBean- Specified by:
getRawDriverMajorVersionin classDruidAbstractDataSource
-
getRawDriverMinorVersion
public int getRawDriverMinorVersion()- Specified by:
getRawDriverMinorVersionin interfaceDruidAbstractDataSourceMBean- Specified by:
getRawDriverMinorVersionin classDruidAbstractDataSource
-
getProperties
- Specified by:
getPropertiesin interfaceDruidAbstractDataSourceMBean- Specified by:
getPropertiesin classDruidAbstractDataSource
-
shrink
public void shrink()- Specified by:
shrinkin interfaceDruidDataSourceMBean
-
shrink
public void shrink(boolean checkTime) -
shrink
public void shrink(boolean checkTime, boolean keepAlive) -
getWaitThreadCount
public int getWaitThreadCount()- Specified by:
getWaitThreadCountin interfaceDruidDataSourceMBean
-
getNotEmptyWaitCount
public long getNotEmptyWaitCount()- Specified by:
getNotEmptyWaitCountin interfaceDruidDataSourceMBean
-
getNotEmptyWaitThreadCount
public int getNotEmptyWaitThreadCount()- Specified by:
getNotEmptyWaitThreadCountin interfaceDruidDataSourceMBean
-
getNotEmptyWaitThreadPeak
public int getNotEmptyWaitThreadPeak() -
getNotEmptySignalCount
public long getNotEmptySignalCount()- Specified by:
getNotEmptySignalCountin interfaceDruidDataSourceMBean
-
getNotEmptyWaitMillis
public long getNotEmptyWaitMillis()- Specified by:
getNotEmptyWaitMillisin interfaceDruidDataSourceMBean
-
getNotEmptyWaitNanos
public long getNotEmptyWaitNanos()- Specified by:
getNotEmptyWaitNanosin interfaceDruidDataSourceMBean
-
getLockQueueLength
public int getLockQueueLength()- Specified by:
getLockQueueLengthin interfaceDruidDataSourceMBean
-
getActivePeak
public int getActivePeak()- Specified by:
getActivePeakin interfaceDruidDataSourceMBean- Specified by:
getActivePeakin classDruidAbstractDataSource
-
getActivePeakTime
- Specified by:
getActivePeakTimein interfaceDruidDataSourceMBean
-
dump
- Specified by:
dumpin interfaceDruidDataSourceMBean
-
getErrorCount
public long getErrorCount()- Specified by:
getErrorCountin interfaceDruidDataSourceMBean
-
toString
-
getPoolingConnectionInfo
-
logTransaction
- Specified by:
logTransactionin classDruidAbstractDataSource
-
getVersion
- Specified by:
getVersionin interfaceDruidDataSourceMBean
-
getDataSourceStat
- Specified by:
getDataSourceStatin interfaceDataSourceProxy
-
clone
-
cloneDruidDataSource
-
getStatDataForMBean
-
getStatData
-
getSqlStat
-
getSqlStat
-
getSqlStatMap
-
getWallStatMap
-
getWallStatValue
-
getLock
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Overrides:
isWrapperForin classWrapperAdapter
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Overrides:
unwrapin classWrapperAdapter
-
isLogDifferentThread
public boolean isLogDifferentThread() -
setLogDifferentThread
public void setLogDifferentThread(boolean logDifferentThread) -
tryGetConnection
- Throws:
SQLException
-
fill
- Specified by:
fillin interfaceDruidDataSourceMBean- Throws:
SQLException
-
fill
- Specified by:
fillin interfaceDruidDataSourceMBean- Throws:
SQLException
-
isFull
public boolean isFull() -
preRegister
- Specified by:
preRegisterin interfaceMBeanRegistration- Throws:
Exception
-
postRegister
- Specified by:
postRegisterin interfaceMBeanRegistration
-
preDeregister
- Specified by:
preDeregisterin interfaceMBeanRegistration- Throws:
Exception
-
postDeregister
public void postDeregister()- Specified by:
postDeregisterin interfaceMBeanRegistration
-
isClosed
public boolean isClosed() -
isCheckExecuteTime
public boolean isCheckExecuteTime() -
setCheckExecuteTime
public void setCheckExecuteTime(boolean checkExecuteTime) -
forEach
-