public class MockSearchService
extends org.elasticsearch.search.SearchService
Modifier and Type | Class and Description |
---|---|
static class |
MockSearchService.TestPlugin
Marker plugin used by
MockNode to enable MockSearchService . |
Constructor and Description |
---|
MockSearchService(org.elasticsearch.cluster.service.ClusterService clusterService,
org.elasticsearch.indices.IndicesService indicesService,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.script.ScriptService scriptService,
org.elasticsearch.common.util.BigArrays bigArrays,
org.elasticsearch.search.fetch.FetchPhase fetchPhase) |
Modifier and Type | Method and Description |
---|---|
static void |
assertNoInFlightContext()
Throw an
AssertionError if there are still in-flight contexts. |
protected void |
putContext(org.elasticsearch.search.internal.SearchContext context) |
protected org.elasticsearch.search.internal.SearchContext |
removeContext(long id) |
afterIndexClosed, afterIndexDeleted, createSearchContext, doClose, doStart, doStop, executeDfsPhase, executeFetchPhase, executeFetchPhase, executeFetchPhase, executeFetchPhase, executeQueryPhase, executeQueryPhase, executeQueryPhase, freeAllScrollContexts, freeContext, getActiveContexts
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, beforeIndexClosed, beforeIndexCreated, beforeIndexDeleted, beforeIndexShardClosed, beforeIndexShardCreated, beforeIndexShardDeleted, indexShardStateChanged, onShardInactive, onStoreClosed, shardRoutingChanged
public MockSearchService(org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.indices.IndicesService indicesService, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.script.ScriptService scriptService, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.search.fetch.FetchPhase fetchPhase)
public static void assertNoInFlightContext()
AssertionError
if there are still in-flight contexts.protected void putContext(org.elasticsearch.search.internal.SearchContext context)
putContext
in class org.elasticsearch.search.SearchService
protected org.elasticsearch.search.internal.SearchContext removeContext(long id)
removeContext
in class org.elasticsearch.search.SearchService