improve wall filter

This commit is contained in:
wenshao
2013-04-02 19:52:40 +08:00
parent ba45a857c4
commit 78c7456ef0
31 changed files with 824 additions and 147 deletions
@@ -158,12 +158,11 @@ public final class DruidStatManagerFacade {
return new ArrayList<Map<String, Object>>();
}
@SuppressWarnings("unchecked")
public Map<String, Object> getWallStatMap(Integer dataSourceId) {
Set<Object> dataSources = getDruidDataSourceInstances();
if (dataSourceId == null) {
List<Map<String, Object>> sqlList = new ArrayList<Map<String, Object>>();
Map<String, Object> map = new HashMap<String, Object>();
for (Object datasource : dataSources) {
@@ -186,6 +185,7 @@ public final class DruidStatManagerFacade {
//
}
@SuppressWarnings({ "rawtypes", "unchecked" })
static Map mergWallStat(Map mapA, Map mapB) {
if (mapA.size() == 0) {
return mapB;