仿照JBOSS实现PreparedStatementCache

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@912 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-28 14:20:00 +00:00
parent a7f4299a4b
commit 9dff400ff6
16 changed files with 832 additions and 205 deletions
@@ -335,7 +335,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.DATE,
SimpleType.STRING, SimpleType.STRING //
, new ArrayType<Long>(1, SimpleType.LONG)
, new ArrayType<Long>(SimpleType.LONG, true)
};
String[] indexNames = {
@@ -368,7 +368,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
"DbType",
"URL" //
, "ExecuteCountHistogram"};
, "Histogram"};
String[] indexDescriptions = indexNames;
COMPOSITE_TYPE = new CompositeType("SqlStatistic", "Sql Statistic", indexNames, indexDescriptions, indexTypes);
@@ -421,7 +421,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
map.put("DbType", dbType);
map.put("URL", null);
map.put("ExecuteCountHistogram", this.histogram.toArray());
map.put("Histogram", this.histogram.toArray());
return map;
}