JMX增强

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@674 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-07 07:05:42 +00:00
parent 2f57ebc188
commit d96b5a6df6
4 changed files with 25 additions and 0 deletions
@@ -40,6 +40,13 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
return instances.keySet();
}
public void reset() {
final Set<DruidDataSource> dataSources = getDruidDataSourceInstances();
for (DruidDataSource dataSource : dataSources) {
dataSource.resetStat();
}
}
public TabularData getDataSourceList() throws JMException {
CompositeType rowType = getDruidDataSourceCompositeType();
String[] indexNames = rowType.keySet().toArray(new String[rowType.keySet().size()]);