Class JobConfigurationImpl
- java.lang.Object
-
- org.apache.plc4x.java.scraper.config.JobConfigurationImpl
-
- All Implemented Interfaces:
JobConfiguration
- Direct Known Subclasses:
JobConfigurationClassicImpl,JobConfigurationTriggeredImpl
public class JobConfigurationImpl extends Object implements JobConfiguration
abstract configuration for scrape-job configuration
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()IntegergetScrapeRate()List<String>getSources()Map<String,String>getTags()StringgetTriggerConfig()
-
-
-
Constructor Detail
-
JobConfigurationImpl
public JobConfigurationImpl(String name, String triggerConfig, Integer scrapeRate, List<String> sources, Map<String,String> tags)
Default constructor- Parameters:
name- Job Name / identifiertriggerConfig- configuration string for triggered jobsscrapeRate- rate in which the data should be acquiredsources- source alias (not connection string but the alias (from @ScraperConfigurationClassicImpl).tags- Map from tag alias (how it is named in the result map) to plc4x tag query
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceJobConfiguration
-
getTriggerConfig
public String getTriggerConfig()
- Specified by:
getTriggerConfigin interfaceJobConfiguration
-
getSources
public List<String> getSources()
- Specified by:
getSourcesin interfaceJobConfiguration
-
getTags
public Map<String,String> getTags()
- Specified by:
getTagsin interfaceJobConfiguration
-
getScrapeRate
public Integer getScrapeRate()
- Specified by:
getScrapeRatein interfaceJobConfiguration
-
-