Package org.opensearch.index.engine
Class EngineConfigFactory
java.lang.Object
org.opensearch.index.engine.EngineConfigFactory
public class EngineConfigFactory
extends java.lang.Object
A factory to create an EngineConfig based on custom plugin overrides
-
Constructor Summary
Constructors Constructor Description EngineConfigFactory(IndexSettings idxSettings)
default ctor primarily used for tests without pluginsEngineConfigFactory(PluginsService pluginsService, IndexSettings idxSettings)
Construct a factory using the plugin service and provided index settings -
Method Summary
Modifier and Type Method Description EngineConfig
newEngineConfig(ShardId shardId, ThreadPool threadPool, IndexSettings indexSettings, Engine.Warmer warmer, Store store, org.apache.lucene.index.MergePolicy mergePolicy, org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.search.similarities.Similarity similarity, CodecService codecService, Engine.EventListener eventListener, org.apache.lucene.search.QueryCache queryCache, org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy, TranslogConfig translogConfig, org.opensearch.common.unit.TimeValue flushMergesAfter, java.util.List<org.apache.lucene.search.ReferenceManager.RefreshListener> externalRefreshListener, java.util.List<org.apache.lucene.search.ReferenceManager.RefreshListener> internalRefreshListener, org.apache.lucene.search.Sort indexSort, CircuitBreakerService circuitBreakerService, java.util.function.LongSupplier globalCheckpointSupplier, java.util.function.Supplier<RetentionLeases> retentionLeasesSupplier, java.util.function.LongSupplier primaryTermSupplier, EngineConfig.TombstoneDocSupplier tombstoneDocSupplier)
Instantiates a new EngineConfig from the provided custom overrides
-
Constructor Details
-
EngineConfigFactory
default ctor primarily used for tests without plugins -
EngineConfigFactory
Construct a factory using the plugin service and provided index settings
-
-
Method Details
-
newEngineConfig
public EngineConfig newEngineConfig(ShardId shardId, ThreadPool threadPool, IndexSettings indexSettings, Engine.Warmer warmer, Store store, org.apache.lucene.index.MergePolicy mergePolicy, org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.search.similarities.Similarity similarity, CodecService codecService, Engine.EventListener eventListener, org.apache.lucene.search.QueryCache queryCache, org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy, TranslogConfig translogConfig, org.opensearch.common.unit.TimeValue flushMergesAfter, java.util.List<org.apache.lucene.search.ReferenceManager.RefreshListener> externalRefreshListener, java.util.List<org.apache.lucene.search.ReferenceManager.RefreshListener> internalRefreshListener, org.apache.lucene.search.Sort indexSort, CircuitBreakerService circuitBreakerService, java.util.function.LongSupplier globalCheckpointSupplier, java.util.function.Supplier<RetentionLeases> retentionLeasesSupplier, java.util.function.LongSupplier primaryTermSupplier, EngineConfig.TombstoneDocSupplier tombstoneDocSupplier)Instantiates a new EngineConfig from the provided custom overrides
-