Package org.elasticsearch.script
Class MockScriptPlugin
java.lang.Object
org.elasticsearch.plugins.Plugin
org.elasticsearch.script.MockScriptPlugin
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.elasticsearch.plugins.ScriptPlugin
public abstract class MockScriptPlugin
extends org.elasticsearch.plugins.Plugin
implements org.elasticsearch.plugins.ScriptPlugin
A script plugin that uses
MockScriptEngine
as the script engine for tests.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.script.ScriptEngine
getScriptEngine
(org.elasticsearch.common.settings.Settings settings, Collection<org.elasticsearch.script.ScriptContext<?>> contexts) protected Map<org.elasticsearch.script.ScriptContext<?>,
MockScriptEngine.ContextCompiler> Methods inherited from class org.elasticsearch.plugins.Plugin
additionalSettings, close, createComponents, createGuiceModules, getAdditionalIndexSettingProviders, getBootstrapChecks, getExecutorBuilders, getFeature, getGuiceServiceClasses, getIndexTemplateMetadataUpgrader, getNamedWriteables, getNamedXContent, getRoles, getSettings, getSettingsFilter, getSettingUpgraders, onIndexModule
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.plugins.ScriptPlugin
getContexts
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
MockScriptPlugin
public MockScriptPlugin()
-
-
Method Details
-
getScriptEngine
public org.elasticsearch.script.ScriptEngine getScriptEngine(org.elasticsearch.common.settings.Settings settings, Collection<org.elasticsearch.script.ScriptContext<?>> contexts) - Specified by:
getScriptEngine
in interfaceorg.elasticsearch.plugins.ScriptPlugin
-
pluginScripts
-
nonDeterministicPluginScripts
-
pluginContextCompilers
protected Map<org.elasticsearch.script.ScriptContext<?>,MockScriptEngine.ContextCompiler> pluginContextCompilers() -
pluginScriptLang
-