You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2018/01/10 12:34:00 UTC
[jira] [Commented] (CAMEL-6902) camel-ftp - Add option to stop
download/upload if shutting down route
[ https://issues.apache.org/jira/browse/CAMEL-6902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16320167#comment-16320167 ]
Claus Ibsen commented on CAMEL-6902:
------------------------------------
This would require to use the retreiveFileStream and storeFileStream commands and then read/write from those streams manually in a loop fashion, where we can break-out of the loop if being shutdown.
Then for download we would need to avoid continue routing, or have it fail with an exception to indicate a failure, ditto for upload. However if you shutdown you may want to do this graceful without any exceptions.
So maybe lets wait with this, as it was the resume download that was the most needed feature. Concurrent downloads woulds likely be the next big feature we could have for camel-ftp.
> camel-ftp - Add option to stop download/upload if shutting down route
> ---------------------------------------------------------------------
>
> Key: CAMEL-6902
> URL: https://issues.apache.org/jira/browse/CAMEL-6902
> Project: Camel
> Issue Type: New Feature
> Components: camel-ftp
> Reporter: Claus Ibsen
> Fix For: Future
>
>
> See
> http://camel.465427.n5.nabble.com/Cannot-stop-inputstream-during-ftp-transfer-tp5719356.html
> This is not as easy to do, but we should look into if there is any API/hooks into FTP and jsch to be able to interrupt the file download/updload process.
> This can allow people to shutdown Camel apps, when its eg downloading a 2GB ftp file and you just want it to stop asap instead of having to wait for the file to be downloaded first.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)