Package org.elasticsearch.ingest
Class TestTemplateService
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- org.elasticsearch.script.ScriptService
-
- org.elasticsearch.ingest.TestTemplateService
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,ClusterStateApplier
public class TestTemplateService extends ScriptService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestTemplateService.MockTemplateScript
-
Field Summary
-
Fields inherited from class org.elasticsearch.script.ScriptService
ALLOW_NONE, CONTEXTS_ALLOWED_SETTING, SCRIPT_CACHE_EXPIRE_SETTING, SCRIPT_CACHE_SIZE_SETTING, SCRIPT_MAX_COMPILATIONS_RATE, SCRIPT_MAX_SIZE_IN_BYTES, TYPES_ALLOWED_SETTING
-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
deprecationLogger, logger, settings
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <FactoryType>
FactoryTypecompile(Script script, ScriptContext<FactoryType> context)
static ScriptService
instance()
static ScriptService
instance(boolean compilationException)
-
Methods inherited from class org.elasticsearch.script.ScriptService
applyClusterState, close, deleteStoredScript, getStoredScript, isAnyContextEnabled, isContextEnabled, isLangSupported, isTypeEnabled, putStoredScript, stats
-
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
-
-
-
-
Method Detail
-
instance
public static ScriptService instance()
-
instance
public static ScriptService instance(boolean compilationException)
-
compile
public <FactoryType> FactoryType compile(Script script, ScriptContext<FactoryType> context)
- Overrides:
compile
in classScriptService
-
-