sends and receives file messages over sftp using jsch
library Improves on SFTP with VFS Connector in the following ways: 1. Streams
files instead of reading them into memory. The SftpMessageReceiver is a
"non-materializing stream receiver" which does not read the file to memory. The
SftpMessageDispatcher also never materializes the stream and delegates the jsch
library for materialization. 3. Uses jsch library directly instead of using VFS as
middle-man. 3. More explicit connection lifefecyle management. 4. Leverages sftp
stat to determine if a file size changes (simpler and also less memory intensive)
logger used by this class
Should the file be kept if an error occurs when writing the file on the
max pool size. 0 for no pool, -1 for no limit, otherwise the specified value
Value that can be set via the System property
'mule.sftp.transport.maxConnectionPoolSize'. If it's set the value is used
instead of maxConnectionPoolSize
logger.info("Will override the maxConnectionPoolSize to " + propValue
+ " from the system property 'mule.sftp.transport.maxConnectionPoolSize'.");
logger.debug("Successfully changed working directory to: " + dir);
if (!ok && client != null)
- True if connection pooling is used, otherwise false
if (filenameParser != null)
Returns the file age.
- Returns the fileAge in milliseconds.
Sets the file age.
fileAge the fileAge in milliseconds to set.
- See also:
- the max connection pool size. If the system parameter
mule.sftp.transport.maxConnectionPoolSize is set, that value will be