org.apache.camel.component.file.remote.strategy
Class SftpChangedExclusiveReadLockStrategy

java.lang.Object
  extended by 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
SftpChangedExclusiveReadLockStrategy()
           
 
Method Summary
 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)
           
 long getCheckInterval()
           
 long getMinLength()
           
 long getTimeout()
           
 boolean isFastExistsCheck()
           
 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)
           
 void releaseExclusiveReadLock(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)
           
 void setCheckInterval(long checkInterval)
           
 void setFastExistsCheck(boolean fastExistsCheck)
           
 void setMinLength(long minLength)
           
 void setReadLockLoggingLevel(org.apache.camel.LoggingLevel readLockLoggingLevel)
           
 void setTimeout(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpChangedExclusiveReadLockStrategy

public SftpChangedExclusiveReadLockStrategy()
Method Detail

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:
prepareOnStartup in interface org.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:
acquireExclusiveReadLock in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
Throws:
Exception

releaseExclusiveReadLock

public void releaseExclusiveReadLock(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:
releaseExclusiveReadLock in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>
Throws:
Exception

getTimeout

public long getTimeout()

setTimeout

public void setTimeout(long timeout)
Specified by:
setTimeout in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>

getCheckInterval

public long getCheckInterval()

setCheckInterval

public void setCheckInterval(long checkInterval)
Specified by:
setCheckInterval in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>

setReadLockLoggingLevel

public void setReadLockLoggingLevel(org.apache.camel.LoggingLevel readLockLoggingLevel)
Specified by:
setReadLockLoggingLevel in interface org.apache.camel.component.file.GenericFileExclusiveReadLockStrategy<com.jcraft.jsch.ChannelSftp.LsEntry>

getMinLength

public long getMinLength()

setMinLength

public void setMinLength(long minLength)

isFastExistsCheck

public boolean isFastExistsCheck()

setFastExistsCheck

public void setFastExistsCheck(boolean fastExistsCheck)


Apache Camel