Package org.apache.plc4x.java.scraper
Class ScraperImpl
- java.lang.Object
-
- org.apache.plc4x.java.scraper.ScraperImpl
-
- All Implemented Interfaces:
Scraper
@Deprecated public class ScraperImpl extends Object implements Scraper
Deprecated.Scraper is deprecated please useTriggeredScraperImplinstead all functions are supplied as wellMain class that orchestrates scraping.
-
-
Constructor Summary
Constructors Constructor Description ScraperImpl(ScraperConfiguration config, ResultHandler resultHandler)Deprecated.Creates a Scraper instance from a configuration.ScraperImpl(ResultHandler resultHandler, PlcConnectionManager connectionManager, List<ScrapeJob> jobs)Deprecated.default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetNumberOfActiveTasks()Deprecated.retrieves active tasks used for scrapingvoidstart()Deprecated.Start the scraping.voidstop()Deprecated.stops active scraping processes
-
-
-
Constructor Detail
-
ScraperImpl
public ScraperImpl(ResultHandler resultHandler, PlcConnectionManager connectionManager, List<ScrapeJob> jobs)
Deprecated.default constructor- Parameters:
resultHandler- handler for acquired dataconnectionManager- handler for Plc connectionjobs- list of scrapings jobs to be executed
-
ScraperImpl
public ScraperImpl(ScraperConfiguration config, ResultHandler resultHandler) throws ScraperException
Deprecated.Creates a Scraper instance from a configuration. By default, aCachedPlcConnectionManageris used.- Parameters:
config- Configuration to use.resultHandler- handler for acquired data- Throws:
ScraperException- something went wrong ...
-
-
Method Detail
-
start
public void start()
Deprecated.Description copied from interface:ScraperStart the scraping.
-
getNumberOfActiveTasks
public int getNumberOfActiveTasks()
Deprecated.Description copied from interface:Scraperretrieves active tasks used for scraping- Specified by:
getNumberOfActiveTasksin interfaceScraper- Returns:
- number of active tasks
-
-