com.groupbyinc.flux.common.network.NetworkModule.class Maven / Gradle / Ivy
???? 4? 0com/groupbyinc/flux/common/network/NetworkModule java/lang/Object NetworkModule.java 2com/groupbyinc/flux/common/network/NetworkModule$1 Ncom/groupbyinc/flux/common/network/NetworkModule$CompositeTransportInterceptor CompositeTransportInterceptor Acom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry$Entry ;com/groupbyinc/flux/common/io/stream/NamedWriteableRegistry
Entry ?com/groupbyinc/flux/common/xcontent/NamedXContentRegistry$Entry 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry 7com/groupbyinc/flux/http/HttpServerTransport$Dispatcher ,com/groupbyinc/flux/http/HttpServerTransport
Dispatcher java/util/Map$Entry
java/util/Map 5com/groupbyinc/flux/common/io/stream/Writeable$Reader .com/groupbyinc/flux/common/io/stream/Writeable Reader 4com/groupbyinc/flux/common/settings/Setting$Property " +com/groupbyinc/flux/common/settings/Setting $ Property %com/groupbyinc/flux/tasks/Task$Status ' com/groupbyinc/flux/tasks/Task ) Status Ecom/groupbyinc/flux/action/support/replication/ReplicationTask$Status , >com/groupbyinc/flux/action/support/replication/ReplicationTask . %java/lang/invoke/MethodHandles$Lookup 0 java/lang/invoke/MethodHandles 2 Lookup TRANSPORT_TYPE_KEY Ljava/lang/String; transport.type 7
HTTP_TYPE_KEY http.type : LOCAL_TRANSPORT local = HTTP_TYPE_DEFAULT_KEY http.type.default @ TRANSPORT_TYPE_DEFAULT_KEY transport.type.default C TRANSPORT_DEFAULT_TYPE_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ALcom/groupbyinc/flux/common/settings/Setting; HTTP_DEFAULT_TYPE_SETTING HTTP_TYPE_SETTING HTTP_ENABLED BLcom/groupbyinc/flux/common/settings/Setting; TRANSPORT_TYPE_SETTING settings .Lcom/groupbyinc/flux/common/settings/Settings; transportClient Z namedWriteables Ljava/util/List; ULjava/util/List; namedXContents SLjava/util/List; transportFactories Ljava/util/Map; kLjava/util/Map;>; transportHttpFactories pLjava/util/Map;>; transportIntercetors FLjava/util/List; ?(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 ()V ] _
` java/util/HashMap b
c ` V W e Y W g java/util/ArrayList i
j ` [ R l M N n O P p java/util/List r iterator ()Ljava/util/Iterator; t u s v ,com/groupbyinc/flux/common/settings/Settings x )com/groupbyinc/flux/threadpool/ThreadPool z )com/groupbyinc/flux/common/util/BigArrays | 9com/groupbyinc/flux/indices/breaker/CircuitBreakerService ~ 1com/groupbyinc/flux/common/network/NetworkService ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? )com/groupbyinc/flux/plugins/NetworkPlugin ? J F ? get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; ? ?
% ? java/lang/Boolean ? booleanValue ? ?
? ? getHttpTransports?(Lcom/groupbyinc/flux/common/settings/Settings;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;)Ljava/util/Map; ? ? ? ? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? ? v getKey ? ? ? java/lang/String ? getValue ? ? ? java/util/function/Supplier ? registerHttpTransport 2(Ljava/lang/String;Ljava/util/function/Supplier;)V ? ?
?
getTransports@(Lcom/groupbyinc/flux/common/settings/Settings;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/network/NetworkService;)Ljava/util/Map; ? ? ? ? registerTransport ? ?
? getThreadContext <()Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext; ? ?
{ ? getTransportInterceptors ?(Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)Ljava/util/List; ? ? ? ? 2com/groupbyinc/flux/transport/TransportInterceptor ? registerTransportInterceptor 7(Lcom/groupbyinc/flux/transport/TransportInterceptor;)V ? ?
? entry vLjava/util/Map$Entry;>; Ljava/util/Map$Entry; httpTransportFactory qLjava/util/Map$Entry;>; interceptor 4Lcom/groupbyinc/flux/transport/TransportInterceptor; transportInterceptors plugin +Lcom/groupbyinc/flux/plugins/NetworkPlugin; this 2Lcom/groupbyinc/flux/common/network/NetworkModule; plugins =Ljava/util/List;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; bigArrays +Lcom/groupbyinc/flux/common/util/BigArrays; circuitBreakerService ;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService; namedWriteableRegistry =Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry; xContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; networkService 3Lcom/groupbyinc/flux/common/network/NetworkService;
dispatcher 9Lcom/groupbyinc/flux/http/HttpServerTransport$Dispatcher; isTransportClient putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ?
? ` transport for name: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? is already registered ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/String;)V ] ?
? ? key factory HLjava/util/function/Supplier; Ljava/util/function/Supplier; Cannot register http transport for transport client MLjava/util/function/Supplier; registerAllocationCommand ?(Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;Lcom/groupbyinc/flux/common/CheckedFunction;Lcom/groupbyinc/flux/common/ParseField;)V T R Hcom/groupbyinc/flux/cluster/routing/allocation/command/AllocationCommand g(Ljava/lang/Class;Lcom/groupbyinc/flux/common/ParseField;Lcom/groupbyinc/flux/common/CheckedFunction;)V ]
add (Ljava/lang/Object;)Z s Q R %com/groupbyinc/flux/common/ParseField getPreferredName ?
](Ljava/lang/Class;Ljava/lang/String;Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;)V ]
reader ; 7Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader; parser zLcom/groupbyinc/flux/common/CheckedFunction; ,Lcom/groupbyinc/flux/common/CheckedFunction; commandName 'Lcom/groupbyinc/flux/common/ParseField; getNamedWriteables ()Ljava/util/List; java/util/Collections& unmodifiableList "(Ljava/util/List;)Ljava/util/List;()
'* getNamedXContents getHttpServerTransportSupplier ()Ljava/util/function/Supplier; I F / exists 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z12
%3 H F 5 &(Ljava/lang/Object;)Ljava/lang/Object; ?7 8 java/lang/IllegalStateException: Unsupported http.type [< ]>
; ? name
isHttpEnabled getTransportSupplier L F D E F F Unsupported transport.type [H interceptor must not be nullJ java/util/ObjectsL requireNonNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;NO
MP getTransportInterceptor 6()Lcom/groupbyinc/flux/transport/TransportInterceptor; G(Ljava/util/List;Lcom/groupbyinc/flux/common/network/NetworkModule$1;)V ]T
U NodeScope 6Lcom/groupbyinc/flux/common/settings/Setting$Property;XY #Z simpleString x(Ljava/lang/String;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;\]
%^ http.enabled` boolSetting y(Ljava/lang/String;Z[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;bc
%d "java/lang/invoke/LambdaMetafactoryf 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;hi
gjk F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object;m Ncom/groupbyinc/flux/cluster/routing/allocation/command/CancelAllocationCommando 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V ]q
prs ?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/CancelAllocationCommand;u read 9()Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;wx y7 fromXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/CancelAllocationCommand;|}
p~} apply .()Lcom/groupbyinc/flux/common/CheckedFunction;?? ? COMMAND_NAME_FIELD?# p?
? Lcom/groupbyinc/flux/cluster/routing/allocation/command/MoveAllocationCommand?
?r? ?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/MoveAllocationCommand;? y ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/MoveAllocationCommand;|?
???? ? ?? Wcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateReplicaAllocationCommand?
?r? ?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateReplicaAllocationCommand;? y ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateReplicaAllocationCommand;|?
???? ? ?? \com/groupbyinc/flux/cluster/routing/allocation/command/AllocateEmptyPrimaryAllocationCommand?
?r? ?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateEmptyPrimaryAllocationCommand;? y ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateEmptyPrimaryAllocationCommand;|?
???? ? ?? \com/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand?
?r? ?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand;? y ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand;|?
???? ? ?? replication?
-r? [(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/tasks/Task$Status;?
y raw? 'com/groupbyinc/flux/tasks/RawTaskStatus?
?r? y
ConstantValue Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable?(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 ](Ljava/lang/String;Ljava/util/function/Supplier;)V b(Ljava/lang/String;Ljava/util/function/Supplier;)V/(Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;Lcom/groupbyinc/flux/common/CheckedFunction;Lcom/groupbyinc/flux/common/ParseField;)V W()Ljava/util/List; U()Ljava/util/List; O()Ljava/util/function/Supplier; J()Ljava/util/function/Supplier; BootstrapMethods
SourceFile InnerClasses 1 5 6 ? 8 9 6 ? ; <