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

com.groupbyinc.flux.transport.RemoteClusterService.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4?2com/groupbyinc/flux/transport/RemoteClusterService0com/groupbyinc/flux/transport/RemoteClusterAwarejava/io/CloseableRemoteClusterService.java4com/groupbyinc/flux/transport/RemoteClusterService$24com/groupbyinc/flux/transport/RemoteClusterService$1
java/util/Map$Entry
java/util/MapEntry2com/groupbyinc/flux/transport/Transport$Connection'com/groupbyinc/flux/transport/Transport
Connection4com/groupbyinc/flux/common/settings/Setting$Property+com/groupbyinc/flux/common/settings/SettingProperty%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupREMOTE_CONNECTIONS_PER_CLUSTER-Lcom/groupbyinc/flux/common/settings/Setting;BLcom/groupbyinc/flux/common/settings/Setting;)REMOTE_INITIAL_CONNECTION_TIMEOUT_SETTINGZLcom/groupbyinc/flux/common/settings/Setting;REMOTE_NODE_ATTRIBUTEALcom/groupbyinc/flux/common/settings/Setting;ENABLE_REMOTE_CLUSTERSBLcom/groupbyinc/flux/common/settings/Setting;transportService0Lcom/groupbyinc/flux/transport/TransportService;numRemoteConnectionsIremoteClustersLjava/util/Map;ZLjava/util/Map;a(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;)V1(Lcom/groupbyinc/flux/common/settings/Settings;)V02
3java/util/Collections5emptyMap()Ljava/util/Map;78
69-.	;)*	= !	?getB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;AB
Cjava/lang/IntegerEintValue()IGH
FI+,	Kthis4Lcom/groupbyinc/flux/transport/RemoteClusterService;settings.Lcom/groupbyinc/flux/common/settings/Settings;updateRemoteClusters=(Ljava/util/Map;Lcom/groupbyinc/flux/action/ActionListener;)Vjava/io/IOExceptionSUcontainsKey(Ljava/lang/Object;)ZWXY"java/lang/IllegalArgumentException[9remote clusters must not have the empty string as its key](Ljava/lang/String;)V0_
\`java/util/HashMapb()V0d
ceisEmpty()Zghi)com/groupbyinc/flux/action/ActionListenerk
onResponse(Ljava/lang/Object;)Vmnlo4com/groupbyinc/flux/common/util/concurrent/CountDownqsizesHt(I)V0v
rw"java/lang/invoke/LambdaMetafactoryymetafactory?(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;{|
z}~Xlambda$updateRemoteClusters$03(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)Z??
???test ()Ljava/util/function/Predicate;???%!	?OP	?exists1(Lcom/groupbyinc/flux/common/settings/Settings;)Z??
?java/lang/String?lambda$updateRemoteClusters$1E(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)Z??
??2(Ljava/lang/String;)Ljava/util/function/Predicate;???java/util/function/Predicate?and>(Ljava/util/function/Predicate;)Ljava/util/function/Predicate;????putAll(Ljava/util/Map;)V???entrySet()Ljava/util/Set;???
java/util/Set?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext?h??next()Ljava/lang/Object;????getKey??
?&(Ljava/lang/Object;)Ljava/lang/Object;A??5com/groupbyinc/flux/transport/RemoteClusterConnection?getValue??
?java/util/List??i5com/groupbyinc/flux/common/apache/lucene/util/IOUtils?close([Ljava/io/Closeable;)V??
??logger!Lorg/apache/logging/log4j/Logger;??	?java/lang/StringBuilder?
?e8failed to close remote cluster connections for cluster: ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??toString()Ljava/lang/String;??
??org/apache/logging/log4j/Logger?warn*(Ljava/lang/String;Ljava/lang/Throwable;)V????remove????(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Ljava/util/List;Lcom/groupbyinc/flux/transport/TransportService;ILjava/util/function/Predicate;)V0?
??put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;???nlambda$updateRemoteClusters$2t(Lcom/groupbyinc/flux/common/util/concurrent/CountDown;Lcom/groupbyinc/flux/action/ActionListener;Ljava/lang/Void;)V??
??(Ljava/lang/Void;)V?accept?(Lcom/groupbyinc/flux/common/util/concurrent/CountDown;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/common/CheckedConsumer;???lambda$updateRemoteClusters$3?(Lcom/groupbyinc/flux/common/util/concurrent/CountDown;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/transport/RemoteClusterConnection;Ljava/util/Map$Entry;Ljava/lang/Exception;)V??
??(Ljava/lang/Exception;)V(Lcom/groupbyinc/flux/transport/RemoteClusterService;Lcom/groupbyinc/flux/common/util/concurrent/CountDown;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/transport/RemoteClusterConnection;Ljava/util/Map$Entry;)Ljava/util/function/Consumer;?wrapv(Lcom/groupbyinc/flux/common/CheckedConsumer;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/action/ActionListener;lupdateSeedNodes>(Ljava/util/List;Lcom/groupbyinc/flux/action/ActionListener;)V	

?unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;

6	attributeLjava/lang/String;eLjava/io/IOException;remote7Lcom/groupbyinc/flux/transport/RemoteClusterConnection;finalRemoteentrykLjava/util/Map$Entry;>;Ljava/util/Map$Entry;	countDown6Lcom/groupbyinc/flux/common/util/concurrent/CountDown;
nodePredicatePLjava/util/function/Predicate;Ljava/util/function/Predicate;seedseLjava/util/Map;>;connectionListener=Lcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;isCrossClusterSearchEnabledisRemoteNodeConnectedisNodeConnected'?
?(
remoteClusternode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;groupIndicesu(Lcom/groupbyinc/flux/action/support/IndicesOptions;[Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Map;%h
/groupClusterIndicesB([Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Map;12
3*com/groupbyinc/flux/action/OriginalIndices5?ttoArray(([Ljava/lang/Object;)[Ljava/lang/Object;89?:[Ljava/lang/String;<I([Ljava/lang/String;Lcom/groupbyinc/flux/action/support/IndicesOptions;)V0>
6?"com/groupbyinc/flux/common/StringsAEMPTY_ARRAYC<	BDclusterAliasoriginalIndices$Ljava/util/List;Ljava/util/List;MLjava/util/Map$Entry;>;groupedIndicesGLjava/util/Map;>;indicesOptions3Lcom/groupbyinc/flux/action/support/IndicesOptions;indicesindexExists2Ljava/util/function/Predicate;originalIndicesMapOLjava/util/Map;isRemoteClusterRegistered(Ljava/lang/String;)ZclusterNamecollectSearchShards?(Lcom/groupbyinc/flux/action/support/IndicesOptions;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/groupbyinc/flux/action/ActionListener;)V&java/util/concurrent/ConcurrentHashMapY
Ze+java/util/concurrent/atomic/AtomicReference\
]e1com/groupbyinc/flux/action/support/IndicesOptions_no such remote cluster: a()[Ljava/lang/String;Oc
6dJcom/groupbyinc/flux/action/admin/cluster/shards/ClusterSearchShardsRequestf([Ljava/lang/String;)V0h
gi?(Lcom/groupbyinc/flux/action/support/IndicesOptions;)Lcom/groupbyinc/flux/action/admin/cluster/shards/ClusterSearchShardsRequest;Mk
gllocalD(Z)Lcom/groupbyinc/flux/action/support/master/MasterNodeReadRequest;no
gp
preference`(Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/cluster/shards/ClusterSearchShardsRequest;rs
gtroutingvs
gw?(Lcom/groupbyinc/flux/transport/RemoteClusterService;Ljava/util/Map;Ljava/lang/String;Lcom/groupbyinc/flux/common/util/concurrent/CountDown;Ljava/util/concurrent/atomic/AtomicReference;Lcom/groupbyinc/flux/action/ActionListener;)V0y
zfetchSearchShardsz(Lcom/groupbyinc/flux/action/admin/cluster/shards/ClusterSearchShardsRequest;Lcom/groupbyinc/flux/action/ActionListener;)V|}
?~remoteClusterConnectionsearchShardsRequestLLcom/groupbyinc/flux/action/admin/cluster/shards/ClusterSearchShardsRequest;ULjava/util/Map$Entry;remoteIndicesByClusterlistener?Lcom/groupbyinc/flux/action/ActionListener;>;responsesCountDownsearchShardsResponsespLjava/util/Map;transportExceptionaLjava/util/concurrent/atomic/AtomicReference;-Ljava/util/concurrent/atomic/AtomicReference;
getConnectionx(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;)Lcom/groupbyinc/flux/transport/Transport$Connection;f(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)Lcom/groupbyinc/flux/transport/Transport$Connection;??
??cluster
connectionensureConnected@(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)V.(Lcom/groupbyinc/flux/action/ActionListener;)V??
??H(Ljava/lang/String;)Lcom/groupbyinc/flux/transport/Transport$Connection;6()Lcom/groupbyinc/flux/transport/Transport$Connection;??
??getRemoteClusterNameskeySet???updateRemoteCluster%(Ljava/lang/String;Ljava/util/List;)Vlambda$updateRemoteCluster$4??
??.()Lcom/groupbyinc/flux/common/CheckedConsumer;???lambda$updateRemoteCluster$5?
??()Ljava/util/function/Consumer;???P(Ljava/lang/String;Ljava/util/List;Lcom/groupbyinc/flux/action/ActionListener;)V??
?	addresses.Ljava/util/List;stream()Ljava/util/stream/Stream;?????lambda$updateRemoteCluster$6`(Ljava/lang/String;Ljava/net/InetSocketAddress;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
??N(Ljava/net/InetSocketAddress;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;?apply1(Ljava/lang/String;)Ljava/util/function/Function;???java/util/stream/Stream?map8(Ljava/util/function/Function;)Ljava/util/stream/Stream;????java/util/stream/Collectors?toList()Ljava/util/stream/Collector;??
??collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;????singletonMap5(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;??
6?QR
?nodesBLjava/util/List;initializeRemoteClustersjava/lang/InterruptedException?%java/util/concurrent/TimeoutException?java/lang/Exception?#!	?)com/groupbyinc/flux/common/unit/TimeValue?4com/groupbyinc/flux/action/support/PlainActionFuture?
?ebuildRemoteClustersSeeds?(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/Map;??
?millis()J??
??java/util/concurrent/TimeUnit?MILLISECONDSLjava/util/concurrent/TimeUnit;??	??4(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;A?
??java/lang/Thread?
currentThread()Ljava/lang/Thread;?
?	interruptd
?.failed to connect to remote clusters within {}
??'(Ljava/lang/String;Ljava/lang/Object;)V?	?
java/lang/IllegalStateException$failed to connect to remote clusters0?

 Ljava/lang/InterruptedException;ex'Ljava/util/concurrent/TimeoutException;Ljava/lang/Exception;	timeValue+Lcom/groupbyinc/flux/common/unit/TimeValue;futureHLcom/groupbyinc/flux/action/support/PlainActionFuture;6Lcom/groupbyinc/flux/action/support/PlainActionFuture;values()Ljava/util/Collection;(Ljava/lang/Iterable;)V?
? getRemoteConnectionInfos	emptyList()Ljava/util/List;#$
6%8com/groupbyinc/flux/action/support/GroupedActionListener'E(Lcom/groupbyinc/flux/action/ActionListener;ILjava/util/Collection;)V0)
(*java/util/Collection,-?getConnectionInfo/?
?0actionListenerpLcom/groupbyinc/flux/action/support/GroupedActionListener;:Lcom/groupbyinc/flux/action/support/GroupedActionListener;yLcom/groupbyinc/flux/action/ActionListener;>;collectNodes=(Ljava/util/Set;Lcom/groupbyinc/flux/action/ActionListener;)Vno such remote cluster: [8]:	onFailure<l=?tlambda$collectNodes$7D(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;@A
BCA()Ljava/util/function/Function;?FGjava/util/function/FunctionI?(Lcom/groupbyinc/flux/transport/RemoteClusterService;Ljava/util/Map;Ljava/lang/String;Lcom/groupbyinc/flux/common/util/concurrent/CountDown;Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/function/Function;)V0K
	L6?
?Nclusters#Ljava/util/Set;Ljava/util/Set;?Lcom/groupbyinc/flux/action/ActionListener;>;
clusterMap?Ljava/util/Map;>;nullFunctionaLjava/util/function/Function;Ljava/util/function/Function;s5com/groupbyinc/flux/common/transport/TransportAddressZ(Ljava/net/InetSocketAddress;)V0\
[]#_
[?com/groupbyinc/flux/VersionbCURRENTLcom/groupbyinc/flux/Version;de	cfminimumCompatibilityVersion()Lcom/groupbyinc/flux/Version;hi
cj.com/groupbyinc/flux/cluster/node/DiscoveryNodeli(Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Lcom/groupbyinc/flux/Version;)V0n
moaddressLjava/net/InetSocketAddress;transportAddress7Lcom/groupbyinc/flux/common/transport/TransportAddress;idversionxLjava/lang/Void;fastForwardyh
rzisClosed|h
?}(failed to update seed list for cluster: 	exceptionh
r?response
getAttributes?8
m?false?getOrDefault???#com/groupbyinc/flux/common/Booleans?parseBoolean?U
??
getVersion?i
m?isCompatible (Lcom/groupbyinc/flux/Version;)Z??
c?%search.remote.connections_per_cluster?	NodeScope6Lcom/groupbyinc/flux/common/settings/Setting$Property;??	?
intSettingz(Ljava/lang/String;II[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
?%search.remote.initial_connect_timeout?timeValueSeconds.(J)Lcom/groupbyinc/flux/common/unit/TimeValue;??
??positiveTimeSetting?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
?search.remote.node.attr?simpleStringx(Ljava/lang/String;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
?search.remote.connect?boolSettingy(Ljava/lang/String;Z[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
?'!	?	SignatureCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable?(Ljava/util/Map;>;Lcom/groupbyinc/flux/action/ActionListener;)V?(Lcom/groupbyinc/flux/action/support/IndicesOptions;[Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Map;F(Lcom/groupbyinc/flux/action/support/IndicesOptions;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/groupbyinc/flux/action/ActionListener;>;)VR(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)V%()Ljava/util/Set;C(Ljava/lang/String;Ljava/util/List;)V?(Ljava/lang/String;Ljava/util/List;Lcom/groupbyinc/flux/action/ActionListener;)V
Exceptions|(Lcom/groupbyinc/flux/action/ActionListener;>;)V?(Ljava/util/Set;Lcom/groupbyinc/flux/action/ActionListener;>;)VBootstrapMethods
SourceFileInnerClasses1 !?"#!?$%!?&'!?()*+,B-.?/01?q#*+?4*?:?<*,?>*?@+?D?F?J?L?? #MN#OP#)*?a^bc"d"QR?
?+V?Z?
?\Y^?a??cY?fN+?j?
,?p?P?rY+?u?x:??:??*?????"??*???D??:????:-*???Y*??????????*?>*?L??:-????W:	????,??*,	?????*-??F7?MN? .?"$i-.?4??F7? !?"#i-/?rlmop&q0s?tFuSxbyr{||?}?~???????????????O?S?z?}????S	??Ar????K	lr??
?T(??-l??%h?G*??K.?MN?MN?O<?P	?R.?4T&GH	<>J?KL?PQ	?RS?>?	???<?H?T?`?t?z?}???????????&??V? ??TU??*?<+?Z??MNV??WX?G
λrY?u?x:?ZY?[:?]Y?^:????:		????	???
:

