Interface UploadDataProcessorService

All Known Implementing Classes:
DefaultUploadDataProcessorService

public interface UploadDataProcessorService
Service that deals with the finding and transfer of the generated files.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.messaging.Message<List<File>>
    findFiles(org.springframework.messaging.Message<?> message, String filenameRegex, String directory)
    Find files matching the provided regex in the specified directory
    getUploadCronJob(org.springframework.messaging.Message<File> message)
    get the cronjob configuration that generates this file
    handlerError(org.springframework.messaging.support.ErrorMessage message)
    handle any exceptions that occur during transport.
  • Method Details

    • findFiles

      org.springframework.messaging.Message<List<File>> findFiles(org.springframework.messaging.Message<?> message, String filenameRegex, String directory)
      Find files matching the provided regex in the specified directory
      Parameters:
      message - the message
      filenameRegex - filename regular expression
      directory - the directory path to search within
      Returns:
      a message that contains a list of found files
    • getUploadCronJob

      CronJobModel getUploadCronJob(org.springframework.messaging.Message<File> message)
      get the cronjob configuration that generates this file
      Parameters:
      message - message that contains the file
      Returns:
      the cronjob configuration
    • handlerError

      File handlerError(org.springframework.messaging.support.ErrorMessage message)
      handle any exceptions that occur during transport.
      Parameters:
      message -
      Returns:
      the file that had the issue