Interface UploadDataProcessorService
-
- All Known Implementing Classes:
DefaultUploadDataProcessorService
public interface UploadDataProcessorServiceService that deals with the finding and transfer of the generated files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.messaging.Message<java.util.List<java.io.File>>findFiles(org.springframework.messaging.Message<?> message, java.lang.String filenameRegex, java.lang.String directory)Find files matching the provided regex in the specified directoryCronJobModelgetUploadCronJob(org.springframework.messaging.Message<java.io.File> message)get the cronjob configuration that generates this filejava.io.FilehandlerError(org.springframework.messaging.support.ErrorMessage message)handle any exceptions that occur during transport.
-
-
-
Method Detail
-
findFiles
org.springframework.messaging.Message<java.util.List<java.io.File>> findFiles(org.springframework.messaging.Message<?> message, java.lang.String filenameRegex, java.lang.String directory)Find files matching the provided regex in the specified directory- Parameters:
message- the messagefilenameRegex- filename regular expressiondirectory- the directory path to search within- Returns:
- a message that contains a list of found files
-
getUploadCronJob
CronJobModel getUploadCronJob(org.springframework.messaging.Message<java.io.File> message)
get the cronjob configuration that generates this file- Parameters:
message- message that contains the file- Returns:
- the cronjob configuration
-
handlerError
java.io.File handlerError(org.springframework.messaging.support.ErrorMessage message)
handle any exceptions that occur during transport.- Parameters:
message-- Returns:
- the file that had the issue
-
-