Package org.elasticsearch.action.search
Class SearchExecutionStatsCollector
java.lang.Object
org.elasticsearch.action.search.SearchExecutionStatsCollector
- All Implemented Interfaces:
ActionListener<SearchPhaseResult>
public final class SearchExecutionStatsCollector extends java.lang.Object implements ActionListener<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 Summary
Modifier and Type Method Description static java.util.function.BiFunction<Transport.Connection,org.elasticsearch.action.search.SearchActionListener,ActionListener>makeWrapper(ResponseCollectorService service)voidonFailure(java.lang.Exception e)A failure caused by an exception at some phase of the task.voidonResponse(SearchPhaseResult response)Handle action response.
-
Method Details
-
makeWrapper
public static java.util.function.BiFunction<Transport.Connection,org.elasticsearch.action.search.SearchActionListener,ActionListener> makeWrapper(ResponseCollectorService service) -
onResponse
Description copied from interface:ActionListenerHandle action response. This response may constitute a failure or a success but it is up to the listener to make that decision.- Specified by:
onResponsein interfaceActionListener<SearchPhaseResult>
-
onFailure
public void onFailure(java.lang.Exception e)Description copied from interface:ActionListenerA failure caused by an exception at some phase of the task.- Specified by:
onFailurein interfaceActionListener<SearchPhaseResult>
-