Class FtpChangedExclusiveReadLockStrategy

  • All Implemented Interfaces:
    org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>

    public class FtpChangedExclusiveReadLockStrategy
    extends Object
    implements org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
    • Constructor Detail

      • FtpChangedExclusiveReadLockStrategy

        public FtpChangedExclusiveReadLockStrategy()
    • Method Detail

      • prepareOnStartup

        public void prepareOnStartup​(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> tGenericFileOperations,
                                     org.apache.camel.component.file.GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile> tGenericFileEndpoint)
                              throws Exception
        Specified by:
        prepareOnStartup in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
        Throws:
        Exception
      • acquireExclusiveReadLock

        public boolean acquireExclusiveReadLock​(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
                                                org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
                                                org.apache.camel.Exchange exchange)
                                         throws Exception
        Specified by:
        acquireExclusiveReadLock in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
        Throws:
        Exception
      • releaseExclusiveReadLockOnAbort

        public void releaseExclusiveReadLockOnAbort​(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
                                                    org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
                                                    org.apache.camel.Exchange exchange)
                                             throws Exception
        Specified by:
        releaseExclusiveReadLockOnAbort in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
        Throws:
        Exception
      • releaseExclusiveReadLockOnRollback

        public void releaseExclusiveReadLockOnRollback​(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
                                                       org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
                                                       org.apache.camel.Exchange exchange)
                                                throws Exception
        Specified by:
        releaseExclusiveReadLockOnRollback in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
        Throws:
        Exception
      • releaseExclusiveReadLockOnCommit

        public void releaseExclusiveReadLockOnCommit​(org.apache.camel.component.file.GenericFileOperations<org.apache.commons.net.ftp.FTPFile> operations,
                                                     org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
                                                     org.apache.camel.Exchange exchange)
                                              throws Exception
        Specified by:
        releaseExclusiveReadLockOnCommit in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
        Throws:
        Exception
      • getTimeout

        public long getTimeout()
      • setTimeout

        public void setTimeout​(long timeout)
        Specified by:
        setTimeout in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
      • getCheckInterval

        public long getCheckInterval()
      • setCheckInterval

        public void setCheckInterval​(long checkInterval)
        Specified by:
        setCheckInterval in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
      • setReadLockLoggingLevel

        public void setReadLockLoggingLevel​(org.apache.camel.LoggingLevel readLockLoggingLevel)
        Specified by:
        setReadLockLoggingLevel in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
      • setMarkerFiler

        public void setMarkerFiler​(boolean markerFiler)
        Specified by:
        setMarkerFiler in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
      • setDeleteOrphanLockFiles

        public void setDeleteOrphanLockFiles​(boolean deleteOrphanLockFiles)
        Specified by:
        setDeleteOrphanLockFiles in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
      • getMinLength

        public long getMinLength()
      • setMinLength

        public void setMinLength​(long minLength)
      • getMinAge

        public long getMinAge()
      • setMinAge

        public void setMinAge​(long minAge)
      • isFastExistsCheck

        public boolean isFastExistsCheck()
      • setFastExistsCheck

        public void setFastExistsCheck​(boolean fastExistsCheck)