java.io.Closeable, java.lang.AutoCloseable, LifecycleComponent, Releasable, IndexEventListenerpublic class MockSearchService extends SearchService
| Modifier and Type | Class | Description |
|---|---|---|
static class |
MockSearchService.TestPlugin |
Marker plugin used by
MockNode to enable MockSearchService. |
deprecationLogger, logger, settingslifecycleDEFAULT_ALLOW_PARTIAL_SEARCH_RESULTS, DEFAULT_KEEPALIVE_SETTING, DEFAULT_SEARCH_TIMEOUT_SETTING, KEEPALIVE_INTERVAL_SETTING, LOW_LEVEL_CANCELLATION_SETTING, MAX_KEEPALIVE_SETTING, NO_TIMEOUT| Constructor | Description |
|---|---|
MockSearchService(ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ScriptService scriptService,
BigArrays bigArrays,
FetchPhase fetchPhase) |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
assertNoInFlightContext() |
Throw an
AssertionError if there are still in-flight contexts. |
protected void |
putContext(SearchContext context) |
|
protected SearchContext |
removeContext(long id) |
logDeprecatedSetting, logRemovedSetting, nodeNameaddLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stopafterIndexCreated, afterIndexShardClosed, afterIndexShardCreated, afterIndexShardDeleted, afterIndexShardStarted, beforeIndexAddedToCluster, beforeIndexCreated, beforeIndexRemoved, beforeIndexShardClosed, beforeIndexShardCreated, beforeIndexShardDeleted, indexShardStateChanged, onShardInactive, onStoreClosed, shardRoutingChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterIndexRemoved, buildAliasFilter, canMatch, canRewriteToMatchNone, createReduceContext, createSearchContext, defaultAllowPartialSearchResults, doClose, doStart, doStop, executeDfsPhase, executeFetchPhase, executeFetchPhase, executeQueryPhase, executeQueryPhase, executeQueryPhase, freeAllScrollContexts, freeContext, getActiveContexts, getResponseCollectorService, getRewriteContextpublic MockSearchService(ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ScriptService scriptService, BigArrays bigArrays, FetchPhase fetchPhase)
public static void assertNoInFlightContext()
AssertionError if there are still in-flight contexts.protected void putContext(SearchContext context)
putContext in class SearchServiceprotected SearchContext removeContext(long id)
removeContext in class SearchService