mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
删除多余代码
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@208 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -84,14 +84,10 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean {
|
||||
return url;
|
||||
}
|
||||
|
||||
public JdbcSqlStat getSqlCounter(String sql) {
|
||||
public JdbcSqlStat getSqlStat(String sql) {
|
||||
return this.sqlStatMap.get(sql);
|
||||
}
|
||||
|
||||
public ConcurrentMap<String, JdbcSqlStat> getSqlStatisticMap() {
|
||||
return this.sqlStatMap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TabularData getSqlList() throws JMException {
|
||||
CompositeType rowType = JdbcSqlStat.getCompositeType();
|
||||
@@ -107,7 +103,7 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean {
|
||||
return data;
|
||||
}
|
||||
|
||||
public static StatFilter getCounterFilter(DataSourceProxy dataSource) {
|
||||
public static StatFilter getStatFilter(DataSourceProxy dataSource) {
|
||||
for (Filter filter : dataSource.getFilters()) {
|
||||
if (filter instanceof StatFilter) {
|
||||
return (StatFilter) filter;
|
||||
@@ -117,7 +113,7 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JdbcSqlStat getSqlCounter(long id) {
|
||||
public JdbcSqlStat getSqlStat(long id) {
|
||||
for (Map.Entry<String, JdbcSqlStat> entry : this.sqlStatMap.entrySet()) {
|
||||
if (entry.getValue().getId() == id) {
|
||||
return entry.getValue();
|
||||
|
||||
Reference in New Issue
Block a user