Package org.elasticsearch.script
Class MockScriptService
java.lang.Object
org.elasticsearch.script.ScriptService
org.elasticsearch.script.MockScriptService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.cluster.ClusterStateApplier,org.elasticsearch.script.ScriptCompiler
public class MockScriptService
extends org.elasticsearch.script.ScriptService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMarker plugin used byMockNodeto enableMockScriptService. -
Field Summary
Fields inherited from class org.elasticsearch.script.ScriptService
ALLOW_NONE, CONTEXTS_ALLOWED_SETTING, SCRIPT_CACHE_EXPIRE_SETTING, SCRIPT_CACHE_SIZE_SETTING, SCRIPT_DISABLE_MAX_COMPILATIONS_RATE_SETTING, SCRIPT_GENERAL_CACHE_EXPIRE_SETTING, SCRIPT_GENERAL_CACHE_SIZE_SETTING, SCRIPT_GENERAL_MAX_COMPILATIONS_RATE_SETTING, SCRIPT_MAX_COMPILATIONS_RATE_SETTING, SCRIPT_MAX_SIZE_IN_BYTES, TYPES_ALLOWED_SETTINGFields inherited from interface org.elasticsearch.script.ScriptCompiler
NONE -
Constructor Summary
ConstructorsConstructorDescriptionMockScriptService(org.elasticsearch.common.settings.Settings settings, Map<String,org.elasticsearch.script.ScriptEngine> engines, Map<String,org.elasticsearch.script.ScriptContext<?>> contexts) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> MockScriptServicesingleContext(org.elasticsearch.script.ScriptContext<T> context, Function<String,T> compile, Map<String,org.elasticsearch.script.StoredScriptSource> storedLookup)Methods inherited from class org.elasticsearch.script.ScriptService
applyClusterState, cacheStats, close, compile, deleteStoredScript, getContextInfos, getScriptContexts, getScriptFromClusterState, getScriptLanguages, getStoredScript, isAnyContextEnabled, isContextEnabled, isLangSupported, isTypeEnabled, putStoredScript, stats
-
Constructor Details
-
MockScriptService
-
-
Method Details
-
singleContext
public static <T> MockScriptService singleContext(org.elasticsearch.script.ScriptContext<T> context, Function<String,T> compile, Map<String,org.elasticsearch.script.StoredScriptSource> storedLookup)
-