Class SftpChangedExclusiveReadLockStrategy
java.lang.Object
org.apache.camel.component.file.remote.strategy.SftpChangedExclusiveReadLockStrategy
- All Implemented Interfaces:
org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
public class SftpChangedExclusiveReadLockStrategy
extends Object
implements org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacquireExclusiveReadLock(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) longlonglonglongbooleanvoidprepareOnStartup(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> tGenericFileOperations, org.apache.camel.component.file.GenericFileEndpoint<com.jcraft.jsch.ChannelSftp.LsEntry> tGenericFileEndpoint) voidreleaseExclusiveReadLockOnAbort(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) voidreleaseExclusiveReadLockOnCommit(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) voidreleaseExclusiveReadLockOnRollback(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) voidsetCheckInterval(long checkInterval) voidsetDeleteOrphanLockFiles(boolean deleteOrphanLockFiles) voidsetFastExistsCheck(boolean fastExistsCheck) voidsetMarkerFiler(boolean markerFiler) voidsetMinAge(long minAge) voidsetMinLength(long minLength) voidsetReadLockLoggingLevel(org.apache.camel.LoggingLevel readLockLoggingLevel) voidsetTimeout(long timeout)
-
Constructor Details
-
SftpChangedExclusiveReadLockStrategy
public SftpChangedExclusiveReadLockStrategy()
-
-
Method Details
-
prepareOnStartup
public void prepareOnStartup(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> tGenericFileOperations, org.apache.camel.component.file.GenericFileEndpoint<com.jcraft.jsch.ChannelSftp.LsEntry> tGenericFileEndpoint) throws Exception - Specified by:
prepareOnStartupin interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>- Throws:
Exception
-
acquireExclusiveReadLock
public boolean acquireExclusiveReadLock(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) throws Exception - Specified by:
acquireExclusiveReadLockin interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>- Throws:
Exception
-
releaseExclusiveReadLockOnAbort
public void releaseExclusiveReadLockOnAbort(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) throws Exception - Specified by:
releaseExclusiveReadLockOnAbortin interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>- Throws:
Exception
-
releaseExclusiveReadLockOnRollback
public void releaseExclusiveReadLockOnRollback(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) throws Exception - Specified by:
releaseExclusiveReadLockOnRollbackin interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>- Throws:
Exception
-
releaseExclusiveReadLockOnCommit
public void releaseExclusiveReadLockOnCommit(org.apache.camel.component.file.GenericFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations, org.apache.camel.component.file.GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry> file, org.apache.camel.Exchange exchange) throws Exception - Specified by:
releaseExclusiveReadLockOnCommitin interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>- Throws:
Exception
-
getTimeout
public long getTimeout() -
setTimeout
public void setTimeout(long timeout) - Specified by:
setTimeoutin interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
-
getCheckInterval
public long getCheckInterval() -
setCheckInterval
public void setCheckInterval(long checkInterval) - Specified by:
setCheckIntervalin interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
-
setReadLockLoggingLevel
public void setReadLockLoggingLevel(org.apache.camel.LoggingLevel readLockLoggingLevel) - Specified by:
setReadLockLoggingLevelin interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
-
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) -
setMarkerFiler
public void setMarkerFiler(boolean markerFiler) - Specified by:
setMarkerFilerin interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
-
setDeleteOrphanLockFiles
public void setDeleteOrphanLockFiles(boolean deleteOrphanLockFiles) - Specified by:
setDeleteOrphanLockFilesin interfaceorg.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
-