????:*?<????:? ?\Y??Y??b???ڶ޷a?
???6?e:
?gY
?j+?m?q?g,?u-?x:?Y*?{???f???RxVbh??7O<
???F?
?MN?MN?r?v??.??$????."????4F??
??S??????"????>???"?F?R?b?g????????????????U?0
`??lr]??S
???H	`??lr]??????4*?<,????N-??\Y??Y??b??,?ڶ޷a?-+????*4MN4+,4?&????.??.?????4*?<+????N-??\Y??Y??b??+?ڶ޷a?-,????*4MN4F4?$&??4?#?
.3??.???????3*?<+????M,??\Y??Y??b??+?ڶ޷a?,???? 3MN3?%??.??.????4
*??$0S??H5@U
cMNUME .?ME !?>4567$90@3:5;;@><@=P@S>U?bA?!?3???J?T??d?;
*??????cY?f:?rY+???x:?H:+??:???5????:-????:		?	Y*,?M?O??DZ?f
#4???	?#??MN?PR??$?-.c[T.rLyEVX?4?PQ??S?-/c[TUyEVW?:Z[#\.]V^W`Zbccrdye?f?g?z?{?3?
??I??&?lrJ??;??
@A?,??Y?d
????9?[Y+?^M??Y??*??`??,?a?ڶ?N?g?k:?mY-,?p??49F9qr	0st%u-ve?'	(%)-*
??+??w?
???+??wx????????+?{?,?>-?~?+*?ѻ?Y??????????ڶ?????>?MN??"$?????????>??.
???^*???
+,?p?? "$?x???????
???H+??*?????????+,?y
???5?g*??????+,?t?d?~V??Y??S???@?????Y??S??????Y??S??????Y??S??????BHI.QAY?R????????????????????DE??2	
		@




© 2015 - 2024 Weber Informatics LLC | Privacy Policy