Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-2934

Port the changed readLock to be avail for camel-ftp as well

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0
    • camel-ftp
    • None

    Description

      The changed read lock
      http://camel.apache.org/file2.html

      Is currently only avail for the file component. We should make it generic to leverage the operations API so we can use it from FTP also.
      And we should allow URI parameters to configure it using readLock. prefix, so you can do

      readLock.timeout=5000&readLock.changedInterval=2000

      This means the readLockTimeout should be @deprecated as we just leverage the Camel prefix properties mechanism to auto set the options.

      The changed read lock should also have a new option to set the steady interval. The time period in which the file must not have been changed. Currently its fixed to 1 second. But end users could set it to 5 sec. to ensure that the file hasn't been touched for that min. period.

      Attachments

        1. SftpProcessStrategyFactory.java
          7 kB
          Laurentiu Trica
        2. SftpChangedLockStrategy.java
          5 kB
          Laurentiu Trica
        3. sftp
          0.9 kB
          Laurentiu Trica
        4. ftps
          0.9 kB
          Laurentiu Trica
        5. FtpProcessStrategyFactory.java
          7 kB
          Laurentiu Trica
        6. FtpChangedLockStrategy.java
          5 kB
          Laurentiu Trica
        7. ftp
          0.9 kB
          Laurentiu Trica

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: