com.alibaba.druid.stat
Class JdbcStatementStat

java.lang.Object
  extended by com.alibaba.druid.stat.JdbcStatementStat
All Implemented Interfaces:
JdbcStatementStatMBean

public class JdbcStatementStat
extends Object
implements JdbcStatementStatMBean


Constructor Summary
JdbcStatementStat()
           
 
Method Summary
 void afterExecute(long nanoSpan)
           
 void beforeExecute()
           
 void error(Throwable error)
           
 long getCloseCount()
           
 int getConcurrentMax()
           
 long getCreateCount()
           
 long getErrorCount()
           
 long getExecuteCount()
           
 Date getExecuteLastTime()
           
 long getExecuteMillisTotal()
           
 long getExecuteSuccessCount()
           
 long[] getHistogramRanges()
           
 long[] getHistogramValues()
           
 CompositeData getLastError()
           
 Date getLastErrorTime()
           
 Throwable getLastException()
           
 long getMillisTotal()
           
 long getNanoTotal()
           
 long getPrepareCallCount()
           
 long getPrepareCount()
           
 int getRunningCount()
           
 void incrementCreateCounter()
           
 void incrementPrepareCallCount()
           
 void incrementPrepareCounter()
           
 void incrementStatementCloseCounter()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcStatementStat

public JdbcStatementStat()
Method Detail

getHistogramRanges

public long[] getHistogramRanges()

getHistogramValues

public long[] getHistogramValues()

reset

public void reset()

afterExecute

public void afterExecute(long nanoSpan)

beforeExecute

public void beforeExecute()

getErrorCount

public long getErrorCount()
Specified by:
getErrorCount in interface JdbcStatementStatMBean

getRunningCount

public int getRunningCount()
Specified by:
getRunningCount in interface JdbcStatementStatMBean

getConcurrentMax

public int getConcurrentMax()
Specified by:
getConcurrentMax in interface JdbcStatementStatMBean

getExecuteCount

public long getExecuteCount()
Specified by:
getExecuteCount in interface JdbcStatementStatMBean

getExecuteLastTime

public Date getExecuteLastTime()
Specified by:
getExecuteLastTime in interface JdbcStatementStatMBean

getNanoTotal

public long getNanoTotal()

getMillisTotal

public long getMillisTotal()

getLastException

public Throwable getLastException()

getLastErrorTime

public Date getLastErrorTime()
Specified by:
getLastErrorTime in interface JdbcStatementStatMBean

error

public void error(Throwable error)

getCloseCount

public long getCloseCount()
Specified by:
getCloseCount in interface JdbcStatementStatMBean

getCreateCount

public long getCreateCount()
Specified by:
getCreateCount in interface JdbcStatementStatMBean

getExecuteMillisTotal

public long getExecuteMillisTotal()
Specified by:
getExecuteMillisTotal in interface JdbcStatementStatMBean

getPrepareCallCount

public long getPrepareCallCount()
Specified by:
getPrepareCallCount in interface JdbcStatementStatMBean

getPrepareCount

public long getPrepareCount()
Specified by:
getPrepareCount in interface JdbcStatementStatMBean

getExecuteSuccessCount

public long getExecuteSuccessCount()
Specified by:
getExecuteSuccessCount in interface JdbcStatementStatMBean

getLastError

public CompositeData getLastError()
                           throws JMException
Specified by:
getLastError in interface JdbcStatementStatMBean
Throws:
JMException

incrementCreateCounter

public void incrementCreateCounter()

incrementPrepareCallCount

public void incrementPrepareCallCount()

incrementPrepareCounter

public void incrementPrepareCounter()

incrementStatementCloseCounter

public void incrementStatementCloseCounter()


Copyright © 2012 Alibaba Group. All Rights Reserved.