类 DruidDataSource
java.lang.Object
com.alibaba.druid.pool.WrapperAdapter
com.alibaba.druid.pool.DruidAbstractDataSource
com.alibaba.druid.pool.DruidDataSource
- 所有已实现的接口:
DruidAbstractDataSourceMBean,DruidDataSourceMBean,ManagedDataSource,DataSourceProxy,DataSourceMonitorable,Closeable,Serializable,AutoCloseable,Cloneable,Wrapper,MBeanRegistration,Referenceable,CommonDataSource,ConnectionPoolDataSource,DataSource
public class DruidDataSource
extends DruidAbstractDataSource
implements DruidDataSourceMBean, ManagedDataSource, Referenceable, Closeable, Cloneable, ConnectionPoolDataSource, MBeanRegistration
- 作者:
- ljw [ljw2083@alibaba-inc.com], wenshao [szujobs@hotmail.com]
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明classclassclassclassclass从类继承的嵌套类/接口 com.alibaba.druid.pool.DruidAbstractDataSource
DruidAbstractDataSource.PhysicalConnectionInfo -
字段概要
字段修饰符和类型字段说明protected booleanprotected static final AtomicLongFieldUpdater<DruidDataSource>protected static final AtomicIntegerFieldUpdater<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>从类继承的字段 com.alibaba.druid.pool.DruidAbstractDataSource
accessToUnderlyingConnectionAllowed, activeConnectionLock, activeConnections, asyncCloseConnectionEnable, 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, filterChainUpdater, 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 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclone()voidclose()close datasourcevoidconfigFromPropeties(Properties properties) voidconfigFromPropety(Properties properties) 已过时。protected voidprotected voidbooleanbooleandiscardConnection(Connection conn) 已过时。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> T从类继承的方法 com.alibaba.druid.pool.DruidAbstractDataSource
addConnectionProperty, addFilters, clearFilters, cloneTo, closePreapredStatement, createChain, createConnectionId, createMetaDataId, createPhysicalConnection, createPhysicalConnection, createResultSetId, createStatementId, createTransactionId, decrementCachedPreparedStatementCount, fillStatDataToMap, getActiveConnections, getActiveConnectionStackTrace, getAndResetExecuteCount, getCachedPreparedStatementAccessCount, getCachedPreparedStatementCount, getCachedPreparedStatementDeleteCount, getCachedPreparedStatementHitCount, getCachedPreparedStatementMissCount, getClosedPreparedStatementCount, getCommitCount, getCompositeData, getConnectionErrorRetryAttempts, getConnectionInitSqls, getConnectProperties, getConnectTimeout, getCreatedTime, getCreateErrorCount, getCreateScheduler, getCreateTimespanMillis, getCreateTimespanNano, getDataSourceId, 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, isKeepConnectionUnderlyingTransactionIsolation, isLogAbandoned, isOnFatalError, isOracle, isPoolPreparedStatements, isRemoveAbandoned, isSharePreparedStatements, isTestOnBorrow, isTestOnReturn, isTestWhileIdle, isUseLocalSessionState, isUseOracleImplicitCache, isUsePingMethod, isUseUnfairLock, recycleFilterChain, 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, setKeepConnectionUnderlyingTransactionIsolation, 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, validateConnection从接口继承的方法 javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger从接口继承的方法 javax.sql.ConnectionPoolDataSource
createPooledConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter从接口继承的方法 javax.sql.DataSource
createConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter从接口继承的方法 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, setUseOracleImplicitCache从接口继承的方法 com.alibaba.druid.pool.DruidDataSourceMBean
getObjectName, getTimeBetweenLogStatsMillis, getUrl, setConnectionProperties, setStatLoggerClassName, setTimeBetweenLogStatsMillis从接口继承的方法 com.alibaba.druid.pool.ManagedDataSource
getObjectName, setObjectName
-
字段详细资料
-
dataSourceStat
-
killWhenSocketReadTimeout
protected boolean killWhenSocketReadTimeout -
checkExecuteTime
protected boolean checkExecuteTime -
recycleErrorCountUpdater
-
connectErrorCountUpdater
-
resetCountUpdater
-
createTaskIdSeedUpdater
-
discardErrorCountUpdater
-
keepAliveCheckErrorCountUpdater
-
createDirectCountUpdater
-
instanceKey
Instance key
-
-
构造器详细资料
-
DruidDataSource
public DruidDataSource() -
DruidDataSource
public DruidDataSource(boolean fairLock)
-
-
方法详细资料
-
isAsyncInit
public boolean isAsyncInit() -
setAsyncInit
public void setAsyncInit(boolean asyncInit) -
configFromPropety
已过时。 -
configFromPropeties
-
isKillWhenSocketReadTimeout
public boolean isKillWhenSocketReadTimeout() -
setKillWhenSocketReadTimeout
public void setKillWhenSocketReadTimeout(boolean killWhenSocketTimeOut) -
isUseGlobalDataSourceStat
public boolean isUseGlobalDataSourceStat() -
setUseGlobalDataSourceStat
public void setUseGlobalDataSourceStat(boolean useGlobalDataSourceStat) -
isKeepAlive
public boolean isKeepAlive() -
setKeepAlive
public void setKeepAlive(boolean keepAlive) -
getInitStackTrace
- 指定者:
getInitStackTrace在接口中DataSourceMonitorable
-
isResetStatEnable
public boolean isResetStatEnable()- 指定者:
isResetStatEnable在接口中DruidDataSourceMBean
-
setResetStatEnable
public void setResetStatEnable(boolean resetStatEnable) - 指定者:
setResetStatEnable在接口中DruidDataSourceMBean
-
getDiscardCount
public long getDiscardCount()- 指定者:
getDiscardCount在接口中DruidDataSourceMBean
-
restart
- 抛出:
SQLException
-
restart
- 抛出:
SQLException
-
resetStat
public void resetStat()- 指定者:
resetStat在接口中DataSourceMonitorable- 指定者:
resetStat在接口中DruidDataSourceMBean
-
getResetCount
public long getResetCount()- 指定者:
getResetCount在接口中DruidDataSourceMBean
-
isEnable
public boolean isEnable()- 指定者:
isEnable在接口中DruidDataSourceMBean- 指定者:
isEnable在接口中ManagedDataSource
-
setEnable
public void setEnable(boolean enable) - 指定者:
setEnable在接口中ManagedDataSource
-
setPoolPreparedStatements
public void setPoolPreparedStatements(boolean value) -
setMaxActive
public void setMaxActive(int maxActive) - 指定者:
setMaxActive在接口中DruidAbstractDataSourceMBean- 指定者:
setMaxActive在类中DruidAbstractDataSource
-
setConnectProperties
-
init
- 抛出:
SQLException
-
createAndStartDestroyThread
protected void createAndStartDestroyThread() -
createAndStartCreatorThread
protected void createAndStartCreatorThread() -
resolveDriver
- 抛出:
SQLException
-
initCheck
- 抛出:
SQLException
-
getConnection
- 指定者:
getConnection在接口中DataSource- 抛出:
SQLException
-
getConnection
- 抛出:
SQLException
-
getPooledConnection
- 指定者:
getPooledConnection在接口中ConnectionPoolDataSource- 抛出:
SQLException
-
getPooledConnection
- 指定者:
getPooledConnection在接口中ConnectionPoolDataSource- 抛出:
SQLException
-
getConnectionDirect
- 抛出:
SQLException
-
discardConnection
已过时。抛弃连接,不进行回收,而是抛弃- 指定者:
discardConnection在类中DruidAbstractDataSource- 参数:
conn- the connection to be discarded- 返回:
- a boolean indicating whether the empty signal was called
-
discardConnection
-
handleConnectionException
public void handleConnectionException(DruidPooledConnection pooledConnection, Throwable t, String sql) throws SQLException - 指定者:
handleConnectionException在类中DruidAbstractDataSource- 抛出:
SQLException
-
handleFatalError
protected final void handleFatalError(DruidPooledConnection conn, SQLException error, String sql) throws SQLException - 抛出:
SQLException
-
recycle
回收连接- 指定者:
recycle在类中DruidAbstractDataSource- 抛出:
SQLException
-
getRecycleErrorCount
public long getRecycleErrorCount() -
clearStatementCache
- 指定者:
clearStatementCache在接口中DruidDataSourceMBean- 抛出:
SQLException
-
close
public void close()close datasource- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable
-
registerMbean
public void registerMbean() -
unregisterMbean
public void unregisterMbean() -
isMbeanRegistered
public boolean isMbeanRegistered() -
getConnection
- 指定者:
getConnection在接口中DataSource- 抛出:
SQLException
-
getCreateCount
public long getCreateCount()- 指定者:
getCreateCount在接口中DruidAbstractDataSourceMBean
-
getDestroyCount
public long getDestroyCount()- 指定者:
getDestroyCount在接口中DruidAbstractDataSourceMBean
-
getConnectCount
public long getConnectCount()- 指定者:
getConnectCount在接口中DruidAbstractDataSourceMBean
-
getCloseCount
public long getCloseCount()- 指定者:
getCloseCount在接口中DruidAbstractDataSourceMBean
-
getConnectErrorCount
public long getConnectErrorCount() -
getPoolingCount
public int getPoolingCount()- 指定者:
getPoolingCount在接口中DruidAbstractDataSourceMBean
-
getPoolingPeak
public int getPoolingPeak()- 指定者:
getPoolingPeak在接口中DruidDataSourceMBean
-
getPoolingPeakTime
- 指定者:
getPoolingPeakTime在接口中DruidDataSourceMBean
-
getRecycleCount
public long getRecycleCount()- 指定者:
getRecycleCount在接口中DruidAbstractDataSourceMBean
-
getActiveCount
public int getActiveCount()- 指定者:
getActiveCount在接口中DruidAbstractDataSourceMBean
-
logStats
public void logStats() -
getStatValueAndReset
-
getRemoveAbandonedCount
public long getRemoveAbandonedCount() -
put
-
removeAbandoned
public int removeAbandoned()- 指定者:
removeAbandoned在接口中DruidDataSourceMBean
-
getReference
- 指定者:
getReference在接口中Referenceable- 抛出:
NamingException
-
getFilterClassNames
-
getRawDriverMajorVersion
public int getRawDriverMajorVersion() -
getRawDriverMinorVersion
public int getRawDriverMinorVersion() -
getProperties
- 指定者:
getProperties在接口中DruidAbstractDataSourceMBean- 指定者:
getProperties在类中DruidAbstractDataSource
-
shrink
public void shrink()- 指定者:
shrink在接口中DruidDataSourceMBean
-
shrink
public void shrink(boolean checkTime) -
shrink
public void shrink(boolean checkTime, boolean keepAlive) -
getWaitThreadCount
public int getWaitThreadCount()- 指定者:
getWaitThreadCount在接口中DruidDataSourceMBean
-
getNotEmptyWaitCount
public long getNotEmptyWaitCount()- 指定者:
getNotEmptyWaitCount在接口中DruidDataSourceMBean
-
getNotEmptyWaitThreadCount
public int getNotEmptyWaitThreadCount() -
getNotEmptyWaitThreadPeak
public int getNotEmptyWaitThreadPeak() -
getNotEmptySignalCount
public long getNotEmptySignalCount()- 指定者:
getNotEmptySignalCount在接口中DruidDataSourceMBean
-
getNotEmptyWaitMillis
public long getNotEmptyWaitMillis()- 指定者:
getNotEmptyWaitMillis在接口中DruidDataSourceMBean
-
getNotEmptyWaitNanos
public long getNotEmptyWaitNanos()- 指定者:
getNotEmptyWaitNanos在接口中DruidDataSourceMBean
-
getLockQueueLength
public int getLockQueueLength()- 指定者:
getLockQueueLength在接口中DruidDataSourceMBean
-
getActivePeak
public int getActivePeak()- 指定者:
getActivePeak在接口中DruidDataSourceMBean- 指定者:
getActivePeak在类中DruidAbstractDataSource
-
getActivePeakTime
- 指定者:
getActivePeakTime在接口中DruidDataSourceMBean
-
dump
- 指定者:
dump在接口中DruidDataSourceMBean
-
getErrorCount
public long getErrorCount()- 指定者:
getErrorCount在接口中DruidDataSourceMBean
-
toString
-
getPoolingConnectionInfo
-
logTransaction
- 指定者:
logTransaction在类中DruidAbstractDataSource
-
getVersion
- 指定者:
getVersion在接口中DruidDataSourceMBean
-
getDataSourceStat
- 指定者:
getDataSourceStat在接口中DataSourceProxy
-
clone
-
cloneDruidDataSource
-
getStatDataForMBean
-
getStatData
-
getSqlStat
-
getSqlStat
-
getSqlStatMap
-
getWallStatMap
-
getWallStatValue
-
getLock
-
isWrapperFor
- 指定者:
isWrapperFor在接口中Wrapper- 覆盖:
isWrapperFor在类中WrapperAdapter
-
unwrap
- 指定者:
unwrap在接口中Wrapper- 覆盖:
unwrap在类中WrapperAdapter
-
isLogDifferentThread
public boolean isLogDifferentThread() -
setLogDifferentThread
public void setLogDifferentThread(boolean logDifferentThread) -
tryGetConnection
- 抛出:
SQLException
-
fill
- 指定者:
fill在接口中DruidDataSourceMBean- 抛出:
SQLException
-
fill
- 指定者:
fill在接口中DruidDataSourceMBean- 抛出:
SQLException
-
isFull
public boolean isFull() -
preRegister
- 指定者:
preRegister在接口中MBeanRegistration- 抛出:
Exception
-
postRegister
- 指定者:
postRegister在接口中MBeanRegistration
-
preDeregister
- 指定者:
preDeregister在接口中MBeanRegistration- 抛出:
Exception
-
postDeregister
public void postDeregister()- 指定者:
postDeregister在接口中MBeanRegistration
-
isClosed
public boolean isClosed() -
isCheckExecuteTime
public boolean isCheckExecuteTime() -
setCheckExecuteTime
public void setCheckExecuteTime(boolean checkExecuteTime) -
forEach
-