Package org.apache.plc4x.java.scraper
Class ScraperTaskImpl
- java.lang.Object
-
- org.apache.plc4x.java.scraper.ScraperTaskImpl
-
- All Implemented Interfaces:
Runnable,ScraperTask
@Deprecated public class ScraperTaskImpl extends Object implements ScraperTask
Deprecated.Scraper is deprecated please useTriggeredScrapeJobImplinstead all functions are supplied as well see java-doc ofTriggeredScraperImplPlc Scraper Task that scrapes one source. OneScrapeJobImplgets split into multiple tasks. One task for each source that is defined in theJobConfigurationClassicImpl.
-
-
Constructor Summary
Constructors Constructor Description ScraperTaskImpl(PlcConnectionManager connectionManager, String jobName, String connectionAlias, String connectionString, Map<String,String> tags, long requestTimeoutMs, ExecutorService handlerService, ResultHandler resultHandler)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetConnectionAlias()Deprecated.StringgetJobName()Deprecated.org.apache.commons.math3.stat.descriptive.DescriptiveStatisticsgetLatencyStatistics()Deprecated.doublegetPercentageFailed()Deprecated.longgetRequestCounter()Deprecated.longgetSuccessfullRequestCounter()Deprecated.voidhandleErrorResponse(Map<String,PlcResponseCode> failed)Deprecated.voidhandleException(Exception e)Deprecated.voidrun()Deprecated.
-
-
-
Constructor Detail
-
ScraperTaskImpl
public ScraperTaskImpl(PlcConnectionManager connectionManager, String jobName, String connectionAlias, String connectionString, Map<String,String> tags, long requestTimeoutMs, ExecutorService handlerService, ResultHandler resultHandler)
Deprecated.
-
-
Method Detail
-
run
public void run()
Deprecated.- Specified by:
runin interfaceRunnable- Specified by:
runin interfaceScraperTask
-
getJobName
public String getJobName()
Deprecated.- Specified by:
getJobNamein interfaceScraperTask
-
getConnectionAlias
public String getConnectionAlias()
Deprecated.- Specified by:
getConnectionAliasin interfaceScraperTask
-
getRequestCounter
public long getRequestCounter()
Deprecated.- Specified by:
getRequestCounterin interfaceScraperTask
-
getSuccessfullRequestCounter
public long getSuccessfullRequestCounter()
Deprecated.- Specified by:
getSuccessfullRequestCounterin interfaceScraperTask
-
getLatencyStatistics
public org.apache.commons.math3.stat.descriptive.DescriptiveStatistics getLatencyStatistics()
Deprecated.- Specified by:
getLatencyStatisticsin interfaceScraperTask
-
getPercentageFailed
public double getPercentageFailed()
Deprecated.- Specified by:
getPercentageFailedin interfaceScraperTask
-
handleException
public void handleException(Exception e)
Deprecated.- Specified by:
handleExceptionin interfaceScraperTask
-
handleErrorResponse
public void handleErrorResponse(Map<String,PlcResponseCode> failed)
Deprecated.- Specified by:
handleErrorResponsein interfaceScraperTask
-
-