Browse Source

Pull request #9515: REPORT-70537:数据连接优化埋点

Merge in DESIGN/design from ~FLY.LI/design:feature/x to feature/x

* commit '014993f7e41c0dee4d9335a2d961fe75289b1412':
  REPORT-70537:数据连接优化埋点
feature/x
Fly.Li 2 years ago
parent
commit
e2f9d1917b
  1. 4
      designer-base/src/main/java/com/fr/design/data/datapane/connect/ConnectionListPane.java

4
designer-base/src/main/java/com/fr/design/data/datapane/connect/ConnectionListPane.java

@ -7,6 +7,7 @@ import com.fr.data.impl.Connection;
import com.fr.data.impl.ConnectionBean;
import com.fr.data.impl.JDBCDatabaseConnection;
import com.fr.data.impl.JNDIDatabaseConnection;
import com.fr.data.metric.utils.DatabaseConnectionMetricHandler;
import com.fr.design.ExtraDesignClassManager;
import com.fr.design.data.MapCompareUtils;
import com.fr.design.dialog.BasicDialog;
@ -186,6 +187,9 @@ public class ConnectionListPane extends JListControlPane implements ConnectionSh
case ADDED:
case UPDATED:
addedOrUpdatedConnections.add(new ConnectionBean(s, StringUtils.EMPTY, connection));
if (connection instanceof JDBCDatabaseConnection){
DatabaseConnectionMetricHandler.handleSaveConnection((JDBCDatabaseConnection) connection, null);
}
default:
break;
}

Loading…
Cancel
Save