提交 b7fe56a8 编写于 作者: J jurgen

todo

Former-commit-id: bad28456
上级 123079be
......@@ -35,7 +35,8 @@ import org.jkiss.dbeaver.utils.GeneralUtils;
public class ConnectJob extends EventProcessorJob
{
private volatile Thread connectThread;
private boolean reflect = true;
protected boolean initialize = true;
protected boolean reflect = true;
protected Throwable connectError;
protected IStatus connectStatus;
......@@ -67,7 +68,7 @@ public class ConnectJob extends EventProcessorJob
processEvents(DBPConnectionEventType.BEFORE_CONNECT);
try {
container.connect(monitor, true, reflect);
container.connect(monitor, initialize, reflect);
} finally {
if (connectThread != null) {
connectThread.setName(oldName);
......
......@@ -183,8 +183,6 @@ public abstract class ConnectionWizard extends Wizard implements INewWizard {
String productVersion;
String driverName;
String driverVersion;
private boolean initOnTest;
long startTime = -1;
long connectTime = -1;
DBRProgressMonitor ownerMonitor;
......@@ -192,7 +190,7 @@ public abstract class ConnectionWizard extends Wizard implements INewWizard {
{
super(testDataSource);
setSystem(true);
this.initOnTest = CommonUtils.toBoolean(testDataSource.getDriver().getDriverParameter(DBConstants.PARAM_INIT_ON_TEST));
super.initialize = CommonUtils.toBoolean(testDataSource.getDriver().getDriverParameter(DBConstants.PARAM_INIT_ON_TEST));
productName = null;
productVersion = null;
}
......@@ -209,7 +207,7 @@ public abstract class ConnectionWizard extends Wizard implements INewWizard {
try {
container.setName(container.getConnectionConfiguration().getUrl());
monitor.worked(1);
startTime = System.currentTimeMillis();
long startTime = System.currentTimeMillis();
super.run(monitor);
connectTime = (System.currentTimeMillis() - startTime);
if (connectError != null || monitor.isCanceled()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册