Package org.elasticsearch.test
Class MockIndexEventListener.TestPlugin
java.lang.Object
org.elasticsearch.plugins.Plugin
org.elasticsearch.test.MockIndexEventListener.TestPlugin
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- MockIndexEventListener
public static class MockIndexEventListener.TestPlugin
extends org.elasticsearch.plugins.Plugin
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.settings.Setting<java.lang.Boolean>
INDEX_FAIL
For tests to pass in to fail on listener invocation -
Constructor Summary
Constructors Constructor Description TestPlugin()
-
Method Summary
Modifier and Type Method Description java.util.Collection<org.elasticsearch.common.inject.Module>
createGuiceModules()
java.util.List<org.elasticsearch.common.settings.Setting<?>>
getSettings()
void
onIndexModule(org.elasticsearch.index.IndexModule module)
Methods inherited from class org.elasticsearch.plugins.Plugin
additionalSettings, close, createComponents, getBootstrapChecks, getExecutorBuilders, getFeature, getGuiceServiceClasses, getIndexTemplateMetadataUpgrader, getNamedWriteables, getNamedXContent, getRoles, getSettingsFilter, getSettingUpgraders
-
Field Details
-
INDEX_FAIL
public static final org.elasticsearch.common.settings.Setting<java.lang.Boolean> INDEX_FAILFor tests to pass in to fail on listener invocation
-
-
Constructor Details
-
TestPlugin
public TestPlugin()
-
-
Method Details
-
getSettings
public java.util.List<org.elasticsearch.common.settings.Setting<?>> getSettings()- Overrides:
getSettings
in classorg.elasticsearch.plugins.Plugin
-
onIndexModule
public void onIndexModule(org.elasticsearch.index.IndexModule module)- Overrides:
onIndexModule
in classorg.elasticsearch.plugins.Plugin
-
createGuiceModules
public java.util.Collection<org.elasticsearch.common.inject.Module> createGuiceModules()- Overrides:
createGuiceModules
in classorg.elasticsearch.plugins.Plugin
-