Class FtpChangedExclusiveReadLockStrategy
- java.lang.Object
-
- org.apache.camel.component.file.remote.strategy.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 Summary
Constructors Constructor Description FtpChangedExclusiveReadLockStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
long
getCheckInterval()
long
getMinAge()
long
getMinLength()
long
getTimeout()
boolean
isFastExistsCheck()
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)
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)
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)
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)
void
setCheckInterval(long checkInterval)
void
setDeleteOrphanLockFiles(boolean deleteOrphanLockFiles)
void
setFastExistsCheck(boolean fastExistsCheck)
void
setMarkerFiler(boolean markerFiler)
void
setMinAge(long minAge)
void
setMinLength(long minLength)
void
setReadLockLoggingLevel(org.apache.camel.LoggingLevel readLockLoggingLevel)
void
setTimeout(long timeout)
-
-
-
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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
-
setReadLockLoggingLevel
public void setReadLockLoggingLevel(org.apache.camel.LoggingLevel readLockLoggingLevel)
- Specified by:
setReadLockLoggingLevel
in interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
-
setMarkerFiler
public void setMarkerFiler(boolean markerFiler)
- Specified by:
setMarkerFiler
in interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<org.apache.commons.net.ftp.FTPFile>
-
setDeleteOrphanLockFiles
public void setDeleteOrphanLockFiles(boolean deleteOrphanLockFiles)
- Specified by:
setDeleteOrphanLockFiles
in interfaceorg.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)
-
-