Package com.alibaba.druid.stat
Class JdbcResultSetStat
- java.lang.Object
-
- com.alibaba.druid.stat.JdbcResultSetStat
-
- All Implemented Interfaces:
JdbcResultSetStatMBean
public class JdbcResultSetStat extends Object implements JdbcResultSetStatMBean
-
-
Constructor Summary
Constructors Constructor Description JdbcResultSetStat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFetchRowCount(long fetchCount)voidafterClose(long aliveNano)voidbeforeOpen()voiderror(Throwable error)longgetAliveMilisMax()longgetAliveMilisMin()longgetAliveMillisTotal()longgetAliveNanoTotal()longgetCloseCount()longgetErrorCount()longgetFetchRowCount()longgetHoldMillisTotal()ThrowablegetLastError()DategetLastErrorTime()DategetLastOpenTime()longgetOpenCount()intgetOpeningCount()intgetOpeningMax()voidincrementCloseCounter()voidreset()
-
-
-
Method Detail
-
reset
public void reset()
-
beforeOpen
public void beforeOpen()
-
getErrorCount
public long getErrorCount()
- Specified by:
getErrorCountin interfaceJdbcResultSetStatMBean
-
getOpeningCount
public int getOpeningCount()
- Specified by:
getOpeningCountin interfaceJdbcResultSetStatMBean
-
getOpeningMax
public int getOpeningMax()
- Specified by:
getOpeningMaxin interfaceJdbcResultSetStatMBean
-
getOpenCount
public long getOpenCount()
- Specified by:
getOpenCountin interfaceJdbcResultSetStatMBean
-
getLastOpenTime
public Date getLastOpenTime()
-
getAliveNanoTotal
public long getAliveNanoTotal()
-
getAliveMillisTotal
public long getAliveMillisTotal()
-
getAliveMilisMin
public long getAliveMilisMin()
-
getAliveMilisMax
public long getAliveMilisMax()
-
afterClose
public void afterClose(long aliveNano)
-
getLastError
public Throwable getLastError()
-
getLastErrorTime
public Date getLastErrorTime()
-
error
public void error(Throwable error)
-
getHoldMillisTotal
public long getHoldMillisTotal()
- Specified by:
getHoldMillisTotalin interfaceJdbcResultSetStatMBean
-
getFetchRowCount
public long getFetchRowCount()
- Specified by:
getFetchRowCountin interfaceJdbcResultSetStatMBean
-
getCloseCount
public long getCloseCount()
- Specified by:
getCloseCountin interfaceJdbcResultSetStatMBean
-
addFetchRowCount
public void addFetchRowCount(long fetchCount)
-
incrementCloseCounter
public void incrementCloseCounter()
-
-