public class ScriptModule
extends java.lang.Object
ScriptService
and ScriptSettings
from a list of plugins.Constructor and Description |
---|
ScriptModule(Settings settings,
Environment environment,
ResourceWatcherService resourceWatcherService,
java.util.List<ScriptEngineService> scriptEngineServices,
java.util.List<ScriptContext.Plugin> customScriptContexts)
Build ScriptEngineService and ScriptContext.Plugin.
|
Modifier and Type | Method and Description |
---|---|
static ScriptModule |
create(Settings settings,
Environment environment,
ResourceWatcherService resourceWatcherService,
java.util.List<ScriptPlugin> scriptPlugins)
Build from ScriptPlugins.
|
ScriptService |
getScriptService()
Service responsible for managing scripts.
|
java.util.List<Setting<?>> |
getSettings()
Extra settings for scripts.
|
void |
registerClusterSettingsListeners(ClusterSettings clusterSettings)
Allow the script service to register any settings update handlers on the cluster settings
|
public ScriptModule(Settings settings, Environment environment, ResourceWatcherService resourceWatcherService, java.util.List<ScriptEngineService> scriptEngineServices, java.util.List<ScriptContext.Plugin> customScriptContexts)
public static ScriptModule create(Settings settings, Environment environment, ResourceWatcherService resourceWatcherService, java.util.List<ScriptPlugin> scriptPlugins)
ScriptModule(Settings, Environment, ResourceWatcherService, List, List)
for easier use in tests.public java.util.List<Setting<?>> getSettings()
public ScriptService getScriptService()
public void registerClusterSettingsListeners(ClusterSettings clusterSettings)