Class MockEngineFactoryPlugin

java.lang.Object
org.elasticsearch.plugins.Plugin
org.elasticsearch.index.MockEngineFactoryPlugin
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.plugins.EnginePlugin

public class MockEngineFactoryPlugin extends org.elasticsearch.plugins.Plugin implements org.elasticsearch.plugins.EnginePlugin
A plugin to use MockEngineFactory. Subclasses may override the reader wrapper used.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.elasticsearch.index.engine.EngineFactory>
    getEngineFactory​(org.elasticsearch.index.IndexSettings indexSettings)
     
    protected Class<? extends org.apache.lucene.index.FilterDirectoryReader>
     
    List<org.elasticsearch.common.settings.Setting<?>>
     

    Methods inherited from class org.elasticsearch.plugins.Plugin

    additionalSettings, close, createComponents, createGuiceModules, getAdditionalIndexSettingProviders, getBootstrapChecks, getExecutorBuilders, getFeature, getGuiceServiceClasses, getIndexTemplateMetadataUpgrader, getNamedWriteables, getNamedXContent, getRoles, getSettingsFilter, getSettingUpgraders, onIndexModule

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MockEngineFactoryPlugin

      public MockEngineFactoryPlugin()
  • Method Details

    • getSettings

      public List<org.elasticsearch.common.settings.Setting<?>> getSettings()
      Overrides:
      getSettings in class org.elasticsearch.plugins.Plugin
    • getEngineFactory

      public Optional<org.elasticsearch.index.engine.EngineFactory> getEngineFactory(org.elasticsearch.index.IndexSettings indexSettings)
      Specified by:
      getEngineFactory in interface org.elasticsearch.plugins.EnginePlugin
    • getReaderWrapperClass

      protected Class<? extends org.apache.lucene.index.FilterDirectoryReader> getReaderWrapperClass()