添加CreateErrorCount

This commit is contained in:
温少
2012-01-19 17:03:32 +08:00
parent d05f9d3e96
commit 6f0ae7a84e
@@ -210,6 +210,7 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
map.put("LastErrorTime", dataSource.getLastErrorTime());
map.put("LastCreateErrorTime", dataSource.getLastCreateErrorTime());
map.put("CreateErrorCount", dataSource.getCreateErrorCount());
return new CompositeDataSupport(rowType, map);
}
@@ -232,7 +233,7 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG//
, SimpleType.LONG, SimpleType.LONG, JMXUtils.getThrowableCompositeType(), JMXUtils.getThrowableCompositeType(), SimpleType.LONG //
, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.STRING //
, SimpleType.DATE , SimpleType.DATE
, SimpleType.DATE , SimpleType.DATE, SimpleType.LONG
//
};
@@ -252,7 +253,7 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
"StartTransactionCount", //
"CommitCount", "RollbackCount", "LastError", "LastCreateError", "PreparedStatementCacheDeleteCount" //
, "PreparedStatementCacheAccessCount", "PreparedStatementCacheMissCount", "PreparedStatementCacheHitCount", "PreparedStatementCacheCurrentCount", "Version" //
, "LastErrorTime", "LastCreateErrorTime"
, "LastErrorTime", "LastCreateErrorTime", "CreateErrorCount"
//
};