Skip to content

Commit

Permalink
refactor: used specific implementation for remote APIs import
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Feb 4, 2025
1 parent 8952efe commit d5e5c05
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.orientechnologies.common.exception.OException;
import com.orientechnologies.common.log.OLogManager;
import com.orientechnologies.common.log.OLogger;
import com.orientechnologies.orient.client.remote.db.document.ODatabaseDocumentRemote;
import com.orientechnologies.orient.core.command.OCommandOutputListener;
import com.orientechnologies.orient.core.db.ODatabaseDocumentInternal;
import com.orientechnologies.orient.core.db.tool.ODatabaseImpExpAbstract;
Expand Down Expand Up @@ -40,7 +41,7 @@ public ODatabaseTool setOptions(String iOptions) {

public void importDatabase() throws ODatabaseImportException {
OStorageRemote storage =
(OStorageRemote) ((ODatabaseDocumentInternal) getDatabase()).getStorage();
(OStorageRemote) ((ODatabaseDocumentRemote) getDatabase()).getStorageRemote();
File file = new File(getFileName());
try {
storage.importDatabase(options, new FileInputStream(file), file.getName(), getListener());
Expand Down

0 comments on commit d5e5c05

Please sign in to comment.