public class MockSearchService extends SearchService
Modifier and Type | Class and Description |
---|---|
static class |
MockSearchService.TestPlugin
Marker plugin used by
MockNode to enable MockSearchService . |
DEFAULT_KEEPALIVE_SETTING, DEFAULT_SEARCH_TIMEOUT_SETTING, KEEPALIVE_INTERVAL_SETTING, LOW_LEVEL_CANCELLATION_SETTING, MAX_KEEPALIVE_SETTING, NO_TIMEOUT
lifecycle
deprecationLogger, logger, settings
Constructor and Description |
---|
MockSearchService(ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ScriptService scriptService,
BigArrays bigArrays,
FetchPhase fetchPhase) |
Modifier and Type | Method and Description |
---|---|
static void |
assertNoInFlightContext()
Throw an
AssertionError if there are still in-flight contexts. |
protected void |
putContext(SearchContext context) |
protected SearchContext |
removeContext(long id) |
afterIndexRemoved, buildAliasFilter, canMatch, canRewriteToMatchNone, createSearchContext, doClose, doStart, doStop, executeDfsPhase, executeFetchPhase, executeFetchPhase, executeQueryPhase, executeQueryPhase, executeQueryPhase, freeAllScrollContexts, freeContext, getActiveContexts, getResponseCollectorService, getRewriteContext
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterIndexCreated, afterIndexShardClosed, afterIndexShardCreated, afterIndexShardDeleted, afterIndexShardStarted, beforeIndexAddedToCluster, beforeIndexCreated, beforeIndexRemoved, beforeIndexShardClosed, beforeIndexShardCreated, beforeIndexShardDeleted, indexShardStateChanged, onShardInactive, onStoreClosed, shardRoutingChanged
public 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 SearchService
protected SearchContext removeContext(long id)
removeContext
in class SearchService