Class FTPFileChecker
java.lang.Object
com.almis.awe.scheduler.filechecker.Connector
com.almis.awe.scheduler.filechecker.FTPFileChecker
- Author:
- dfuentes
-
Constructor Summary
ConstructorDescriptionFTPFileChecker
(FileDAO fileDAO, org.apache.commons.net.ftp.FTPClient ftpClient) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptioncheckForChanges
(Task task) Abstract class for checking on all saved files if there was any changeprotected List<org.apache.commons.net.ftp.FTPFile>
connectAndGetFiles
(Task task) Abstract class for connecting to some server and getting an array with all files backMethods inherited from class com.almis.awe.scheduler.filechecker.Connector
checkFileModifications
-
Constructor Details
-
FTPFileChecker
Autowired constructor- Parameters:
fileDAO
- File DAOftpClient
- FTP client
-
-
Method Details
-
connectAndGetFiles
Description copied from class:Connector
Abstract class for connecting to some server and getting an array with all files back- Specified by:
connectAndGetFiles
in classConnector
- Returns:
-
checkForChanges
Description copied from class:Connector
Abstract class for checking on all saved files if there was any change- Specified by:
checkForChanges
in classConnector
- Returns:
- Changed file name
-