com.groupbyinc.flux.client.transport.TransportClient.class Maven / Gradle / Ivy
???? 4" 4com/groupbyinc/flux/client/transport/TransportClient 1com/groupbyinc/flux/client/support/AbstractClient TransportClient.java 6com/groupbyinc/flux/client/transport/TransportClient$1 Hcom/groupbyinc/flux/client/transport/TransportClient$HostFailureListener HostFailureListener Ccom/groupbyinc/flux/client/transport/TransportClient$ClientTemplate ClientTemplate 4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings Builder Acom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry$Entry ;com/groupbyinc/flux/common/io/stream/NamedWriteableRegistry Entry 6com/groupbyinc/flux/plugins/ActionPlugin$ActionHandler (com/groupbyinc/flux/plugins/ActionPlugin
ActionHandler 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting Property 7com/groupbyinc/flux/http/HttpServerTransport$Dispatcher " ,com/groupbyinc/flux/http/HttpServerTransport $
Dispatcher %java/lang/invoke/MethodHandles$Lookup ' java/lang/invoke/MethodHandles ) Lookup 'CLIENT_TRANSPORT_NODES_SAMPLER_INTERVAL -Lcom/groupbyinc/flux/common/settings/Setting; ZLcom/groupbyinc/flux/common/settings/Setting; CLIENT_TRANSPORT_PING_TIMEOUT $CLIENT_TRANSPORT_IGNORE_CLUSTER_NAME BLcom/groupbyinc/flux/common/settings/Setting; CLIENT_TRANSPORT_SNIFF CLIENT_TYPE Ljava/lang/String; transport 5 injector ,Lcom/groupbyinc/flux/common/inject/Injector; namedWriteableRegistry =Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry; pluginLifecycleComponents Ljava/util/List; KLjava/util/List; nodesService BLcom/groupbyinc/flux/client/transport/TransportClientNodesService; proxy ;Lcom/groupbyinc/flux/client/transport/TransportProxyClient; newPluginService r(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Collection;)Lcom/groupbyinc/flux/plugins/PluginsService; builder 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder; D E
F *com/groupbyinc/flux/transport/TcpTransport H
PING_SCHEDULE J - I K getKey ()Ljava/lang/String; M N
O 5s Q put \(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; S T
U 1com/groupbyinc/flux/node/InternalSettingsPreparer W prepareSettings ^(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings; Y Z
X [ f(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; S ]
^ 1com/groupbyinc/flux/common/network/NetworkService ` NETWORK_SERVER b - a c K(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/settings/Settings$Builder; S e
f CLIENT_TYPE_SETTING_S h - i *com/groupbyinc/flux/plugins/PluginsService k build 0()Lcom/groupbyinc/flux/common/settings/Settings; m n
o ?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/util/Collection;)V q r
l s settings .Lcom/groupbyinc/flux/common/settings/Settings; plugins PLjava/util/Collection;>; Ljava/util/Collection; settingsBuilder 6Lcom/groupbyinc/flux/common/settings/Settings$Builder;
addPlugins @(Ljava/util/Collection;[Ljava/lang/Class;)Ljava/util/Collection; java/util/Arrays ~ asList %([Ljava/lang/Object;)Ljava/util/List; ? ?
? D(Ljava/util/Collection;Ljava/util/Collection;)Ljava/util/Collection; | ?
?
collection 9[Ljava/lang/Class<+Lcom/groupbyinc/flux/plugins/Plugin;>; [Ljava/lang/Class; java/util/ArrayList ? (Ljava/util/Collection;)V q ?
? ? java/util/Collection ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? java/lang/Class ? contains (Ljava/lang/Object;)Z ? ?
? ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ? ()V q ?
? ? plugin already exists: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? toString ? N
? ? (Ljava/lang/String;)V q ?
? ? add ? ?
? ? p 8Ljava/lang/Class<+Lcom/groupbyinc/flux/plugins/Plugin;>; Ljava/lang/Class; list OLjava/util/ArrayList;>; Ljava/util/ArrayList;
buildTemplate(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Collection;Lcom/groupbyinc/flux/client/transport/TransportClient$HostFailureListener;)Lcom/groupbyinc/flux/client/transport/TransportClient$ClientTemplate; com/groupbyinc/flux/node/Node ? NODE_NAME_SETTING ? - ? ? exists 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z ? ?
? _client_ ? B C
? updatedSettings ? n
l ?
? ? )com/groupbyinc/flux/threadpool/ThreadPool ? .com/groupbyinc/flux/threadpool/ExecutorBuilder ? b(Lcom/groupbyinc/flux/common/settings/Settings;[Lcom/groupbyinc/flux/threadpool/ExecutorBuilder;)V q ?
? ? "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; ? ?
? ? ? ? lambda$buildTemplate$0 .(Lcom/groupbyinc/flux/threadpool/ThreadPool;)V ? ?
? ? close @(Lcom/groupbyinc/flux/threadpool/ThreadPool;)Ljava/io/Closeable; ? ? ? java/util/List ? ? ? java/util/Collections ? emptyList ()Ljava/util/List; ? ?
? ? (Ljava/util/List;)V q ?
a ? getPluginSettings ? ?
l ? getPluginSettingsFilter ? ?
l ? builders ()Ljava/util/Collection;
? getRegisteredSettings ?
? addAll (Ljava/util/Collection;)Z ?
2com/groupbyinc/flux/common/settings/SettingsModule Q(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/List;Ljava/util/List;)V q
'com/groupbyinc/flux/search/SearchModule (com/groupbyinc/flux/plugins/SearchPlugin
filterPlugins #(Ljava/lang/Class;)Ljava/util/List;
l B(Lcom/groupbyinc/flux/common/settings/Settings;ZLjava/util/List;)V q
0com/groupbyinc/flux/common/network/NetworkModule getNamedWriteables ?
)com/groupbyinc/flux/cluster/ClusterModule"
# "com/groupbyinc/flux/plugins/Plugin% stream ()Ljava/util/stream/Stream;'( ?) &(Ljava/lang/Object;)Ljava/lang/Object;+ lambda$buildTemplate$1 ?(Lcom/groupbyinc/flux/plugins/Plugin;)Ljava/util/stream/Stream;-.
/0. apply ()Ljava/util/function/Function;34 5 java/util/stream/Stream7 flatMap 8(Ljava/util/function/Function;)Ljava/util/stream/Stream;9:8; java/util/stream/Collectors= toList ()Ljava/util/stream/Collector;?@
>A collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object;CD8E
? 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistryH getNamedXContentsJ ?
K lambda$buildTemplate$2M.
NO 5 of .([Ljava/lang/Object;)Ljava/util/stream/Stream;RS8T java/util/function/FunctionV identityX4WY
I ? 0com/groupbyinc/flux/common/inject/ModulesBuilder\
] ? createGuiceModules_
l` (com/groupbyinc/flux/common/inject/Moduleb _([Lcom/groupbyinc/flux/common/inject/Module;)Lcom/groupbyinc/flux/common/inject/ModulesBuilder; ?d
]e -(Lcom/groupbyinc/flux/common/inject/Binder;)Vg lambda$buildTemplate$3 X(Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/common/inject/Binder;)Vij
kl configure W(Lcom/groupbyinc/flux/threadpool/ThreadPool;)Lcom/groupbyinc/flux/common/inject/Module;no p 'com/groupbyinc/flux/action/ActionModuler getIndexScopedSettings ;()Lcom/groupbyinc/flux/common/settings/IndexScopedSettings;tu
v getClusterSettings 7()Lcom/groupbyinc/flux/common/settings/ClusterSettings;xy
z getSettingsFilter 6()Lcom/groupbyinc/flux/common/settings/SettingsFilter;|}
~?(ZLcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/common/settings/IndexScopedSettings;Lcom/groupbyinc/flux/common/settings/ClusterSettings;Lcom/groupbyinc/flux/common/settings/SettingsFilter;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/util/List;Lcom/groupbyinc/flux/client/node/NodeClient;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;Lcom/groupbyinc/flux/usage/UsageService;)V q?
s? getSettings? n
? createCircuitBreakerService ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/ClusterSettings;)Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;??
?? )com/groupbyinc/flux/common/util/BigArrays? l(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;)V q?
?? )com/groupbyinc/flux/plugins/NetworkPlugin??(Lcom/groupbyinc/flux/common/settings/Settings;ZLjava/util/List;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/common/util/BigArrays;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/network/NetworkService;Lcom/groupbyinc/flux/http/HttpServerTransport$Dispatcher;)V q?
? getTransportSupplier ()Ljava/util/function/Supplier;??
? java/util/function/Supplier? get? ??? 'com/groupbyinc/flux/transport/Transport? .com/groupbyinc/flux/transport/TransportService? getTransportInterceptor 6()Lcom/groupbyinc/flux/transport/TransportInterceptor;??
? lambda$buildTemplate$4 ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/transport/BoundTransportAddress;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
?? n(Lcom/groupbyinc/flux/common/transport/BoundTransportAddress;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;? M(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/function/Function;3? ?(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;)V q?
?? lambda$buildTemplate$5?(Lcom/groupbyinc/flux/common/util/BigArrays;Lcom/groupbyinc/flux/plugins/PluginsService;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/transport/Transport;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/network/NetworkService;Lcom/groupbyinc/flux/common/inject/Binder;)V??
???(Lcom/groupbyinc/flux/common/util/BigArrays;Lcom/groupbyinc/flux/plugins/PluginsService;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/transport/Transport;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/network/NetworkService;)Lcom/groupbyinc/flux/common/inject/Module;n? ? createInjector .()Lcom/groupbyinc/flux/common/inject/Injector;??
]? @com/groupbyinc/flux/client/transport/TransportClientNodesService? H(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/Exception;)V? lambda$buildTemplate$6??
?? onNodeDisconnected L()Lcom/groupbyinc/flux/client/transport/TransportClient$HostFailureListener;?? ? 9com/groupbyinc/flux/indices/breaker/CircuitBreakerService? *com/groupbyinc/flux/common/inject/Injector? ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/client/transport/TransportClient$HostFailureListener;)V q?
?? 9com/groupbyinc/flux/client/transport/TransportProxyClient?
getActions ()Ljava/util/Map;??
s?
java/util/Map? values??? ?) lambda$buildTemplate$7 d(Lcom/groupbyinc/flux/plugins/ActionPlugin$ActionHandler;)Lcom/groupbyinc/flux/action/GenericAction;??
??? 5 map?:8? ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;Ljava/util/List;)V q?
?? getGuiceServiceClasses?
l? java/lang/Object? getClass ()Ljava/lang/Class;??
?? getInstance %(Ljava/lang/Class;)Ljava/lang/Object;???? ? L(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/component/LifecycleComponent;? K(Lcom/groupbyinc/flux/common/inject/Injector;)Ljava/util/function/Function;3? ? start? ?
?? acceptIncomingRequests ?
?1(Lcom/groupbyinc/flux/common/inject/Injector;Ljava/util/List;Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;Lcom/groupbyinc/flux/client/transport/TransportProxyClient;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/client/transport/TransportClient$1;)V q
clear ? ? 5com/groupbyinc/flux/common/apache/lucene/util/IOUtils closeWhileHandlingException (Ljava/lang/Iterable;)V
java/lang/Throwable 3Lcom/groupbyinc/flux/threadpool/ExecutorBuilder<*>; 0Lcom/groupbyinc/flux/threadpool/ExecutorBuilder; pluginModule *Lcom/groupbyinc/flux/common/inject/Module; additionalSettings BLjava/util/List;>; additionalSettingsFilter $Ljava/util/List; settingsModule 4Lcom/groupbyinc/flux/common/settings/SettingsModule; searchModule )Lcom/groupbyinc/flux/search/SearchModule; entries ULjava/util/List; xContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; modules 2Lcom/groupbyinc/flux/common/inject/ModulesBuilder; actionModule )Lcom/groupbyinc/flux/action/ActionModule; circuitBreakerService ;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService; bigArrays +Lcom/groupbyinc/flux/common/util/BigArrays;
networkModule 2Lcom/groupbyinc/flux/common/network/NetworkModule; )Lcom/groupbyinc/flux/transport/Transport; transportService 0Lcom/groupbyinc/flux/transport/TransportService; transportClient ELcom/groupbyinc/flux/client/transport/TransportClient$ClientTemplate; providedSettings defaultSettings failureListner JLcom/groupbyinc/flux/client/transport/TransportClient$HostFailureListener; pluginsService ,Lcom/groupbyinc/flux/plugins/PluginsService; resourcesToClose %Ljava/util/List;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; networkService 3Lcom/groupbyinc/flux/common/network/NetworkService; G(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Collection;)V EMPTY= v > ? ?
@ H(Lcom/groupbyinc/flux/client/transport/TransportClient$ClientTemplate;)V qB
C this 6Lcom/groupbyinc/flux/client/transport/TransportClient; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Collection;Lcom/groupbyinc/flux/client/transport/TransportClient$HostFailureListener;)V hostFailureListener
?
getThreadPool -()Lcom/groupbyinc/flux/threadpool/ThreadPool;JK
L \(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V qN
O 7 8 Q Q
access$100 W(Lcom/groupbyinc/flux/client/transport/TransportClient$ClientTemplate;)Ljava/util/List;TU
V unmodifiableList "(Ljava/util/List;)Ljava/util/List;XY
?Z ; < \
access$200 ?(Lcom/groupbyinc/flux/client/transport/TransportClient$ClientTemplate;)Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;^_
` > ? b
access$300 ?(Lcom/groupbyinc/flux/client/transport/TransportClient$ClientTemplate;)Lcom/groupbyinc/flux/client/transport/TransportProxyClient;de
f @ A h
access$400 ?(Lcom/groupbyinc/flux/client/transport/TransportClient$ClientTemplate;)Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;jk
l 9 : n template transportAddressesq ?
?r connectedNodest ?
?u
filteredNodesw ?
?x listedNodesz ?
?{ addTransportAddress o(Lcom/groupbyinc/flux/common/transport/TransportAddress;)Lcom/groupbyinc/flux/client/transport/TransportClient; 5com/groupbyinc/flux/common/transport/TransportAddress addTransportAddresses |([Lcom/groupbyinc/flux/common/transport/TransportAddress;)Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;??
?? transportAddress 7Lcom/groupbyinc/flux/common/transport/TransportAddress; p([Lcom/groupbyinc/flux/common/transport/TransportAddress;)Lcom/groupbyinc/flux/client/transport/TransportClient; 8[Lcom/groupbyinc/flux/common/transport/TransportAddress; removeTransportAddress {(Lcom/groupbyinc/flux/common/transport/TransportAddress;)Lcom/groupbyinc/flux/client/transport/TransportClientNodesService;??
?? ? ? 7com/groupbyinc/flux/common/component/LifecycleComponent? lambda$close$8? ?
?? K(Lcom/groupbyinc/flux/client/transport/TransportClient;)Ljava/io/Closeable; ?? ? plugin 9Lcom/groupbyinc/flux/common/component/LifecycleComponent;
closeables doExecute {(Lcom/groupbyinc/flux/action/Action;Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V execute??
?? action HLcom/groupbyinc/flux/action/Action; #Lcom/groupbyinc/flux/action/Action; request TRequest; *Lcom/groupbyinc/flux/action/ActionRequest; listener 7Lcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; getNodesService D()Lcom/groupbyinc/flux/client/transport/TransportClientNodesService; java/io/IOException?
java/util/concurrent/TimeUnit? SECONDS Ljava/util/concurrent/TimeUnit;?? ?? terminate N(Lcom/groupbyinc/flux/threadpool/ThreadPool;JLjava/util/concurrent/TimeUnit;)Z??
?? getAction ,()Lcom/groupbyinc/flux/action/GenericAction;??
? x 8Lcom/groupbyinc/flux/plugins/ActionPlugin$ActionHandler; t 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; e Ljava/lang/Exception; (com/groupbyinc/flux/common/inject/Binder? bind U(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/inject/binder/AnnotatedBindingBuilder;???? @com/groupbyinc/flux/common/inject/binder/AnnotatedBindingBuilder?
toInstance (Ljava/lang/Object;)V???? b *Lcom/groupbyinc/flux/common/inject/Binder; META_ADDRESS Ljava/net/InetAddress;?? ?? (Ljava/net/InetAddress;I)V q?
?? com/groupbyinc/flux/common/UUIDs? randomBase64UUID? N
?? .com/groupbyinc/flux/cluster/node/DiscoveryNode? createLocal ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/transport/TransportAddress;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
?? boundTransportAddress