Package com.alibaba.druid.stat
Class JdbcConnectionStat
java.lang.Object
com.alibaba.druid.stat.JdbcConnectionStat
- All Implemented Interfaces:
JdbcConnectionStatMBean
- Author:
- wenshao [szujobs@hotmail.com]
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterClose(long aliveNano) voidafterConnected(long delta) voidvoidconnectError(Throwable error) voidintintlonglonglonglonglongintlonglonglonglongintintlonglonglonglonglong[]long[]longlongvoidvoidvoidvoidvoidreset()voidsetActiveCount(int activeCount)
-
Constructor Details
-
JdbcConnectionStat
public JdbcConnectionStat()
-
-
Method Details
-
reset
public void reset() -
beforeConnect
public void beforeConnect() -
afterConnected
public void afterConnected(long delta) -
getConnectNanoMax
public long getConnectNanoMax() -
getConnectMillisMax
public long getConnectMillisMax() -
setActiveCount
public void setActiveCount(int activeCount) -
getActiveCount
public int getActiveCount() -
getAtiveCountMax
public int getAtiveCountMax() -
getErrorCount
public long getErrorCount() -
getConnectingCount
public int getConnectingCount() -
getConnectingMax
public int getConnectingMax() -
getAliveTotal
public long getAliveTotal() -
getAliveNanoMin
public long getAliveNanoMin() -
getAliveMillisMin
public long getAliveMillisMin() -
getAliveNanoMax
public long getAliveNanoMax() -
getAliveMillisMax
public long getAliveMillisMax() -
afterClose
public void afterClose(long aliveNano) -
getErrorLast
-
getConnectErrorLast
-
getErrorLastTime
-
connectError
-
error
-
getCloseCount
public long getCloseCount()- Specified by:
getCloseCountin interfaceJdbcConnectionStatMBean
-
getCommitCount
public long getCommitCount()- Specified by:
getCommitCountin interfaceJdbcConnectionStatMBean
-
getConnectCount
public long getConnectCount()- Specified by:
getConnectCountin interfaceJdbcConnectionStatMBean
-
getConnectMillis
public long getConnectMillis()- Specified by:
getConnectMillisin interfaceJdbcConnectionStatMBean
-
getActiveMax
public int getActiveMax()- Specified by:
getActiveMaxin interfaceJdbcConnectionStatMBean
-
getRollbackCount
public long getRollbackCount()- Specified by:
getRollbackCountin interfaceJdbcConnectionStatMBean
-
getConnectErrorCount
public long getConnectErrorCount()- Specified by:
getConnectErrorCountin interfaceJdbcConnectionStatMBean
-
getConnectLastTime
- Specified by:
getConnectLastTimein interfaceJdbcConnectionStatMBean
-
incrementConnectionCloseCount
public void incrementConnectionCloseCount() -
incrementConnectionCommitCount
public void incrementConnectionCommitCount() -
incrementConnectionRollbackCount
public void incrementConnectionRollbackCount() -
incrementTransactionStartCount
public void incrementTransactionStartCount() -
getTransactionStartCount
public long getTransactionStartCount() -
getHistorgramValues
public long[] getHistorgramValues() -
getHistogramRanges
public long[] getHistogramRanges()
-