public class SftpReceiverRequesterUtil extends Object
Constructor and Description |
---|
SftpReceiverRequesterUtil(ImmutableEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canProcessFile(String fileName,
SftpClient client,
long fileAge,
long sizeCheckDelayMs)
Checks if the file has been changed.
|
String[] |
getAvailableFiles(boolean onlyGetTheFirstOne) |
InputStream |
retrieveFile(String fileName,
SftpNotifier notifier) |
public SftpReceiverRequesterUtil(ImmutableEndpoint endpoint)
public String[] getAvailableFiles(boolean onlyGetTheFirstOne) throws Exception
Exception
public InputStream retrieveFile(String fileName, SftpNotifier notifier) throws Exception
Exception
protected boolean canProcessFile(String fileName, SftpClient client, long fileAge, long sizeCheckDelayMs) throws Exception
fileName
- The file to checkclient
- instance of StftClientfileAge
- How old the file should be to be considered "old" and not
changedsizeCheckDelayMs
- Wait time (in ms) between size-checks to determine if
a file is ready to be processed.Exception
- ErrorCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.