public class MockSearchService
extends org.elasticsearch.search.SearchService
Modifier and Type | Class and Description |
---|---|
static class |
MockSearchService.TestPlugin |
Constructor and Description |
---|
MockSearchService(org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.common.settings.ClusterSettings clusterSettings,
org.elasticsearch.cluster.service.ClusterService clusterService,
org.elasticsearch.indices.IndicesService indicesService,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.script.ScriptService scriptService,
org.elasticsearch.cache.recycler.PageCacheRecycler pageCacheRecycler,
org.elasticsearch.common.util.BigArrays bigArrays,
org.elasticsearch.search.dfs.DfsPhase dfsPhase,
org.elasticsearch.search.query.QueryPhase queryPhase,
org.elasticsearch.search.fetch.FetchPhase fetchPhase,
org.elasticsearch.search.aggregations.AggregatorParsers aggParsers,
org.elasticsearch.search.suggest.Suggesters suggesters) |
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, 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
@Inject public MockSearchService(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.common.settings.ClusterSettings clusterSettings, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.indices.IndicesService indicesService, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.script.ScriptService scriptService, org.elasticsearch.cache.recycler.PageCacheRecycler pageCacheRecycler, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.search.dfs.DfsPhase dfsPhase, org.elasticsearch.search.query.QueryPhase queryPhase, org.elasticsearch.search.fetch.FetchPhase fetchPhase, org.elasticsearch.search.aggregations.AggregatorParsers aggParsers, org.elasticsearch.search.suggest.Suggesters suggesters)
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