use of org.jkiss.dbeaver.tools.transfer.IDataTransferConsumer in project dbeaver by dbeaver.
the class DataTransferJob method transferData.
private boolean transferData(DBRProgressMonitor monitor, DataTransferPipe transferPipe) {
IDataTransferProducer producer = transferPipe.getProducer();
IDataTransferConsumer consumer = transferPipe.getConsumer();
IDataTransferSettings consumerSettings = settings.getNodeSettings(consumer);
setName(NLS.bind(CoreMessages.data_transfer_wizard_job_container_name, CommonUtils.truncateString(producer.getSourceObject().getName(), 200)));
IDataTransferSettings nodeSettings = settings.getNodeSettings(producer);
try {
// consumer.initTransfer(producer.getSourceObject(), consumerSettings, );
producer.transferData(monitor, consumer, nodeSettings);
consumer.finishTransfer(monitor, false);
return true;
} catch (Exception e) {
new DataTransferErrorJob(e).schedule();
return false;
}
}
Aggregations