code format

This commit is contained in:
wenshao
2011-11-16 14:07:08 +08:00
parent 146bcd728c
commit bb57f86db1
157 changed files with 888 additions and 912 deletions
@@ -92,7 +92,7 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
public synchronized static void remove(DruidDataSource dataSource) {
ObjectName objectName = dataSources.remove(dataSource);
if (objectName == null) {
return;
}
@@ -188,7 +188,7 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
map.put("ErrorCount", dataSource.getErrorCount());
map.put("ReusePreparedStatementCount", dataSource.getReusePreparedStatementCount());
map.put("StartTransactionCount", dataSource.getStartTransactionCount());
map.put("CommitCount", dataSource.getCommitCount());
map.put("RollbackCount", dataSource.getRollbackCount());
@@ -217,12 +217,18 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
String[] indexNames = {
//
"Name", "URL", "CreateCount", "DestroyCount", "ConnectCount", //
"CloseCount", "ActiveCount", "PoolingCount", "LockQueueLength", "WaitThreadCount", //
"InitialSize", "MaxActive", "MinIdle", "PoolPreparedStatements", "TestOnBorrow", //
"TestOnReturn", "MinEvictableIdleTimeMillis", "ConnectErrorCount", "CreateTimespanMillis", "DbType", //
"ValidationQuery", "ValidationQueryTimeout", "DriverClassName", "Username", "RemoveAbandonedCount", //
"NotEmptyWaitCount", "NotEmptyWaitNanos", "ErrorCount", "ReusePreparedStatementCount", "StartTransactionCount", //
"Name", "URL", "CreateCount", "DestroyCount",
"ConnectCount", //
"CloseCount", "ActiveCount", "PoolingCount", "LockQueueLength",
"WaitThreadCount", //
"InitialSize", "MaxActive", "MinIdle", "PoolPreparedStatements",
"TestOnBorrow", //
"TestOnReturn", "MinEvictableIdleTimeMillis", "ConnectErrorCount", "CreateTimespanMillis",
"DbType", //
"ValidationQuery", "ValidationQueryTimeout", "DriverClassName", "Username",
"RemoveAbandonedCount", //
"NotEmptyWaitCount", "NotEmptyWaitNanos", "ErrorCount", "ReusePreparedStatementCount",
"StartTransactionCount", //
"CommitCount", "RollbackCount"
//
};