public final class SearchSlowLog extends java.lang.Object implements SearchOperationListener
SearchOperationListener.CompositeListener
Modifier and Type | Field and Description |
---|---|
static Setting<SlowLogLevel> |
INDEX_SEARCH_SLOWLOG_LEVEL |
static Setting<TimeValue> |
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_DEBUG_SETTING |
static Setting<TimeValue> |
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_INFO_SETTING |
static Setting<TimeValue> |
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_TRACE_SETTING |
static Setting<TimeValue> |
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_WARN_SETTING |
static Setting<TimeValue> |
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_DEBUG_SETTING |
static Setting<TimeValue> |
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_INFO_SETTING |
static Setting<TimeValue> |
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_TRACE_SETTING |
static Setting<TimeValue> |
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_WARN_SETTING |
Constructor and Description |
---|
SearchSlowLog(IndexSettings indexSettings) |
Modifier and Type | Method and Description |
---|---|
void |
onFetchPhase(SearchContext context,
long tookInNanos)
Executed after the fetch phase successfully finished.
|
void |
onQueryPhase(SearchContext context,
long tookInNanos)
Executed after the query phase successfully finished.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onFailedFetchPhase, onFailedQueryPhase, onFreeContext, onFreeScrollContext, onNewContext, onNewScrollContext, onPreFetchPhase, onPreQueryPhase, validateSearchContext
public static final Setting<TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_WARN_SETTING
public static final Setting<TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_INFO_SETTING
public static final Setting<TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_DEBUG_SETTING
public static final Setting<TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_TRACE_SETTING
public static final Setting<TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_WARN_SETTING
public static final Setting<TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_INFO_SETTING
public static final Setting<TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_DEBUG_SETTING
public static final Setting<TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_TRACE_SETTING
public static final Setting<SlowLogLevel> INDEX_SEARCH_SLOWLOG_LEVEL
public SearchSlowLog(IndexSettings indexSettings)
public void onQueryPhase(SearchContext context, long tookInNanos)
SearchOperationListener
onQueryPhase
in interface SearchOperationListener
context
- the current search contexttookInNanos
- the number of nanoseconds the query execution tookSearchOperationListener.onFailedQueryPhase(SearchContext)
public void onFetchPhase(SearchContext context, long tookInNanos)
SearchOperationListener
onFetchPhase
in interface SearchOperationListener
context
- the current search contexttookInNanos
- the number of nanoseconds the fetch execution tookSearchOperationListener.onFailedFetchPhase(SearchContext)