com.alibaba.druid.stat
Class JdbcConnectionStat

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

public class JdbcConnectionStat
extends Object
implements JdbcConnectionStatMBean

Author:
wenshao

Nested Class Summary
static class JdbcConnectionStat.Entry
           
static interface JdbcConnectionStat.EntryMBean
           
 
Constructor Summary
JdbcConnectionStat()
           
 
Method Summary
 void afterClose(long aliveNano)
           
 void afterConnected(long delta)
           
 void beforeConnect()
           
 void connectError(Throwable error)
           
 void error(Throwable error)
           
 int getActiveCount()
           
 int getActiveMax()
           
 long getAliveMillisMax()
           
 long getAliveMillisMin()
           
 long getAliveNanoMax()
           
 long getAliveNanoMin()
           
 long getAliveTotal()
           
 int getAtiveCountMax()
           
 long getCloseCount()
           
 long getCommitCount()
           
 long getConnectCount()
           
 long getConnectErrorCount()
           
 Throwable getConnectErrorLast()
           
 int getConnectingCount()
           
 int getConnectingMax()
           
 Date getConnectLastTime()
           
 long getConnectMillis()
           
 long getConnectMillisMax()
           
 long getConnectNanoMax()
           
 long getErrorCount()
           
 Throwable getErrorLast()
           
 Date getErrorLastTime()
           
 long[] getHistogramRanges()
           
 long[] getHistorgramValues()
           
 long getRollbackCount()
           
 long getTransactionStartCount()
           
 void incrementConnectionCloseCount()
           
 void incrementConnectionCommitCount()
           
 void incrementConnectionRollbackCount()
           
 void incrementTransactionStartCount()
           
 void reset()
           
 void setActiveCount(int activeCount)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcConnectionStat

public JdbcConnectionStat()
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:
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()


Copyright © 2012 Alibaba Group. All Rights Reserved.