Class TestTemplateService

java.lang.Object
org.elasticsearch.script.ScriptService
org.elasticsearch.ingest.TestTemplateService
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, org.elasticsearch.cluster.ClusterStateApplier

public class TestTemplateService
extends org.elasticsearch.script.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_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_SETTING
  • Method Summary

    Modifier and Type Method Description
    <FactoryType>
    FactoryType
    compile​(org.elasticsearch.script.Script script, org.elasticsearch.script.ScriptContext<FactoryType> context)  
    static org.elasticsearch.script.ScriptService instance()  
    static org.elasticsearch.script.ScriptService instance​(boolean compilationException)  

    Methods inherited from class org.elasticsearch.script.ScriptService

    applyClusterState, cacheStats, close, deleteStoredScript, getContextInfos, getScriptFromClusterState, getScriptLanguages, getStoredScript, isAnyContextEnabled, isContextEnabled, isLangSupported, isTypeEnabled, putStoredScript, stats

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • instance

      public static org.elasticsearch.script.ScriptService instance()
    • instance

      public static org.elasticsearch.script.ScriptService instance​(boolean compilationException)
    • compile

      public <FactoryType> FactoryType compile​(org.elasticsearch.script.Script script, org.elasticsearch.script.ScriptContext<FactoryType> context)
      Overrides:
      compile in class org.elasticsearch.script.ScriptService