camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Kostelnik (JIRA)" <>
Subject [jira] [Resolved] (CAMEL-12220) Add Trigger based download to RemoteFileComponent
Date Thu, 01 Feb 2018 13:49:00 GMT


Pavel Kostelnik resolved CAMEL-12220.
       Resolution: Not A Problem
    Fix Version/s: 2.20.0

Already implemented using the doneFileName option

> Add Trigger based download to RemoteFileComponent
> -------------------------------------------------
>                 Key: CAMEL-12220
>                 URL:
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-ftp
>    Affects Versions: 2.20.0
>            Reporter: Pavel Kostelnik
>            Priority: Minor
>             Fix For: 2.20.0
>   Original Estimate: 48h
>  Remaining Estimate: 48h
> I would like to request a feature that allows trigger based download via additional uri
> In enterprise env. we often see file downloads ((s)FTP(s)) to be based on trigger files
instead of using File locks. Meaning an extra empty file is created once original process
is finished filling up the actual data file with data. Only after trigger is created data
file is viable for pick up. This is to avoid pick up of partial data.
> Triggers are usually named the same way as the actual data files. So if data file being
created is dataFile.txt then trigger filename is usually dataFile.txt.trig or dataFile.trig
(depending on trigger policy).
> We see 2 trigger file policies being applied - APPEND (more common - dataFile.txt.trig)
or REPLACE (less common dataFile.trig). 
>  * triggerExtension (default to "trig" but can be anything really)
>  * triggerPolicy (possible values APPEND or REPLACE - default to APPEND)
> Look for trigger files first and then use pollEnrich() and replace trigger file name
downloaded appropriatelly for actual dataFile based on trigger extension and trigger policy
> If this is not picked up by anybody else our team will pick up and implement and will
create a pull request

This message was sent by Atlassian JIRA

View raw message