Class MockIndexEventListener.TestPlugin

java.lang.Object
org.opensearch.plugins.Plugin
org.opensearch.test.MockIndexEventListener.TestPlugin
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
MockIndexEventListener

public static class MockIndexEventListener.TestPlugin extends org.opensearch.plugins.Plugin
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.opensearch.common.settings.Setting<Boolean>
    For tests to pass in to fail on listener invocation
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<org.opensearch.common.inject.Module>
     
    List<org.opensearch.common.settings.Setting<?>>
     
    void
    onIndexModule(org.opensearch.index.IndexModule module)
     

    Methods inherited from class org.opensearch.plugins.Plugin

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

    Methods inherited from class java.lang.Object

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

    • INDEX_FAIL

      public static final org.opensearch.common.settings.Setting<Boolean> INDEX_FAIL
      For tests to pass in to fail on listener invocation
  • Constructor Details

    • TestPlugin

      public TestPlugin()
  • Method Details

    • getSettings

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

      public void onIndexModule(org.opensearch.index.IndexModule module)
      Overrides:
      onIndexModule in class org.opensearch.plugins.Plugin
    • createGuiceModules

      public Collection<org.opensearch.common.inject.Module> createGuiceModules()
      Overrides:
      createGuiceModules in class org.opensearch.plugins.Plugin