Class Connector
java.lang.Object
com.almis.awe.scheduler.filechecker.Connector
- Direct Known Subclasses:
FolderFileChecker
,FTPFileChecker
- Author:
- dfuentes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkFileModifications
(Task task, String fileName, String path, Date lastModification) Check for changes on a single file, (usually called from the function checkForChanges to check the files individually)abstract String
checkForChanges
(Task task) Abstract class for checking on all saved files if there was any changeprotected abstract <T> List<T>
connectAndGetFiles
(Task task) Abstract class for connecting to some server and getting an array with all files back
-
Constructor Details
-
Connector
-
-
Method Details
-
connectAndGetFiles
Abstract class for connecting to some server and getting an array with all files back- Parameters:
task
-- Returns:
- Throws:
AWException
-
checkForChanges
Abstract class for checking on all saved files if there was any change- Parameters:
task
-- Returns:
- Changed file name
- Throws:
AWException
-
checkFileModifications
protected boolean checkFileModifications(Task task, String fileName, String path, Date lastModification) Check for changes on a single file, (usually called from the function checkForChanges to check the files individually)- Parameters:
task
-fileName
-path
-lastModification
-- Returns:
-