完善监控

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@924 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-29 05:27:14 +00:00
parent a029a2f4d1
commit ed8d9207f8
3 changed files with 4 additions and 4 deletions
@@ -197,7 +197,7 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
reusePreparedStatement.incrementAndGet();
}
public long getReusePreparedStatement() {
public long getReusePreparedStatementCount() {
return reusePreparedStatement.get();
}
@@ -120,5 +120,5 @@ public interface DruidAbstractDataSourceMBean {
long getTransactionThresholdMillis();
long getReusePreparedStatement();
long getReusePreparedStatementCount();
}
@@ -171,7 +171,7 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
map.put("NotEmptyWaitCount", dataSource.getNotEmptyWaitCount());
map.put("NotEmptyWaitNanos", dataSource.getNotEmptyWaitNanos());
map.put("ErrorCount", dataSource.getErrorCount());
map.put("ReusePreparedStatement", dataSource.getReusePreparedStatement());
map.put("ReusePreparedStatementCount", dataSource.getReusePreparedStatementCount());
return new CompositeDataSupport(rowType, map);
}
@@ -202,7 +202,7 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
"InitialSize", "MaxActive", "MinIdle", "PoolPreparedStatements", "TestOnBorrow", //
"TestOnReturn", "MinEvictableIdleTimeMillis", "ConnectErrorCount", "CreateTimespanMillis", "DbType", //
"ValidationQuery", "ValidationQueryTimeout", "DriverClassName", "Username", "RemoveAbandonedCount", //
"NotEmptyWaitCount", "NotEmptyWaitNanos", "ErrorCount", "ReusePreparedStatement"
"NotEmptyWaitCount", "NotEmptyWaitNanos", "ErrorCount", "ReusePreparedStatementCount"
//
};