add stat CachedPreparedStatementMissCount

This commit is contained in:
wenshao
2011-12-29 09:45:11 +08:00
parent cf7d2906ea
commit 4938016f86
3 changed files with 18 additions and 4 deletions
@@ -49,6 +49,8 @@ public class PreparedStatementPool {
if (holder != null) {
holder.incrementReusedCount();
} else {
dataSource.incrementCachedPreparedStatementMissCount();
}
return holder;
@@ -90,6 +92,7 @@ public class PreparedStatementPool {
if (remove) {
dataSource.closePreapredStatement(eldest.getValue());
dataSource.decrementCachedPreparedStatementCount();
dataSource.incrementCachedPreparedStatementDeleteCount();
}
return remove;