
com.groupbyinc.flux.script.ScriptService.class Maven / Gradle / Ivy
???? 3? (com/groupbyinc/flux/script/ScriptService 6com/groupbyinc/flux/common/component/AbstractComponent java/io/Closeable ScriptService.java *com/groupbyinc/flux/script/ScriptService$1 6com/groupbyinc/flux/script/ScriptService$IndexedScript
IndexedScript 1com/groupbyinc/flux/script/ScriptService$CacheKey
CacheKey 3com/groupbyinc/flux/script/ScriptService$ScriptType
ScriptType >com/groupbyinc/flux/script/ScriptService$ScriptChangesListener ScriptChangesListener Ccom/groupbyinc/flux/script/ScriptService$ScriptCacheRemovalListener ScriptCacheRemovalListener Ecom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder =com/groupbyinc/flux/common/google/common/collect/ImmutableMap Builder 1com/groupbyinc/flux/script/ScriptContext$Standard (com/groupbyinc/flux/script/ScriptContext Standard 8com/groupbyinc/flux/common/xcontent/XContentParser$Token # 2com/groupbyinc/flux/common/xcontent/XContentParser % Token 4com/groupbyinc/flux/action/index/IndexRequest$OpType ( -com/groupbyinc/flux/action/index/IndexRequest * OpType !DISABLE_DYNAMIC_SCRIPTING_SETTING Ljava/lang/String; script.disable_dynamic / "DEFAULT_SCRIPTING_LANGUAGE_SETTING script.default_lang 2 SCRIPT_CACHE_SIZE_SETTING script.cache.max_size 5 SCRIPT_CACHE_SIZE_DEFAULT I d SCRIPT_CACHE_EXPIRE_SETTING script.cache.expire ; SCRIPT_INDEX .scripts > DEFAULT_LANG groovy A "SCRIPT_AUTO_RELOAD_ENABLED_SETTING script.auto_reload_enabled D defaultLang
scriptEngines Ljava/util/Set; ALjava/util/Set; scriptEnginesByLang ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; scriptEnginesByExt staticCache $Ljava/util/concurrent/ConcurrentMap; ?Ljava/util/concurrent/ConcurrentMap; cache 6Lcom/groupbyinc/flux/common/google/common/cache/Cache; ?Lcom/groupbyinc/flux/common/google/common/cache/Cache; scriptsDirectory Ljava/nio/file/Path; scriptModes (Lcom/groupbyinc/flux/script/ScriptModes; scriptContextRegistry 2Lcom/groupbyinc/flux/script/ScriptContextRegistry; parseFieldMatcher .Lcom/groupbyinc/flux/common/ParseFieldMatcher; client #Lcom/groupbyinc/flux/client/Client;
scriptMetrics *Lcom/groupbyinc/flux/script/ScriptMetrics; SCRIPT_LANG 'Lcom/groupbyinc/flux/common/ParseField; Ljava/lang/Deprecated; SCRIPT_FILE SCRIPT_ID
SCRIPT_INLINE $assertionsDisabled Z ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/Environment;Ljava/util/Set;Lcom/groupbyinc/flux/watcher/ResourceWatcherService;Lcom/groupbyinc/flux/script/ScriptContextRegistry;)V java/io/IOException j *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V h m
n @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections p newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; r s
q t N O v \ ] x (com/groupbyinc/flux/script/ScriptMetrics z ()V h |
{ } ^ _ ,com/groupbyinc/flux/common/ParseFieldMatcher ?
? n Z [ ? ,com/groupbyinc/flux/common/settings/Settings ? get &(Ljava/lang/String;)Ljava/lang/String; ? ?
? ? "com/groupbyinc/flux/common/Strings ? hasLength (Ljava/lang/String;)Z ? ?
? ? "java/lang/IllegalArgumentException ?script.disable_dynamic is not a supported setting, replace with fine-grained script settings.
Dynamic scripts can be enabled for all languages and all operations by replacing `script.disable_dynamic: false` with `script.inline: on` and `script.indexed: on` in elasticsearch.yml ? (Ljava/lang/String;)V h ?
? ? #com/groupbyinc/flux/env/Environment ?
java/util/Set ? 2com/groupbyinc/flux/watcher/ResourceWatcherService ? 0com/groupbyinc/flux/script/ScriptContextRegistry ? G H ? X Y ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? getAsInt :(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer; ? ?
? ? intValue ()I ? ?
? ? getAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? logger -Lcom/groupbyinc/flux/common/logging/ESLogger; ? ? ? 2using script cache with max_size [{}], expire [{}] ? java/lang/Object ? +com/groupbyinc/flux/common/logging/ESLogger ? debug ((Ljava/lang/String;[Ljava/lang/Object;)V ? ? ? ? 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ? ?
? ? F . ? ;com/groupbyinc/flux/common/google/common/cache/CacheBuilder ?
newBuilder ?()Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; ? ?
? ? maximumSize @(J)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; ? ?
? ? )com/groupbyinc/flux/common/unit/TimeValue ? nanos ()J ? ?
? ? java/util/concurrent/TimeUnit ? NANOSECONDS Ljava/util/concurrent/TimeUnit; ? ? ? ? expireAfterAccess _(JLjava/util/concurrent/TimeUnit;)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; ? ?
? ? Y(Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/script/ScriptService$1;)V h ?
? removalListener (Lcom/groupbyinc/flux/common/google/common/cache/RemovalListener;)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; ? ?
? ? build 8()Lcom/groupbyinc/flux/common/google/common/cache/Cache; ? ?
? ? Q R ? builder I()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder; ? ?
? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? .com/groupbyinc/flux/script/ScriptEngineService types ()[Ljava/lang/String; [Ljava/lang/String; put m(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder;
extensions A()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; ?
J K M K &com/groupbyinc/flux/script/ScriptModes r(Ljava/util/Map;Lcom/groupbyinc/flux/script/ScriptContextRegistry;Lcom/groupbyinc/flux/common/settings/Settings;)V h
V W scriptsFile ()Ljava/nio/file/Path; !
?" T U $ isTraceEnabled&