public static List<ScrapeJob> getJobs(List<JobConfigurationImpl> jobConfigurations, Map<String, String> sources) throws ScraperConfigurationException {
        List<ScrapeJob> scrapeJobs = new ArrayList<>();
        for(JobConfiguration jobConfiguration:jobConfigurations){
            if(jobConfiguration.getTriggerConfig()!=null){
                logger.info("Assuming job as triggered job because triggerConfig has been set");
                scrapeJobs.add(new TriggeredScrapeJobImpl(jobConfiguration.getName(),
                    jobConfiguration.getTriggerConfig(),
                    getSourcesForAliases(jobConfiguration.getSources(),sources),
                    jobConfiguration.getTags()));
            }
            else {
                if(jobConfiguration.getScrapeRate()!=null){
                    logger.info("Assuming job as classic job because triggerConfig has NOT been set but scrapeRate has.");
                    scrapeJobs.add(new ScrapeJobImpl(
                        jobConfiguration.getName(),
                        jobConfiguration.getScrapeRate(),
                        getSourcesForAliases(jobConfiguration.getSources(),sources),
                        jobConfiguration.getTags()));
                }
                else {
                    logger.info("Job has lack of trigger/scheduled config");
                    throw new ScraperConfigurationException(
                        String.format("Job %s was intended to be o triggered annotation, but no triggerConfig-tag could be found. Canceling!",jobConfiguration.getName()));
                }
            }
        }
        return scrapeJobs;
    }
Default constructor.

@param sources           Map from connection alias to connection string
@param jobConfigurations List of configurations one for each Job
plc4j/tools/scraper/src/main/java/org/apache/plc4x/java/scraper/config/triggeredscraper/ScraperConfigurationTriggeredImpl.java