Package com.alibaba.druid.stat
Class JdbcConnectionStat.Entry
- java.lang.Object
-
- com.alibaba.druid.stat.JdbcConnectionStat.Entry
-
- All Implemented Interfaces:
JdbcConnectionStat.EntryMBean
- Enclosing class:
- JdbcConnectionStat
public static class JdbcConnectionStat.Entry extends Object implements JdbcConnectionStat.EntryMBean
-
-
Field Summary
Fields Modifier and Type Field Description protected ThrowablelastErrorprotected longlastErrorTime
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(Throwable lastError)CompositeDataSupportgetCompositeData()static CompositeTypegetCompositeType()StringgetConnectStackTrace()DategetConnectTime()longgetConnectTimespanNano()StringgetDataSource()longgetEstablishNano()DategetEstablishTime()DategetLastErrorTime()StringgetLastSql()StringgetLastStatementStatckTrace()voidreset()voidsetConnectStackTrace(Exception connectStackTraceException)voidsetConnectTime(Date connectTime)voidsetConnectTimespanNano(long connectTimespanNano)voidsetEstablishNano(long establishNano)voidsetEstablishTime(long establishTime)voidsetLastSql(String lastSql)voidsetLastStatementStatckTrace(Exception lastStatementStatckTrace)
-
-
-
Field Detail
-
lastError
protected Throwable lastError
-
lastErrorTime
protected long lastErrorTime
-
-
Constructor Detail
-
Entry
public Entry(String dataSource, long connectionId)
-
-
Method Detail
-
reset
public void reset()
- Specified by:
resetin interfaceJdbcConnectionStat.EntryMBean
-
getEstablishTime
public Date getEstablishTime()
- Specified by:
getEstablishTimein interfaceJdbcConnectionStat.EntryMBean
-
setEstablishTime
public void setEstablishTime(long establishTime)
-
getEstablishNano
public long getEstablishNano()
- Specified by:
getEstablishNanoin interfaceJdbcConnectionStat.EntryMBean
-
setEstablishNano
public void setEstablishNano(long establishNano)
-
getConnectTime
public Date getConnectTime()
- Specified by:
getConnectTimein interfaceJdbcConnectionStat.EntryMBean
-
setConnectTime
public void setConnectTime(Date connectTime)
-
getConnectTimespanNano
public long getConnectTimespanNano()
- Specified by:
getConnectTimespanNanoin interfaceJdbcConnectionStat.EntryMBean
-
setConnectTimespanNano
public void setConnectTimespanNano(long connectTimespanNano)
-
getLastSql
public String getLastSql()
- Specified by:
getLastSqlin interfaceJdbcConnectionStat.EntryMBean
-
setLastSql
public void setLastSql(String lastSql)
-
getConnectStackTrace
public String getConnectStackTrace()
- Specified by:
getConnectStackTracein interfaceJdbcConnectionStat.EntryMBean
-
setConnectStackTrace
public void setConnectStackTrace(Exception connectStackTraceException)
-
getLastStatementStatckTrace
public String getLastStatementStatckTrace()
- Specified by:
getLastStatementStatckTracein interfaceJdbcConnectionStat.EntryMBean
-
setLastStatementStatckTrace
public void setLastStatementStatckTrace(Exception lastStatementStatckTrace)
-
error
public void error(Throwable lastError)
-
getLastErrorTime
public Date getLastErrorTime()
- Specified by:
getLastErrorTimein interfaceJdbcConnectionStat.EntryMBean
-
getCompositeType
public static CompositeType getCompositeType() throws JMException
- Throws:
JMException
-
getDataSource
public String getDataSource()
-
getCompositeData
public CompositeDataSupport getCompositeData() throws JMException
- Throws:
JMException
-
-