Package com.alibaba.druid.stat
Class JdbcStatManager
- java.lang.Object
-
- com.alibaba.druid.stat.JdbcStatManager
-
- All Implemented Interfaces:
JdbcStatManagerMBean
public final class JdbcStatManager extends Object implements JdbcStatManagerMBean
-
-
Field Summary
Fields Modifier and Type Field Description ThreadLocal<JdbcStatContext>contextLocal
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JdbcStatContextcreateStatContext()longgenerateSqlId()TabularDatagetConnectionList()JdbcConnectionStatgetConnectionStat()static CompositeTypegetDataSourceCompositeType()TabularDatagetDataSourceList()static JdbcStatManagergetInstance()longgetResetCount()JdbcResultSetStatgetResultSetStat()TabularDatagetSqlList()JdbcStatContextgetStatContext()JdbcStatementStatgetStatementStat()voidreset()voidsetStatContext(JdbcStatContext context)
-
-
-
Field Detail
-
contextLocal
public final ThreadLocal<JdbcStatContext> contextLocal
-
-
Method Detail
-
getStatContext
public JdbcStatContext getStatContext()
-
setStatContext
public void setStatContext(JdbcStatContext context)
-
createStatContext
public JdbcStatContext createStatContext()
-
generateSqlId
public long generateSqlId()
-
getInstance
public static JdbcStatManager getInstance()
-
getStatementStat
public JdbcStatementStat getStatementStat()
-
getResultSetStat
public JdbcResultSetStat getResultSetStat()
-
getConnectionStat
public JdbcConnectionStat getConnectionStat()
-
getDataSourceCompositeType
public static CompositeType getDataSourceCompositeType() throws JMException
- Throws:
JMException
-
getDataSourceList
public TabularData getDataSourceList() throws JMException
- Specified by:
getDataSourceListin interfaceJdbcStatManagerMBean- Throws:
JMException
-
getSqlList
public TabularData getSqlList() throws JMException
- Specified by:
getSqlListin interfaceJdbcStatManagerMBean- Throws:
JMException
-
getConnectionList
public TabularData getConnectionList() throws JMException
- Specified by:
getConnectionListin interfaceJdbcStatManagerMBean- Throws:
JMException
-
reset
public void reset()
- Specified by:
resetin interfaceJdbcStatManagerMBean
-
getResetCount
public long getResetCount()
- Specified by:
getResetCountin interfaceJdbcStatManagerMBean
-
-