Package com.alibaba.druid.stat
Class JdbcConnectionStat
- java.lang.Object
-
- com.alibaba.druid.stat.JdbcConnectionStat
-
- All Implemented Interfaces:
JdbcConnectionStatMBean
public class JdbcConnectionStat extends Object implements JdbcConnectionStatMBean
- Author:
- wenshao [szujobs@hotmail.com]
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJdbcConnectionStat.Entrystatic interfaceJdbcConnectionStat.EntryMBean
-
Constructor Summary
Constructors Constructor Description JdbcConnectionStat()
-
Method Summary
-
-
-
Method Detail
-
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
public Throwable getErrorLast()
-
getConnectErrorLast
public Throwable getConnectErrorLast()
-
getErrorLastTime
public Date getErrorLastTime()
-
connectError
public void connectError(Throwable error)
-
error
public void error(Throwable 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
public Date 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()
-
-