com.groupbyinc.flux.transport.TransportService.class Maven / Gradle / Ivy
???? 4# .com/groupbyinc/flux/transport/TransportService ?com/groupbyinc/flux/common/component/AbstractLifecycleComponent 9com/groupbyinc/flux/transport/TransportConnectionListener TransportService.java Dcom/groupbyinc/flux/transport/TransportService$DirectResponseChannel DirectResponseChannel Lcom/groupbyinc/flux/transport/TransportService$ContextRestoreResponseHandler ContextRestoreResponseHandler @com/groupbyinc/flux/transport/TransportService$TimeoutInfoHolder TimeoutInfoHolder =com/groupbyinc/flux/transport/TransportService$TimeoutHandler TimeoutHandler @com/groupbyinc/flux/transport/TransportService$HandshakeResponse HandshakeResponse ?com/groupbyinc/flux/transport/TransportService$HandshakeRequest HandshakeRequest 0com/groupbyinc/flux/transport/TransportService$7 0com/groupbyinc/flux/transport/TransportService$6 0com/groupbyinc/flux/transport/TransportService$5 0com/groupbyinc/flux/transport/TransportService$4 0com/groupbyinc/flux/transport/TransportService$3 " 0com/groupbyinc/flux/transport/TransportService$2 $ 0com/groupbyinc/flux/transport/TransportService$1 & >com/groupbyinc/flux/transport/TransportInterceptor$AsyncSender ( 2com/groupbyinc/flux/transport/TransportInterceptor * AsyncSender 8com/groupbyinc/flux/transport/Transport$ResponseHandlers - 'com/groupbyinc/flux/transport/Transport / ResponseHandlers 2com/groupbyinc/flux/transport/Transport$Connection 2
Connection java/util/Map$Entry 5
java/util/Map 7 Entry 7com/groupbyinc/flux/transport/Transport$ResponseContext : ResponseContext Fcom/groupbyinc/flux/common/util/concurrent/ThreadContext$StoredContext = 8com/groupbyinc/flux/common/util/concurrent/ThreadContext ?
StoredContext 5com/groupbyinc/flux/common/io/stream/Writeable$Reader B .com/groupbyinc/flux/common/io/stream/Writeable D Reader /com/groupbyinc/flux/threadpool/ThreadPool$Names G )com/groupbyinc/flux/threadpool/ThreadPool I Names 4com/groupbyinc/flux/common/settings/Setting$Property L +com/groupbyinc/flux/common/settings/Setting N Property =com/groupbyinc/flux/transport/TransportRequestOptions$Builder Q 5com/groupbyinc/flux/transport/TransportRequestOptions S Builder %java/lang/invoke/MethodHandles$Lookup V java/lang/invoke/MethodHandles X Lookup DIRECT_RESPONSE_PROFILE Ljava/lang/String; .direct ] HANDSHAKE_ACTION_NAME internal:transport/handshake ` blockIncomingRequestsLatch %Ljava/util/concurrent/CountDownLatch; transport )Lcom/groupbyinc/flux/transport/Transport;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; clusterName )Lcom/groupbyinc/flux/cluster/ClusterName; taskManager 'Lcom/groupbyinc/flux/tasks/TaskManager; asyncSender @Lcom/groupbyinc/flux/transport/TransportInterceptor$AsyncSender; localNodeFactory Ljava/util/function/Function; ?Ljava/util/function/Function; connectToRemoteCluster Z responseHandlers :Lcom/groupbyinc/flux/transport/Transport$ResponseHandlers; interceptor 4Lcom/groupbyinc/flux/transport/TransportInterceptor; timeoutInfoHandlers Ljava/util/Map; cLjava/util/Map; NOOP_TRANSPORT_INTERCEPTOR TRACE_LOG_INCLUDE_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; SLcom/groupbyinc/flux/common/settings/Setting;>; TRACE_LOG_EXCLUDE_SETTING tracerLog !Lorg/apache/logging/log4j/Logger; tracerLogInclude [Ljava/lang/String; tracerLogExclude remoteClusterService 4Lcom/groupbyinc/flux/transport/RemoteClusterService; validateConnections localNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; localNodeConnection 4Lcom/groupbyinc/flux/transport/Transport$Connection; VALID_ACTION_PREFIXES Ljava/util/Set; #Ljava/util/Set; $assertionsDisabled (Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/Transport;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportInterceptor;Ljava/util/function/Function;Lcom/groupbyinc/flux/common/settings/ClusterSettings;Ljava/util/Set;)V %Lcom/groupbyinc/flux/common/Nullable; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V ? ?
? #java/util/concurrent/CountDownLatch ? (I)V ? ?
? ? b c ??@ 6(Lcom/groupbyinc/flux/transport/TransportService;IFZ)V ? ?
' ? java/util/Collections ? synchronizedMap (Ljava/util/Map;)Ljava/util/Map; ? ?
? ? w x ? ? ? ? 3(Lcom/groupbyinc/flux/transport/TransportService;)V ? ?
# ? ? ? ? d !com/groupbyinc/flux/client/Client ? CLIENT_TYPE_SETTING_S ? | ? ? getKey ()Ljava/lang/String; ? ?
O ? ,com/groupbyinc/flux/common/settings/Settings ? get &(Ljava/lang/String;)Ljava/lang/String; ? ?
? ? java/lang/String ? equals (Ljava/lang/Object;)Z ? ?
? ? 4com/groupbyinc/flux/client/transport/TransportClient ? CLIENT_TRANSPORT_SNIFF ? | ? ? B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; ? ?
O ? java/lang/Boolean ? booleanValue ()Z ? ?
? ? java/util/function/Function ? 3com/groupbyinc/flux/common/settings/ClusterSettings ?
java/util/Set ? ? r ? d e ? f g ? n o ? 'com/groupbyinc/flux/cluster/ClusterName ? CLUSTER_NAME_SETTING ? | ? ? h i ? { | ? java/util/List ? setTracerLogInclude (Ljava/util/List;)V ? ?
? ~ | ? setTracerLogExclude ? ?
? logger ? ? ? .tracer ? *com/groupbyinc/flux/common/logging/Loggers ? getLogger V(Lorg/apache/logging/log4j/Logger;Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; ? ?
? ? ? createTaskManager ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/util/Set;)Lcom/groupbyinc/flux/tasks/TaskManager;
j k u v "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;
?(Lcom/groupbyinc/flux/transport/Transport$Connection;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportRequestOptions;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)V sendRequestInternal
sendRequest r(Lcom/groupbyinc/flux/transport/TransportService;)Lcom/groupbyinc/flux/transport/TransportInterceptor$AsyncSender; interceptSender ?(Lcom/groupbyinc/flux/transport/TransportInterceptor$AsyncSender;)Lcom/groupbyinc/flux/transport/TransportInterceptor$AsyncSender; + l m 2com/groupbyinc/flux/transport/RemoteClusterService! ENABLE_REMOTE_CLUSTERS# | "$ q r & a(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;)V ?(
") ? ? + getResponseHandlers <()Lcom/groupbyinc/flux/transport/Transport$ResponseHandlers;-. 0/ s t 1 (Ljava/lang/Object;)V3 ? ? accept O(Lcom/groupbyinc/flux/transport/TransportService;)Ljava/util/function/Consumer;78 9 addSettingsUpdateConsumer M(Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Consumer;)V;<
?= ? 9 listenForUpdates 8(Lcom/groupbyinc/flux/common/settings/ClusterSettings;)VAB
"C ()Ljava/lang/Object;E lambda$new$0 C()Lcom/groupbyinc/flux/transport/TransportService$HandshakeRequest;GH
IJH ()Ljava/util/function/Supplier; ?M N sameP c(Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportChannel;)VR lambda$new$1 t(Lcom/groupbyinc/flux/transport/TransportService$HandshakeRequest;Lcom/groupbyinc/flux/transport/TransportChannel;)VTU
VWU messageReceived i(Lcom/groupbyinc/flux/transport/TransportService;)Lcom/groupbyinc/flux/transport/TransportRequestHandler;Z[ \ registerRequestHandler }(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;ZZLcom/groupbyinc/flux/transport/TransportRequestHandler;)V^_
` this 0Lcom/groupbyinc/flux/transport/TransportService; settings .Lcom/groupbyinc/flux/common/settings/Settings; transportInterceptor clusterSettings 5Lcom/groupbyinc/flux/common/settings/ClusterSettings; taskHeaders getRemoteClusterService 6()Lcom/groupbyinc/flux/transport/RemoteClusterService; getLocalNode 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; getTaskManager )()Lcom/groupbyinc/flux/tasks/TaskManager; %com/groupbyinc/flux/tasks/TaskManagerp k(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/util/Set;)V ?r
qs getExecutorService (()Ljava/util/concurrent/ExecutorService; genericwv
Jx "com/groupbyinc/flux/common/Stringsz EMPTY_ARRAY| ? {} toArray (([Ljava/lang/Object;)[Ljava/lang/Object;? ?? ? ? ? ? $Ljava/util/List; Ljava/util/List; ? ? ? doStart ()V addConnectionListener >(Lcom/groupbyinc/flux/transport/TransportConnectionListener;)V?? 0? start?? 0? boundAddress >()Lcom/groupbyinc/flux/common/transport/BoundTransportAddress;?? 0? org/apache/logging/log4j/Logger?
isInfoEnabled? ??? {}? info '(Ljava/lang/String;Ljava/lang/Object;)V???? profileBoundAddresses ()Ljava/util/Map;?? 0? entrySet ()Ljava/util/Set;?? 8? iterator ()Ljava/util/Iterator;?? ?? java/util/Iterator? hasNext? ??? next?E?? profile [{}]: {}? ?E 6? getValue?E 6? 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V???? apply &(Ljava/lang/Object;)Ljava/lang/Object;?? ?? .com/groupbyinc/flux/cluster/node/DiscoveryNode? initializeRemoteClusters??
"? entry eLjava/util/Map$Entry; Ljava/util/Map$Entry; doStop stop?? 0? ? lambda$doStop$2 <(Lcom/groupbyinc/flux/transport/Transport$ResponseContext;)Z??
??? test ()Ljava/util/function/Predicate;?? ? prune 0(Ljava/util/function/Predicate;)Ljava/util/List;??
.? ??uv
? l(Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/transport/Transport$ResponseContext;)V ??
!? $java/util/concurrent/ExecutorService? execute (Ljava/lang/Runnable;)V???? java/lang/Throwable? holderToNotify 9Lcom/groupbyinc/flux/transport/Transport$ResponseContext; doClose java/io/IOException? java/io/Closeable? ,com/groupbyinc/flux/core/internal/io/IOUtils? close ([Ljava/io/Closeable;)V??
?? acceptIncomingRequests countDown??
?? /()Lcom/groupbyinc/flux/transport/TransportInfo;
? :com/groupbyinc/flux/common/transport/BoundTransportAddress +com/groupbyinc/flux/transport/TransportInfo N(Lcom/groupbyinc/flux/common/transport/BoundTransportAddress;Ljava/util/Map;)V ?
boundTransportAddress