public class StatisticsSearcher extends Searcher
A searcher to gather statistics such as queries completed and query latency. There may be more than 1 StatisticsSearcher in the Searcher chain, each identified by a Searcher ID. The statistics accumulated by all StatisticsSearchers are stored in the singleton StatisticsManager object.
TODO: Fix events to handle more than one of these searchers properly.
Constructor and Description |
---|
StatisticsSearcher(com.yahoo.statistics.Statistics manager,
com.yahoo.jdisc.Metric metric,
com.yahoo.metrics.simple.MetricReceiver metricReceiver) |
Modifier and Type | Method and Description |
---|---|
void |
deconstruct() |
Result |
search(Query query,
Execution execution)
Generate statistics for the query passing through this Searcher
1) Add 1 to total query count
2) Add response time to total response time (time from entry to return)
3) .....
|
ensureFilled, fill, getLogger, process, toString
getAnnotatedDependencies, getDefaultAnnotatedDependencies, getDependencies, initDependencies
public StatisticsSearcher(com.yahoo.statistics.Statistics manager, com.yahoo.jdisc.Metric metric, com.yahoo.metrics.simple.MetricReceiver metricReceiver)
public void deconstruct()
deconstruct
in class com.yahoo.component.AbstractComponent
Copyright © 2018. All rights reserved.