Class Log4jSolrQueryStatisticsAggregator
java.lang.Object
de.hybris.platform.solrfacetsearch.reporting.impl.Log4jSolrQueryStatisticsAggregator
- All Implemented Interfaces:
SolrQueryStatisticsAggregator
public class Log4jSolrQueryStatisticsAggregator
extends Object
implements SolrQueryStatisticsAggregator
Uses Log4j log files to aggregate data.
Reads files from folder (property 'statisticFilesFolder'), processes it, deletes files and collects statistics using
collector.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAggregates query statistics and returns it as a collectionprotected File[]protected List<SearchQueryInfo>processFile(File file) voidsetFilePrefix(String filePrefix) voidsetFormatter(SimpleDateFormat formatter) voidsetStatisticFilesFolder(String statisticFilesFolder) voidsetStatisticsCollector(StatisticsCollector statisticsCollector)
-
Constructor Details
-
Log4jSolrQueryStatisticsAggregator
public Log4jSolrQueryStatisticsAggregator()
-
-
Method Details
-
aggregate
Description copied from interface:SolrQueryStatisticsAggregatorAggregates query statistics and returns it as a collection- Specified by:
aggregatein interfaceSolrQueryStatisticsAggregator
-
getLogFilesToProcess
-
processFile
- Throws:
IOException
-
setStatisticFilesFolder
-
setFilePrefix
-
setFormatter
-
setStatisticsCollector
-