Class JdbcConnectionStat

java.lang.Object
com.alibaba.druid.stat.JdbcConnectionStat
All Implemented Interfaces:
JdbcConnectionStatMBean

public class JdbcConnectionStat extends Object implements JdbcConnectionStatMBean
Author:
wenshao [[email protected]]
  • 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

      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:
      getCloseCount in interface JdbcConnectionStatMBean
    • getCommitCount

      public long getCommitCount()
      Specified by:
      getCommitCount in interface JdbcConnectionStatMBean
    • getConnectCount

      public long getConnectCount()
      Specified by:
      getConnectCount in interface JdbcConnectionStatMBean
    • getConnectMillis

      public long getConnectMillis()
      Specified by:
      getConnectMillis in interface JdbcConnectionStatMBean
    • getActiveMax

      public int getActiveMax()
      Specified by:
      getActiveMax in interface JdbcConnectionStatMBean
    • getRollbackCount

      public long getRollbackCount()
      Specified by:
      getRollbackCount in interface JdbcConnectionStatMBean
    • getConnectErrorCount

      public long getConnectErrorCount()
      Specified by:
      getConnectErrorCount in interface JdbcConnectionStatMBean
    • getConnectLastTime

      public Date getConnectLastTime()
      Specified by:
      getConnectLastTime in interface JdbcConnectionStatMBean
    • 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()