Class Connector

java.lang.Object
com.almis.awe.scheduler.filechecker.Connector
Direct Known Subclasses:
FolderFileChecker, FTPFileChecker

public abstract class Connector extends Object
Author:
dfuentes
  • Constructor Details

    • Connector

      public Connector(FileDAO fileDAO)
  • Method Details

    • connectAndGetFiles

      protected abstract <T> List<T> connectAndGetFiles(Task task) throws AWException
      Abstract class for connecting to some server and getting an array with all files back
      Parameters:
      task -
      Returns:
      Throws:
      AWException
    • checkForChanges

      public abstract String checkForChanges(Task task) throws AWException
      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: