@Service public class AutoDownloadServiceImpl extends java.lang.Object implements AutoDownloadService
appProperties.autoDownload.cron property).
It will create a download url, download the file from that url and process it.
Note: the cron expression is read by the AppProperties configuration class.
| Constructor and Description |
|---|
AutoDownloadServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkFiles()
Downloads the CSV files from the data.gov.ie for the current year
and checks if they already exists there.
|
@Scheduled(cron="#{appProperties.autoDownload.cron}")
public void checkFiles()
AutoDownloadServicecheckFiles in interface AutoDownloadService