com.alibaba.druid.stat
Class JdbcDataSourceStat
java.lang.Object
com.alibaba.druid.stat.JdbcDataSourceStat
- All Implemented Interfaces:
- JdbcDataSourceStatMBean
public class JdbcDataSourceStat
- extends Object
- implements JdbcDataSourceStatMBean
JdbcDataSourceStat
public JdbcDataSourceStat(String name,
String url)
JdbcDataSourceStat
public JdbcDataSourceStat(String name,
String url,
String dbType)
JdbcDataSourceStat
public JdbcDataSourceStat(String name,
String url,
String dbType,
Properties connectProperties)
reset
public void reset()
- Specified by:
reset in interface JdbcDataSourceStatMBean
getConnectionHoldHistogram
public Histogram getConnectionHoldHistogram()
getConnectionStat
public JdbcConnectionStat getConnectionStat()
getResultSetStat
public JdbcResultSetStat getResultSetStat()
getStatementStat
public JdbcStatementStat getStatementStat()
getConnectionUrl
public String getConnectionUrl()
- Specified by:
getConnectionUrl in interface JdbcDataSourceStatMBean
getSqlList
public TabularData getSqlList()
throws JMException
- Specified by:
getSqlList in interface JdbcDataSourceStatMBean
- Throws:
JMException
getStatFilter
public static StatFilter getStatFilter(DataSourceProxy dataSource)
getSqlStat
public JdbcSqlStat getSqlStat(int id)
getSqlStat
public JdbcSqlStat getSqlStat(long id)
getConnections
public final ConcurrentMap<Long,JdbcConnectionStat.Entry> getConnections()
getConnectionList
public TabularData getConnectionList()
throws JMException
- Specified by:
getConnectionList in interface JdbcDataSourceStatMBean
- Throws:
JMException
getName
public String getName()
getUrl
public String getUrl()
getSqlStatMap
public Map<String,JdbcSqlStat> getSqlStatMap()
getSqlStat
public JdbcSqlStat getSqlStat(String sql)
createSqlStat
public JdbcSqlStat createSqlStat(String sql)
getConnectionActiveCount
public long getConnectionActiveCount()
- Specified by:
getConnectionActiveCount in interface JdbcDataSourceStatMBean
getConnectionConnectAliveMillis
public long getConnectionConnectAliveMillis()
- Specified by:
getConnectionConnectAliveMillis in interface JdbcDataSourceStatMBean
getConnectionConnectAliveMillisMax
public long getConnectionConnectAliveMillisMax()
getConnectionConnectAliveMillisMin
public long getConnectionConnectAliveMillisMin()
getConnectionHistogramRanges
public long[] getConnectionHistogramRanges()
- Specified by:
getConnectionHistogramRanges in interface JdbcDataSourceStatMBean
getConnectionHistogramValues
public long[] getConnectionHistogramValues()
- Specified by:
getConnectionHistogramValues in interface JdbcDataSourceStatMBean
getClobOpenCount
public long getClobOpenCount()
incrementClobOpenCount
public void incrementClobOpenCount()
getBlobOpenCount
public long getBlobOpenCount()
incrementBlobOpenCount
public void incrementBlobOpenCount()
Copyright © 2012 Alibaba Group. All Rights Reserved.