Class SearchExecutionStatsCollector

java.lang.Object
org.elasticsearch.action.ActionListener.Delegating<SearchPhaseResult,​SearchPhaseResult>
org.elasticsearch.action.search.SearchExecutionStatsCollector
All Implemented Interfaces:
ActionListener<SearchPhaseResult>

public final class SearchExecutionStatsCollector
extends ActionListener.Delegating<SearchPhaseResult,​SearchPhaseResult>
A wrapper of search action listeners (search results) that unwraps the query result to get the piggybacked queue size and service time EWMA, adding those values to the coordinating nodes' ResponseCollectorService.
  • Method Details

    • makeWrapper

      public static java.util.function.BiFunction<Transport.Connection,​org.elasticsearch.action.search.SearchActionListener,​ActionListener> makeWrapper​(ResponseCollectorService service)
    • onResponse

      public void onResponse​(SearchPhaseResult response)
      Description copied from interface: ActionListener
      Handle action response. This response may constitute a failure or a success but it is up to the listener to make that decision.