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

com.groupbyinc.flux.cluster.metadata.TemplateUpgradeService.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4J;com/groupbyinc/flux/cluster/metadata/TemplateUpgradeService6com/groupbyinc/flux/common/component/AbstractComponent0com/groupbyinc/flux/cluster/ClusterStateListenerTemplateUpgradeService.java=com/groupbyinc/flux/cluster/metadata/TemplateUpgradeService$2=com/groupbyinc/flux/cluster/metadata/TemplateUpgradeService$1
5com/groupbyinc/flux/common/xcontent/ToXContent$Params.com/groupbyinc/flux/common/xcontent/ToXContentParamsjava/util/Map$Entry
java/util/MapEntry8com/groupbyinc/flux/common/xcontent/ToXContent$MapParams	MapParamsBcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData$Builder:com/groupbyinc/flux/cluster/metadata/IndexTemplateMetaDataBuilder%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandles LookupindexTemplateMetaDataUpgraders"Ljava/util/function/UnaryOperator;?Ljava/util/function/UnaryOperator;>;clusterService4Lcom/groupbyinc/flux/cluster/service/ClusterService;
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;client#Lcom/groupbyinc/flux/client/Client;updatesInProgress+Ljava/util/concurrent/atomic/AtomicInteger;lastTemplateMetaData5Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;?Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;PARAMS7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/util/Collection;)V1(Lcom/groupbyinc/flux/common/settings/Settings;)V35
6)java/util/concurrent/atomic/AtomicInteger8()V3:
9;,-	=*+	?&'	A()	C"java/lang/invoke/LambdaMetafactoryEmetafactory?(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;GH
FIJ&(Ljava/lang/Object;)Ljava/lang/Object;Llambda$new$06(Ljava/util/Collection;Ljava/util/Map;)Ljava/util/Map;NO
PQ (Ljava/util/Map;)Ljava/util/Map;Sapply:(Ljava/util/Collection;)Ljava/util/function/UnaryOperator;UVW#$	Y2com/groupbyinc/flux/cluster/service/ClusterService[addListener5(Lcom/groupbyinc/flux/cluster/ClusterStateListener;)V]^
\_this=Lcom/groupbyinc/flux/cluster/metadata/TemplateUpgradeService;settings.Lcom/groupbyinc/flux/common/settings/Settings;?Ljava/util/Collection;>;>;Ljava/util/Collection;clusterChanged4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V/com/groupbyinc/flux/cluster/ClusterChangedEventistate,()Lcom/groupbyinc/flux/cluster/ClusterState;kl
jm(com/groupbyinc/flux/cluster/ClusterStateoblocks3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;qr
ps*com/groupbyinc/flux/gateway/GatewayServiceuSTATE_NOT_RECOVERED_BLOCK0Lcom/groupbyinc/flux/cluster/block/ClusterBlock;wx	vy/com/groupbyinc/flux/cluster/block/ClusterBlocks{hasGlobalBlock3(Lcom/groupbyinc/flux/cluster/block/ClusterBlock;)Z}~
|get()I??
9?getMetaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
p?-com/groupbyinc/flux/cluster/metadata/MetaData?getTemplates7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;??
??./	?3com/groupbyinc/flux/common/collect/ImmutableOpenMap?nodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;??
p?shouldLocalNodeUpdateTemplates4(Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Z??
?calculateTemplateChangesK(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)Ljava/util/Optional;??
?java/util/Optional?	isPresent()Z??
??()Ljava/lang/Object;??
??(com/groupbyinc/flux/common/collect/Tuple?v1??
??size???v2??
??
java/util/Set???
compareAndSet(II)Z??
9?logger8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;??	?\Starting template upgrade to version {}, {} templates will be updated and {} will be removed?com/groupbyinc/flux/Version?CURRENTLcom/groupbyinc/flux/Version;??	??java/lang/Integer?valueOf(I)Ljava/lang/Integer;??
??6com/groupbyinc/flux/common/apache/logging/log4j/Logger?infoK(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V????)com/groupbyinc/flux/threadpool/ThreadPool?generic(()Ljava/util/concurrent/ExecutorService;??
??:lambda$clusterChanged$1(Ljava/util/Optional;)V??
??rung(Lcom/groupbyinc/flux/cluster/metadata/TemplateUpgradeService;Ljava/util/Optional;)Ljava/lang/Runnable;???$java/util/concurrent/ExecutorService?execute(Ljava/lang/Runnable;)V????event1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;*Lcom/groupbyinc/flux/cluster/ClusterState;	templateschanges?Ljava/util/Optional;Ljava/util/Set;>;>;Ljava/util/Optional;/com/groupbyinc/flux/cluster/node/DiscoveryNodes?getLocalNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
??.com/groupbyinc/flux/cluster/node/DiscoveryNode?
isDataNode??
??isMasterNode??
??
getMasterNode??
??getLargestNonClientNodeVersion()Lcom/groupbyinc/flux/Version;
?
getVersion
?equals(Ljava/lang/Object;)Z
?	isLocalNodeElectedMaster?
?getMasterAndDataNodes?
?values@()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;
?;CLcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectCursor;
masterNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;
maxVersion1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;	localNodeupdateTemplates!(Ljava/util/Map;Ljava/util/Set;)VentrySet()Ljava/util/Set;=>??Mcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequestBgetKeyD?E(Ljava/lang/String;)V3G
CHgetValueJ?K/com/groupbyinc/flux/common/bytes/BytesReferenceM0com/groupbyinc/flux/common/xcontent/XContentTypeOJSON2Lcom/groupbyinc/flux/common/xcontent/XContentType;QR	PSsource?(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest;UV
CW)com/groupbyinc/flux/common/unit/TimeValueYtimeValueMinutes.(J)Lcom/groupbyinc/flux/common/unit/TimeValue;[\
Z]masterNodeTimeoutj(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest;_`
Ca!com/groupbyinc/flux/client/Clientcadmin*()Lcom/groupbyinc/flux/client/AdminClient;efdg&com/groupbyinc/flux/client/AdminClientiindices1()Lcom/groupbyinc/flux/client/IndicesAdminClient;kljmU(Lcom/groupbyinc/flux/cluster/metadata/TemplateUpgradeService;Ljava/util/Map$Entry;)V3o
p-com/groupbyinc/flux/client/IndicesAdminClientrputTemplate}(Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest;Lcom/groupbyinc/flux/action/ActionListener;)VtusvScom/groupbyinc/flux/action/admin/indices/template/delete/DeleteIndexTemplateRequestx
yH
yaR(Lcom/groupbyinc/flux/cluster/metadata/TemplateUpgradeService;Ljava/lang/String;)V3|
	}deleteTemplate?(Lcom/groupbyinc/flux/action/admin/indices/template/delete/DeleteIndexTemplateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V?s?requestOLcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest;changeZLjava/util/Map$Entry;Ljava/util/Map$Entry;ULcom/groupbyinc/flux/action/admin/indices/template/delete/DeleteIndexTemplateRequest;templateLjava/lang/String;TLjava/util/Map;Ljava/util/Map;	deletions#Ljava/util/Set;Ljava/util/Set;getUpdatesInProgressjava/util/HashMap?
?;
?Gcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor?key?&	??	?'put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;??? java/util/function/UnaryOperator?UL??	java/util/HashSet?
?;keySet?>?(Ljava/lang/Object;)V?!lambda$calculateTemplateChanges$23(Ljava/util/Map;Ljava/util/Set;Ljava/lang/String;)V??
??Gaccept=(Ljava/util/Map;Ljava/util/Set;)Ljava/util/function/Consumer;???forEach (Ljava/util/function/Consumer;)V????'(Ljava/lang/Object;Ljava/lang/Object;)V?!lambda$calculateTemplateChanges$3o(Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData;)V??
??Q(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData;)V?|(Lcom/groupbyinc/flux/cluster/metadata/TemplateUpgradeService;Ljava/util/Map;Ljava/util/Map;)Ljava/util/function/BiConsumer;???"(Ljava/util/function/BiConsumer;)V???3?
??of((Ljava/lang/Object;)Ljava/util/Optional;??
??empty()Ljava/util/Optional;??
??customCursor?Lcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;ILcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;deletesexistingMap_Ljava/util/Map;upgradedMaptoBytesReferenceo(Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData;)Lcom/groupbyinc/flux/common/bytes/BytesReference;java/io/IOException??(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;?lambda$toBytesReference$4?(Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
??
toXContentn(Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData;)Lcom/groupbyinc/flux/common/xcontent/ToXContent;???12	?2com/groupbyinc/flux/common/xcontent/XContentHelper??(Lcom/groupbyinc/flux/common/xcontent/ToXContent;Lcom/groupbyinc/flux/common/xcontent/XContentType;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;Z)Lcom/groupbyinc/flux/common/bytes/BytesReference;??
??java/lang/IllegalStateException?java/lang/StringBuilder?
?;Cannot serialize template [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??getName?*
?]?toString*
?*(Ljava/lang/String;Ljava/lang/Throwable;)V3
?exLjava/io/IOException;templateMetaDatareduce_mappings2true4java/util/Collections6singletonMap5(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;89
7:
 	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTableN(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/util/Collection;>;>;)V
StackMapTablez(Ljava/util/Map;Ljava/util/Set;)V@(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)Ljava/util/Optional;Ljava/util/Set;>;>;
ExceptionsBootstrapMethods
SourceFileInnerClasses!#$=%&'()*+,-./=01234>?1*+?7*?9Y?*,?@*-?B*?D*?X?Z-*?`??>1ab1cd1*+1&'1()1#f@1#eA"RLSTU V+]0^=Bgh>??+?nM,?t?z????*?>????,????N-*????*,??????*-??*-??:????*?>???????????????????`???Q*???????????????????????????˹?*?D??*??????4?ab????k?&??/G???@&??0G???ARbcfikn&p.t/w:x;{@|G}O~??????????C?p
???????>j?+??M,???
,????+??N-??+?:-??
?+?
?,??
??+???:??<?"?$:?(????
??(???,,?,?2????????>g*35~67$r8??ab??9?:7@g*34AB??????$?0?5?A?C?g?????????C"???
???
?
???;<>??+?@?AN-??]-?"?:?CY?F?.?I?L?N?T?X:
?^?bW*?@?h?n?Y*?q?w???,?AN-??E-?"?.:?yY?z:
?^?{W*?@?h?n?	Y*?~???????HC)?? L???)???4???ab??????@  L????????A2? ?&?C?M?l?o???????????C??b??J=D??>2*?>????abA???>????Y??M+??N-??"-?"??:,??????W???*?Z,???N-,???F??Y??:??Y??:,??-????-*,??????Y?ʸΰ?Ұ?H!??V:??_1???ab??/???CQ??@>!??V:??_1????0???CQ??A2??!?2?5?C?M?V?_?r?????C?
?'?Z=E??>?8+???T????M??Y??Y?????+????????,???? &8ab8	A	CQ?
??>J*+,?
+?? 	2A
F???>?+-???,-*???W??4ab??????%	A???C
??>b*,??+,?W?? ?????A?
??C??>S*+???????+???????????ab??A?
NO>?5??Y+?!M*?$N-??-?"??:,???M???,??*$%$5#f5??	,&?@$%%	,&?AW	X$Y0Z3[C??"'(>/*?>??)bAC*+>/*????)bAC,+>/*????)bAC-+>/*????)bAC.+>/*????)bAC/+>/*????)bAC0+>/*????)bAC1:>,?Y35?;?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy