All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.plugins.PluginsService.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4*com/groupbyinc/flux/plugins/PluginsService6com/groupbyinc/flux/common/component/AbstractComponentPluginsService.java1com/groupbyinc/flux/plugins/PluginsService$BundleBundle4com/groupbyinc/flux/common/settings/Settings$Builder	,com/groupbyinc/flux/common/settings/SettingsBuilder4com/groupbyinc/flux/common/settings/Setting$Property+com/groupbyinc/flux/common/settings/SettingProperty%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookup
configPathLjava/nio/file/Path;pluginsLjava/util/List;?Ljava/util/List;>;infoFLcom/groupbyinc/flux/action/admin/cluster/node/info/PluginsAndModules;MANDATORY_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;SLcom/groupbyinc/flux/common/settings/Setting;>;$assertionsDisabledZgetPluginSettings()Ljava/util/List;	&java/util/List(stream()Ljava/util/stream/Stream;*+),"java/lang/invoke/LambdaMetafactory.metafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;01
/23&(Ljava/lang/Object;)Ljava/lang/Object;5lambda$getPluginSettings$0E(Lcom/groupbyinc/flux/common/collect/Tuple;)Ljava/util/stream/Stream;78
9:8apply()Ljava/util/function/Function;=>?java/util/stream/StreamAflatMap8(Ljava/util/function/Function;)Ljava/util/stream/Stream;CDBEjava/util/stream/CollectorsGtoList()Ljava/util/stream/Collector;IJ
HKcollect0(Ljava/util/stream/Collector;)Ljava/lang/Object;MNBOthis,Lcom/groupbyinc/flux/plugins/PluginsService;getPluginSettingsFilter lambda$getPluginSettingsFilter$1T8
UV??(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/util/Collection;)Vjava/io/IOException[1(Lcom/groupbyinc/flux/common/settings/Settings;)VY]
^	`java/util/ArrayListb()VYd
cejava/util/Collectiongiterator()Ljava/util/Iterator;ijhkjava/nio/file/Pathmjava/util/IteratorohasNext()Zqrpsnext()Ljava/lang/Object;uvpwjava/lang/Classy
loadPluginy(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;Ljava/nio/file/Path;)Lcom/groupbyinc/flux/plugins/Plugin;{|
}&com/groupbyinc/flux/plugins/PluginInfogetName()Ljava/lang/String;??
z?classpath plugin?NA?M(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)VY?
??logger!Lorg/apache/logging/log4j/Logger;??	?org/apache/logging/log4j/Logger?isTraceEnabled?r??!plugin loaded from classpath [{}]?trace'(Ljava/lang/String;Ljava/lang/Object;)V????"com/groupbyinc/flux/plugins/Plugin?(com/groupbyinc/flux/common/collect/Tuple?'(Ljava/lang/Object;Ljava/lang/Object;)VY?
??add(Ljava/lang/Object;)Z??)?java/util/LinkedHashSet?
?egetModuleBundles%(Ljava/nio/file/Path;)Ljava/util/Set;??
?
java/util/Set??kplugin(Lcom/groupbyinc/flux/plugins/PluginInfo;??	?addAll(Ljava/util/Collection;)Z????java/lang/IllegalStateException?Unable to initialize modules?*(Ljava/lang/String;Ljava/lang/Throwable;)VY?
??getPluginBundles??
?Unable to initialize plugins?loadBundles!(Ljava/util/Set;)Ljava/util/List;??
?)?Dcom/groupbyinc/flux/action/admin/cluster/node/info/PluginsAndModules?#(Ljava/util/List;Ljava/util/List;)VY?
??	?java/util/Collections?unmodifiableList"(Ljava/util/List;)Ljava/util/List;??
??java/util/HashSet?
?e)kv1?v
??
???? 	?getB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;??
?isEmpty?r)?java/lang/String?contains??????*com/groupbyinc/flux/ElasticsearchException?java/lang/StringBuilder?
?eMissing mandatory plugins [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??, ?"com/groupbyinc/flux/common/Strings?collectionToDelimitedString:(Ljava/lang/Iterable;Ljava/lang/String;)Ljava/lang/String;??
??]toString?
?java/lang/Object((Ljava/lang/String;[Ljava/lang/Object;)VY
?	getModuleInfos%
?module
logPluginInfoF(Ljava/util/List;Ljava/lang/String;Lorg/apache/logging/log4j/Logger;)V
getPluginInfos%
??$Lcom/groupbyinc/flux/plugins/Plugin;
pluginInfopluginClass8Ljava/lang/Class<+Lcom/groupbyinc/flux/plugins/Plugin;>;Ljava/lang/Class;bundle3Lcom/groupbyinc/flux/plugins/PluginsService$Bundle;modulesDLjava/util/Set;Ljava/util/Set;exLjava/io/IOException;tuplexLcom/groupbyinc/flux/common/collect/Tuple;*Lcom/groupbyinc/flux/common/collect/Tuple;mandatoryPluginLjava/lang/String;missingPlugins#Ljava/util/Set;settings.Lcom/groupbyinc/flux/common/settings/Settings;modulesDirectorypluginsDirectoryclasspathPluginsPLjava/util/Collection;>;Ljava/util/Collection;
pluginsLoadedpluginsList:Ljava/util/List;seenBundlesmodulesListloadedpluginsNamesmandatoryPlugins$Ljava/util/List;"#	;java/lang/AssertionError=
>eno @s loadedB(Ljava/lang/String;)VD?E?<(Lcom/groupbyinc/flux/plugins/PluginInfo;)Ljava/lang/String;H?mapKDBLsortedN+BOloaded Q [SnamepluginInfostypeupdatedSettings0()Lcom/groupbyinc/flux/common/settings/Settings;java/util/HashMapZ
[ebuilder8()Lcom/groupbyinc/flux/common/settings/Settings$Builder;]^
_
java/util/Mapav2cv
?dadditionalSettingsfY
?ggetAsMap()Ljava/util/Map;ij
kkeySet()Ljava/util/Set;mnboput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;qrbs"java/lang/IllegalArgumentExceptionu Cannot have additional setting [w
] in plugin [y], already added in plugin [{YD
v}f(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;q

?+,	?build?Y

?	oldPluginsetting
foundSettings5Ljava/util/Map;Ljava/util/Map;6Lcom/groupbyinc/flux/common/settings/Settings$Builder;createGuiceModules()Ljava/util/Collection;??
??;getExecutorBuilders@(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/List;??
??
c?buildersJLjava/util/ArrayList;>;Ljava/util/ArrayList;getGuiceServiceClasses??
??services_Ljava/util/List;>;
onIndexModule*(Lcom/groupbyinc/flux/index/IndexModule;)V??
??indexModule'Lcom/groupbyinc/flux/index/IndexModule;H()Lcom/groupbyinc/flux/action/admin/cluster/node/info/PluginsAndModules;java/lang/Throwable?java/nio/file/LinkOption?java/nio/file/Files?	notExists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z??
??emptySet?n
??newDirectoryStream5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;??
??java/nio/file/DirectoryStream??kreadFromProperties>(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/plugins/PluginInfo;??
??*.jar?G(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/DirectoryStream;??
??
toRealPath1([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path;??n?toUri()Ljava/net/URI;??n?java/net/URI?toURL()Ljava/net/URL;??
??duplicate codebase: ?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??
?}close?d??
addSuppressed(Ljava/lang/Throwable;)V??
??:(Lcom/groupbyinc/flux/plugins/PluginInfo;Ljava/util/Set;)VY?
?duplicate module: ?urlLjava/net/URL;jar	jarStream5Ljava/nio/file/DirectoryStream;Ljava/nio/file/DirectoryStream;urlsLjava/util/Set;bundlescheckForFailedPluginRemovals(Ljava/nio/file/Path;)V.removing-*?getFileName()Ljava/nio/file/Path;??n?n-?indexOf(Ljava/lang/String;)I??
??	substring(I)Ljava/lang/String;??
??java/util/Locale?ROOTLjava/util/Locale;	kfound file [%s] from a failed attempt to remove the plugin [%s]; execute [elasticsearch-plugin remove %2$s]formatK(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
?	removingfileNamemessage*Ljava/util/Iterator;Ljava/util/Iterator;*com/groupbyinc/flux/common/logging/Loggers	getLogger4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger;
-com/groupbyinc/flux/common/io/FileSystemUtilsisAccessibleDirectory8(Ljava/nio/file/Path;Lorg/apache/logging/log4j/Logger;)Z
??
--- adding plugin [{}]toAbsolutePath ?n!6Could not load plugin descriptor for existing plugin [##]. Was the plugin built before 2.0?%duplicate plugin: 'ejava/lang/Exception*%com/groupbyinc/flux/bootstrap/JarHell,parseClassPath.n
-/(Ljava/util/Collection;)VY1
?2?!	4	retainAll6??77jar hell! duplicate codebases between plugin and core: 9checkJarHell(Ljava/util/Set;)V;<
-=failed to load plugin ? due to jar hellAjava/net/URLCtoArray(([Ljava/lang/Object;)[Ljava/lang/Object;EF?G[Ljava/net/URL;IgetClass()Ljava/lang/Class;KL
MgetClassLoader()Ljava/lang/ClassLoader;OP
zQjava/net/URLClassLoaderSnewInstanceA([Ljava/net/URL;Ljava/lang/ClassLoader;)Ljava/net/URLClassLoader;UV
TWreloadLuceneSPI(Ljava/lang/ClassLoader;)VYZ
[getClassname]?
?^loadPluginClass<(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;`a
b	classpathintersectionunionLjava/lang/Exception;loaderLjava/lang/ClassLoader;>com/groupbyinc/flux/common/apache/lucene/codecs/PostingsFormatjreloadPostingsFormatslZ
km?com/groupbyinc/flux/common/apache/lucene/codecs/DocValuesFormatoreloadDocValuesFormatsqZ
pr5com/groupbyinc/flux/common/apache/lucene/codecs/CodectreloadCodecsvZ
uwHcom/groupbyinc/flux/common/apache/lucene/analysis/util/CharFilterFactoryyreloadCharFilters{Z
z|Icom/groupbyinc/flux/common/apache/lucene/analysis/util/TokenFilterFactory~reloadTokenFilters?Z
?Gcom/groupbyinc/flux/common/apache/lucene/analysis/util/TokenizerFactory?reloadTokenizers?Z
?? java/lang/ClassNotFoundException?java/lang/ClassLoader?	loadClass%(Ljava/lang/String;)Ljava/lang/Class;??
??
asSubclass$(Ljava/lang/Class;)Ljava/lang/Class;??
z?Could not find plugin class [?=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)VY?
??"Ljava/lang/ClassNotFoundException;	className&java/lang/ReflectiveOperationException?getConstructors"()[Ljava/lang/reflect/Constructor;??
z?no public constructor for [? [Ljava/lang/reflect/Constructor;?"no unique public constructor for [?java/lang/reflect/Constructor?getParameterCount()I??
??signatureMessage%(Ljava/lang/Class;)Ljava/lang/String;??
?getParameterTypes()[Ljava/lang/Class;??
??'([Ljava/lang/Object;)Ljava/lang/Object;U?
??[Ljava/lang/Class;?failed to load plugin class [?(Ljava/lang/ReflectiveOperationException;constructors#[Ljava/lang/reflect/Constructor<*>;constructor"Ljava/lang/reflect/Constructor<*>;Ljava/lang/reflect/Constructor;parameterTypesPno public constructor of correct signature for [%s]; must be [%s], [%s], or [%s]??(org.elasticsearch.common.settings.Settings,java.nio.file.Path)?,(org.elasticsearch.common.settings.Settings)?()?clazz
filterPlugins#(Ljava/lang/Class;)Ljava/util/List;?lambda$filterPlugins$2>(Ljava/lang/Class;Lcom/groupbyinc/flux/common/collect/Tuple;)Z??
??-(Lcom/groupbyinc/flux/common/collect/Tuple;)Z?test1(Ljava/lang/Class;)Ljava/util/function/Predicate;???filter9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;??B?lambda$filterPlugins$3>(Lcom/groupbyinc/flux/common/collect/Tuple;)Ljava/lang/Object;??
????Ljava/lang/Class;pisAssignableFrom(Ljava/lang/Class;)Z??
z?xgetSettingsFilter?%
??getSettings?%
??desiredAssertionStatus?r
z?plugin.mandatory?	emptyList?%
??java/util/function/Function?identity?>??	NodeScope6Lcom/groupbyinc/flux/common/settings/Setting$Property;	listSetting?(Ljava/lang/String;Ljava/util/List;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;
	SignatureCodeLocalVariableTableLineNumberTableD()Ljava/util/List;>;&()Ljava/util/List;LocalVariableTypeTable
StackMapTable?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/util/Collection;>;)Vp(Ljava/util/List;Ljava/lang/String;Lorg/apache/logging/log4j/Logger;)VD()Ljava/util/Collection;u(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/List;>;g()Ljava/util/Collection;>;
ExceptionsZ(Ljava/nio/file/Path;)Ljava/util/Set;?(Ljava/util/Set;)Ljava/util/List;>;c(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class<+Lcom/groupbyinc/flux/plugins/Plugin;>;?(Ljava/lang/Class<+Lcom/groupbyinc/flux/plugins/Plugin;>;Lcom/groupbyinc/flux/common/settings/Settings;Ljava/nio/file/Path;)Lcom/groupbyinc/flux/plugins/Plugin;L(Ljava/lang/Class<+Lcom/groupbyinc/flux/plugins/Plugin;>;)Ljava/lang/String;C(Ljava/lang/Class;)Ljava/util/List;BootstrapMethods
SourceFileInnerClasses! !"#$%	I*?'?-?@?F?L?P?)?
QRQS%	I*?'?-?X?F?L?P?)?
QRU
YZ	?x*+?_*,?a?cY?f:?cY?f:?l:?t?k?x?z:	*	+,?~:
??Y	????	????:*?????*???????Y
????W??W?????Y??:?cY?f:	-?S-??:

??:?t??x?:	????W???
??W?:
??Y?
????T??:

??:?t??x?:????W???
??W?:
??Y?
???*??:

??W*??Y	?͵?*?յ'??Y??:*?'??:?t?%?x??:

?????ݹ?W??ײ?+???):??????Y??:
??:?t?4?x??:???
???

??W???
???.??Y??Y?????
?????????
?*?϶
*???*?϶*???????\BE\
?EO?
^6?;Y	?
?9!
?"#
(
	9!
G"#
?$&
?"'(?y)!
xQRx+,xx-x.x/1e2\3??5!??6	[7
??8!??9?
;Y	?9 
	9 
?$%
?y)*
x/0e2\34??5 ??64	[7
??8*??9:?4`b
deg;hEi^jjkwm?n?o?q?r?t?v?w?x?y?z?}?{?|???	?(?5?8?B?E?G?S?[?e?t?}??????????????????? ?*?U?f?w???%	nnnh))p?Qz???nnnh))?$nnnh))?)?p?%?
nnnh))?)\
??p?%?
nnnh))?)\
?=)?p?+?')?p7??4
	,??Y???*???&,??Y??A??+??C????F?k*?-?J?M?P?L?P?)??N-?t?<-?x??:,??Y??R??+??T????????F????
*x+U(?V?W(????V4???>?x?????
+?%p?AXY	?	ֻ[Y?\L?`M*?'??N-?t??-?x??:?e???h:?l?p??:?t?q?x??:+?????ݹt??:?E?vY??Y??x????z???????ݶ?|????????~????,??W??O,*???????
HvG?(^_?(7?+,*??&?QR????]?*??%???6
???*?7?^?v?{???????????#?b
p?1?p?t??	??	?;?cY?fL*?'??M,?t?!,?x??N+-?e??????W???+?
 %?&;QR3%?%3???%?6?9??)p?&??	??V???C?L??!<
?*??-??!*V???L????*??? ^
<CLYx??????,I!L"qy"?#??n???p?;n???pn????p?S?S?I?H??n???pn???????n???pn???0?P?
H?G??n?????
?n?\??	?
?*??LM+??N-?t?P-?x?n:????:???`??:??YSYS?
:??Y?ֿ+?N,?+???AN,-?ݧ8+???/N-M-?:+?!,?+???:	,	?ݧ	+????oux?
g??
g????????
H%B34(D#U(]

(Vi?*??.Vi?*?2+
,-.%/30D1]6g8?+?8?9?	?g??P?H?D??	n????
?n\??	???L*+???????Y??M*?*??N:-??:?t?^?x?n:+?"????:?/:??Y??Y??$??????&????????Y??:???:	:
	??:?t?P?x?n:????????:

??? ??Y??Y??Ҷ?
?ն?ֿ???	?]
?	???N:
?ݧB	???8::
?:	?%
?	???:
?ݧ
	???,?Y???? ??Y??Y??(???ն?ֿ???-?X?-???J:?ݧ>-???5::?:-?#?-???:?ݧ	-???,?T[^\
??*??3?FI?*53????&???&?????????
z[?`*)#?)??
?>?????	?????!DL?#?*??.?????!*????	????#?*??? z<?@CEG&HDITL[P^M`NsO?R?S?T?V?W?X?Z[*S3[_\s]?_?`?G?`?b%???n????p?/n????pn\?+??n????pn????p?S?S?I?H??n????pn???????	n????pn???0?Q?H?H??n???????n??\??	|?cY?fM+??N-?t??-?x?:?0:??Y?3:?5?8W??? ??Y??Y??:???ն?ֿ??Y?3:?5??W?>?-:??Y??Y??@??????B???????5?D?H?J*?N?R?X:?\*???_?c:**??*?a?~:,??Y??????W??,?հ#??+
p(\d!3Qe!rf!?()g?:hi?%??#?QR?!>(\d?3Qe?rf??%? ^fh#l(n3o@pJqgurvw?{?x?y?~??~????????????4?)p?W????)p+)?YYZ	[*?n*?s*?x*?}*??*???
hi???????`a	?3,+??????N??Y??Y?????+?????-????
?
*')?3QR3?(3hi???K?{|	9+??:??(??Y??Y?????+????????ֿ??(??Y??Y?????+????????ֿ2:?????Y*+???ֿ??:???*2?!2n??Y,SY-S????????2??Y,S????????????????Y*+???ֿ:??Y??Y?????+??????????????????????????
R?')?QR+,??c??????? ??c???J???1?8?]?c?l?y????????????????????1?+???6?"L???	u'???Y+??SY?SY?SY?S?
?
'QR'?'??
?#???	x**?'?-+???????M?L?P?)?
*QR*W*W???)?
??	/*?e?
?&?
??	C*+?e???N??
W?&?
T8	:*?e????-?
?&U
78	:*?e????-?
?&Q?d	Y*?????<??????Y?S???DMN)M@446;<46W<46GI4???46??"

	@




© 2015 - 2024 Weber Informatics LLC | Privacy Policy